From patchwork Fri Dec 8 18:19:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Hortmann X-Patchwork-Id: 175998 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp5636259vqy; Fri, 8 Dec 2023 10:19:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IFR3bR3OvKNpsCsdQtmCrORZJil+joEKsSsFBU+6+83jZIKxt+PlscrHd1oJRxXMkJWcVZU X-Received: by 2002:a05:6a20:2584:b0:18a:d791:6629 with SMTP id k4-20020a056a20258400b0018ad7916629mr617145pzd.11.1702059599292; Fri, 08 Dec 2023 10:19:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702059599; cv=none; d=google.com; s=arc-20160816; b=qQZmOE490uPnfG8X5uXdPiMDCl0IAj6foM9SXgonS0GdcLRtWe0hBbM3DdfwANFUyG DJtGWYo59Qjr6WH7qtjgDs+EiEw93heGf9a7ysuwbhQqY+WrI+NaP3RkvTLZJvB74nXg 3GHLx7QSUhjBY2r15JpgJtMXtfqn/raj0TS439OJdw/Ujs8gHQq5/GQIjdcW/S66s2S8 Fits+laIG/cuCXQPVEYnpNQ0UwE5JeS1C3AcZBYvvAkCsHqNQWR8+F62/wSRApsk5mFY Wcerfl6n2FVrwisVq68vZbP6cBr++FEIZ3pitoDgzhjt5bpPKH5yYChrfYp4W6iaJG7W 7Gww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=kTX3lMeAIKadkUoJwz/Rosz/NiJGwf6YHqZeimpRp6A=; fh=Sw1rtAM+hKyOoOQVYiiLzcdjc4spg79Z/tN6UmWUAKs=; b=p/8Q7DpiFUnYeKiUsO/Ht1QxEpGzfQVAhonTQlQsNI+LqnAITUMjX8PgnhXOd93nYG OdYJFRP6FX2vJNtFqXH0MdIIe8jfk3fid/jOEQkZ6PjD+EYwgB+/lK7Xjr7//htDyku6 nTw+kSTcgWWcR2+uSptKFXhXGpWAICTIHKHNY7iQIa/einc2JTcEKR7EauGeQ49snaoh VhKhTckoFSIYYZM9kyfnIoqoEORFlzTRLTG6iZPDCxbXCm4HCthjnRONuBkiUJQr2WTA e0MqDdOTf12IO7zceflgKINwNzuZDhcH1tyHqyru46dD1f7kOl2YOEGnzZhwtTacFfjs LqAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mDLbP8vt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id 199-20020a6301d0000000b0057745d87b53si1822390pgb.686.2023.12.08.10.19.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 10:19:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mDLbP8vt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id C645B819D712; Fri, 8 Dec 2023 10:19:54 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1574604AbjLHSTc (ORCPT + 99 others); Fri, 8 Dec 2023 13:19:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1574592AbjLHSTa (ORCPT ); Fri, 8 Dec 2023 13:19:30 -0500 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83F38172A for ; Fri, 8 Dec 2023 10:19:36 -0800 (PST) Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-a1d48f0223dso65241266b.0 for ; Fri, 08 Dec 2023 10:19:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702059575; x=1702664375; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=kTX3lMeAIKadkUoJwz/Rosz/NiJGwf6YHqZeimpRp6A=; b=mDLbP8vtyMy84mVO3GrO5VmCe7tdhUbP9faumlnvcR+S03q9haSXx6nDgvqPsRNgX4 83xv44mZuO7dUnxj9F61UDg7YT8iUCAzVNSA6VynNWScvZFGYXyhbR/Iax12UNX5xw0Q HaopogiWm07f/wdC9/Y+GwDahA0+b6OaZ5D7g0vmr9E268v8i6zvTaCdJ2cNhkPOyfl8 Df/ZlfKkyrqShCLofLvXV+G1mwlsxniHhoKA18wKQoqs733QbpqPsej89EYMTbL0xaxP A5NMTmXFnrTBv8nh3lrPuzQtHPe3I8YFUUyO4gYSzQS3NzWXbZKUPdyaWWcb3csfne4P Kk5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702059575; x=1702664375; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=kTX3lMeAIKadkUoJwz/Rosz/NiJGwf6YHqZeimpRp6A=; b=gF+X6TClVVcd3MhgrbNMWZ6U0lmHEWaDnF2G+sfnAfcHPrdROX2nhT10HRtE2y9F6y 5YKRuK8n+I6B4DgDwIV6rdFmUj0NhzQk4NPE9HaOAEmi1PX2nQrJDqyLXMz1V0B6ycWQ BtnnuB81Eb5hGntXHcGb4R4p2D9KcGprxD8RHo3kc+ifMtEL67qxxnV0AQcuH0zx/epa ikZhki/BRUhTObAZWGkNCjyTQJW8m823IoZ+zMgc3JEg/NIxIzivL4bIGrjH9FPLAmat O7Oqw+jLrKheXv4K9wsudpjohpeoxTax8YGrvIGbDXuuwjrnsrtgs4jWNI0JSBxfdVRp DfmQ== X-Gm-Message-State: AOJu0YxjcG/s9RREBls2SnBubVfko5ExRji4TZNS8GyyUlyf4/XV7yOQ DeIhcA6t12cMMiAz0vQwTXA= X-Received: by 2002:a17:907:d30a:b0:a1c:dce4:1daf with SMTP id vg10-20020a170907d30a00b00a1cdce41dafmr445458ejc.2.1702059574759; Fri, 08 Dec 2023 10:19:34 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p54a07fa0.dip0.t-ipconnect.de. [84.160.127.160]) by smtp.gmail.com with ESMTPSA id rd12-20020a170907a28c00b00a11b2677acbsm1266784ejc.163.2023.12.08.10.19.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 10:19:34 -0800 (PST) Date: Fri, 8 Dec 2023 19:19:32 +0100 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 1/5] staging: rtl8192e: Remove function rtllib_update_active_chan_map() Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 08 Dec 2023 10:19:54 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784738846126434370 X-GMAIL-MSGID: 1784738846126434370 Remove function rtllib_update_active_chan_map() as "active_channel_map" and "channel_map" have the same content. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtllib_softmac.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/staging/rtl8192e/rtllib_softmac.c b/drivers/staging/rtl8192e/rtllib_softmac.c index d20970652432..fdb0e76d20b0 100644 --- a/drivers/staging/rtl8192e/rtllib_softmac.c +++ b/drivers/staging/rtl8192e/rtllib_softmac.c @@ -394,12 +394,6 @@ static void rtllib_send_probe_requests(struct rtllib_device *ieee) } } -static void rtllib_update_active_chan_map(struct rtllib_device *ieee) -{ - memcpy(ieee->active_channel_map, GET_DOT11D_INFO(ieee)->channel_map, - MAX_CHANNEL_NUMBER + 1); -} - /* this performs syncro scan blocking the caller until all channels * in the allowed channel map has been checked. */ @@ -408,8 +402,6 @@ static void rtllib_softmac_scan_syncro(struct rtllib_device *ieee) union iwreq_data wrqu; short ch = 0; - rtllib_update_active_chan_map(ieee); - ieee->be_scan_inprogress = true; mutex_lock(&ieee->scan_mutex); @@ -475,8 +467,6 @@ static void rtllib_softmac_scan_wq(void *data) struct rtllib_device, softmac_scan_wq); u8 last_channel = ieee->current_network.channel; - rtllib_update_active_chan_map(ieee); - if (!ieee->ieee_up) return; if (rtllib_act_scanning(ieee, true)) @@ -2042,8 +2032,6 @@ void rtllib_start_protocol(struct rtllib_device *ieee) short ch = 0; int i = 0; - rtllib_update_active_chan_map(ieee); - if (ieee->proto_started) return;