From nobody Tue Dec 16 16:35:21 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0FE94C10F07 for ; Sun, 10 Dec 2023 15:26:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232596AbjLJPZ7 (ORCPT ); Sun, 10 Dec 2023 10:25:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232822AbjLJPZz (ORCPT ); Sun, 10 Dec 2023 10:25:55 -0500 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F251C4 for ; Sun, 10 Dec 2023 07:26:01 -0800 (PST) Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-40b36e721fcso7374855e9.0 for ; Sun, 10 Dec 2023 07:26:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702221960; x=1702826760; 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=1HxTpgRZMqUaasDK2SQoows7vTW70XnRViyUroMPu9U=; b=njlxZ3SVKMNr1PdGKRq/wNtb7vSLaJi3Nnj53UeSUVtse+LfNEI6Vxk0o5CTD8imtK aeLuHEOvi1GxsKG+upcscV6q2oHdR2Jl2oOPQDC8nxo2u3UDh6FR2WXD1n8yCJDPDa7b p+SGSee5JblKivTt7/1Jihs6qCEgPQtkfPLCqPwdLb/FLkFnrumjhBJqAP6r1d1ERHu1 qiY6vraehAgz8hhKsOLR8OyCzqMBMca8uxtq96bMvxf0TFxF2KVla3Mbchms0dsqmfpJ 929hRwQpvQ66BMpZKtc8/ZK+lMZCXJkM3CRTmXUIZgLDvq9e4dfGzJqq+9zEsBNrOX46 jFTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702221960; x=1702826760; 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=1HxTpgRZMqUaasDK2SQoows7vTW70XnRViyUroMPu9U=; b=pTJPD/xpLw4zbY3q7I8TmMnjRsGgQ1/RoXr8Xe4iLT2uSQ/8lFdGp4sh1I473q+s4S zsVc6WYd6n3osqWWwR2nDwT/hEASSruBCCDytyXYuNRav7P1nrsk0bAXQpCJOSkEFLM3 9f1F88oFhBpxz5ANZDocDQ5dlf0Tb2pyXIdWRW2DKxGcAJMjfT+UKqgmLOxDb/18xag+ PaPMnw7UgV+i63oj7cB2b3ePSnmrMss2oDqKzeVYBmjbU12y6SKNSeuZDPkKOdJ6RTqS fpMCe5PIpnbkcxa3dVUQfhYY/BZDVeJPa1EjYVDWv8dggjcQg+4rY8BtMh41uSK7+GOD 6pxw== X-Gm-Message-State: AOJu0YzYuhNDEo8STBy0op3LHJC9kZLWHdYK8fG3fSbKmt04SW7GnmH4 00s8LJh4KGkyyWq6UkZnlvU= X-Google-Smtp-Source: AGHT+IH4EzRkwgg/9IU6xxKsto+E6fiddXvXCHiduD7imzBv3zqTn9K+VLHLteQrHMEJX5aVf67cYg== X-Received: by 2002:a05:600c:511a:b0:40b:516a:3856 with SMTP id o26-20020a05600c511a00b0040b516a3856mr4029610wms.1.1702221959852; Sun, 10 Dec 2023 07:25:59 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p54a07fa0.dip0.t-ipconnect.de. [84.160.127.160]) by smtp.gmail.com with ESMTPSA id fc17-20020a05600c525100b0040c42681fcesm3080228wmb.15.2023.12.10.07.25.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Dec 2023 07:25:59 -0800 (PST) Date: Sun, 10 Dec 2023 16:25:58 +0100 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 01/10] staging: rtl8192e: Remove unused struct iw_range_with_scan_capa Message-ID: <8b4532b8739ca0baa9fa7c736dab68130510ffe8.1702212003.git.philipp.g.hortmann@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Remove unused struct iw_range_with_scan_capa. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtl8192e/rtl_wx.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c b/drivers/staging/r= tl8192e/rtl8192e/rtl_wx.c index 4371ab1239ee..4c884c5277f9 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c @@ -158,28 +158,6 @@ static int _rtl92e_wx_set_mode(struct net_device *dev, return ret; } =20 -struct iw_range_with_scan_capa { - /* Informative stuff (to choose between different interface) */ - __u32 throughput; /* To give an idea... */ - /* In theory this value should be the maximum benchmarked - * TCP/IP throughput, because with most of these devices the - * bit rate is meaningless (overhead an co) to estimate how - * fast the connection will go and pick the fastest one. - * I suggest people to play with Netperf or any benchmark... - */ - - /* NWID (or domain id) */ - __u32 min_nwid; /* Minimal NWID we are able to set */ - __u32 max_nwid; /* Maximal NWID we are able to set */ - - /* Old Frequency (backward compat - moved lower ) */ - __u16 old_num_channels; - __u8 old_num_frequency; - - /* Scan capabilities */ - __u8 scan_capa; -}; - static int _rtl92e_wx_get_range(struct net_device *dev, struct iw_request_info *info, union iwreq_data *wrqu, char *extra) --=20 2.43.0 From nobody Tue Dec 16 16:35:21 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21691C4167B for ; Sun, 10 Dec 2023 15:26:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232801AbjLJP0L (ORCPT ); Sun, 10 Dec 2023 10:26:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232816AbjLJP0I (ORCPT ); Sun, 10 Dec 2023 10:26:08 -0500 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8599C4 for ; Sun, 10 Dec 2023 07:26:13 -0800 (PST) Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-40c2655da63so5702935e9.1 for ; Sun, 10 Dec 2023 07:26:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702221972; x=1702826772; 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=IXZChcAWYyXJ3xwEo34Bj3n8r/lOSA4PWuJHfRPgZ7U=; b=B2Lfq/RiuXh36LmwWl+Xvk9UMq1OIFpOnW4LB4Rn6qLzLTgmdY8TOTtbHn9AFb865T p9IELjOhMO1TILYEKfOnkxjVC0Z2OPJba/H997X69tZvVGsngB0PEF8MwPCY0Le0Ylhz EsmItVlxB/ZGxrsC99ElurTQ9aXIqRLnpbenEC/5HprAIPKElc3j0kYKq6eYrfDq4XDh JxkEotB3J/Jp/E0lxy7w9LUmH5MkekkMADlgWOuN9HHOSIg9IjnF9Gt4KDfCSchakgeX qF2jPgqTXWALigBL+1lJcyZGiKGwZk3OLAEHG6UEHdrnA2tkeQd9E5/22TaaSdAcqjzj tNSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702221972; x=1702826772; 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=IXZChcAWYyXJ3xwEo34Bj3n8r/lOSA4PWuJHfRPgZ7U=; b=SqMglXy/rzspOlszVhehrVjXOWqk2eRC3YVZQcHbTtph2Az8VH41oODWKL2ER4BF32 IruUyhqUicm3qoXYJj6JDSj6HH+k1xfgBoP8k4gm24dqvIQIvgBOBmTXugXPRnLN0Gk0 30kG9arRfUnZQP0UgcEZE27cvDsFpyeIdiueu1JoGR2x1ZEz0B3/wHFPqJA3slcKMMYA hcJKVmriZ75obfdquWRVLvL9X7mXVxj4LU0VWgKbNKfRlUZ1cPI6UNlI8AmCcaIrOYrR dwqz++k4EXPfiRg92zdFTWYHAJcqTnuKH8B81tFOjghV+sTzxz8dB/FyXg3JCg4tPKbk eVaw== X-Gm-Message-State: AOJu0Yw2nPOecG9zdz9KfmZEm/XtQ7ARn2/ed51kLsn2sVehTIhyLtwD hZKhsnyeHQjedd9tkIEi3Yw= X-Google-Smtp-Source: AGHT+IGqLnNPjUYQ+YdfgFxcsr4GPTxHvUrBPwPPACa9RwN6TVPv8JLz4sYFmXnX/YuMpO+AmBVXKg== X-Received: by 2002:a05:600c:35d6:b0:405:358c:ba75 with SMTP id r22-20020a05600c35d600b00405358cba75mr4025647wmq.0.1702221971674; Sun, 10 Dec 2023 07:26:11 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p54a07fa0.dip0.t-ipconnect.de. [84.160.127.160]) by smtp.gmail.com with ESMTPSA id k40-20020a05600c1ca800b0040b45356b72sm12132495wms.33.2023.12.10.07.26.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Dec 2023 07:26:11 -0800 (PST) Date: Sun, 10 Dec 2023 16:26:10 +0100 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 02/10] staging: rtl8192e: Remove variable ht_info->reg_bw_40mhz Message-ID: <4ff7afdc2ada8095c95f053381834cea9f5796bf.1702212003.git.philipp.g.hortmann@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" ht_info->reg_bw_40mhz is set to 1 and unchanged. Therefore all equations result accordingly and ht_info->reg_bw_40mhz can be removed. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtl819x_HT.h | 1 - drivers/staging/rtl8192e/rtl819x_HTProc.c | 14 +++----------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_HT.h b/drivers/staging/rtl819= 2e/rtl819x_HT.h index c004020099e3..bbfdfb79c6f2 100644 --- a/drivers/staging/rtl8192e/rtl819x_HT.h +++ b/drivers/staging/rtl8192e/rtl819x_HT.h @@ -94,7 +94,6 @@ enum ht_aggre_mode { struct rt_hi_throughput { u8 enable_ht; u8 current_ht_support; - u8 reg_bw_40mhz; u8 cur_bw_40mhz; u8 reg_short_gi_40mhz; u8 cur_short_gi_40mhz; diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rt= l8192e/rtl819x_HTProc.c index 99626be899fd..f81d9ba9c9f5 100644 --- a/drivers/staging/rtl8192e/rtl819x_HTProc.c +++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c @@ -74,12 +74,7 @@ void ht_update_default_setting(struct rtllib_device *iee= e) ht_info->reg_short_gi_20mhz =3D 1; ht_info->reg_short_gi_40mhz =3D 1; =20 - ht_info->reg_bw_40mhz =3D 1; - - if (ht_info->reg_bw_40mhz) - ht_info->reg_supp_cck =3D 1; - else - ht_info->reg_supp_cck =3D true; + ht_info->reg_supp_cck =3D 1; =20 ht_info->amsdu_max_size =3D 7935UL; ht_info->amsdu_support =3D 0; @@ -275,7 +270,7 @@ void HTConstructCapabilityElement(struct rtllib_device = *ieee, u8 *posHTCap, if (ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev)) pCapELE->ChlWidth =3D 0; else - pCapELE->ChlWidth =3D (pHT->reg_bw_40mhz ? 1 : 0); + pCapELE->ChlWidth =3D 1; =20 pCapELE->MimoPwrSave =3D pHT->self_mimo_ps; pCapELE->GreenField =3D 0; @@ -286,7 +281,7 @@ void HTConstructCapabilityElement(struct rtllib_device = *ieee, u8 *posHTCap, pCapELE->RxSTBC =3D 0; pCapELE->DelayBA =3D 0; pCapELE->MaxAMSDUSize =3D (MAX_RECEIVE_BUFFER_SIZE >=3D 7935) ? 1 : 0; - pCapELE->DssCCk =3D ((pHT->reg_bw_40mhz) ? (pHT->reg_supp_cck ? 1 : 0) : = 0); + pCapELE->DssCCk =3D (pHT->reg_supp_cck ? 1 : 0); pCapELE->PSMP =3D 0; pCapELE->LSigTxopProtect =3D 0; =20 @@ -734,9 +729,6 @@ void HTSetConnectBwMode(struct rtllib_device *ieee, { struct rt_hi_throughput *ht_info =3D ieee->ht_info; =20 - if (!ht_info->reg_bw_40mhz) - return; - if (ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev)) bandwidth =3D HT_CHANNEL_WIDTH_20; =20 --=20 2.43.0 From nobody Tue Dec 16 16:35:21 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0A5C0C4167B for ; Sun, 10 Dec 2023 15:26:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232885AbjLJP0U (ORCPT ); Sun, 10 Dec 2023 10:26:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232840AbjLJP0Q (ORCPT ); Sun, 10 Dec 2023 10:26:16 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC15E11A for ; Sun, 10 Dec 2023 07:26:21 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-40b36e721fcso7375665e9.0 for ; Sun, 10 Dec 2023 07:26:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702221980; x=1702826780; 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=fHHEx4HhN/ZzvVnFKWTOzaSwu+z7Yx7t+wmiq/WZcOk=; b=ZODsqg3MlFhIbYKFa5XC1JS0q8/5t2RhMhP4m8yLUG5QQOPOEBSA9WPQ0P9QztHC52 mUn3OgDWISSt1fd/XwRFg4r6btFaMA2k3mX8G1FSjgAoLfAozHy57idvA/bhRXcAQEBW Go7UQAkcOYV7gpw//d3kwoKB42lOsgC2u1hFOIBzc3K5tnWyY9f+DvLnKTUuR34u1Rc5 QIF3i79O4JRVO+AccUJ/zGajK6ZAflPzaXkrlkgqd/iIrMClVtfRBIpZA+kwwnzoDid8 hpTTvc7v086miYcKqIP2Sg0lpbLE00JZaqRYwpBiwIAFg0EqPcJj7Azid95W6f/Tyu37 AFMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702221980; x=1702826780; 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=fHHEx4HhN/ZzvVnFKWTOzaSwu+z7Yx7t+wmiq/WZcOk=; b=jc2Zx/5YWKlHZC+l/TgHYX3h0Cn5ia7u+5aeWp7Ih6A+Ph60+WUBTsHvyoft8ZtzMB FYsw6YyV9PkXXi0nvZ+7siPOu6PoNXpkEDbmagXdhdlPrK2jXjaqEuonidupnbmsuI2g AP89vVQ9vKhogEaYiNU0BJf6E3CwuimsMi9xaZ7okc2OJmbi07APEbSEPxatlYLPzJCi QPZiA4D37iN9rA9GyRlnHS5/Wj8kM2DsdpZuSwe1UqPV/RNT/tG7raeL/3hzlhY/oYJB d//9ZvZkbDcfsBFdczfxgcN0k9zgIwiDXe28oYqieQrpDk8mmWE2PTgsf1mqcVC26jqp ksKA== X-Gm-Message-State: AOJu0Yw0jE1so14QwPeVlRBptSyd1xHSFGtxeDvR0vf9BIWOpq3eWxUu 4+X9tP6xonqFo7NVWDZGfkE= X-Google-Smtp-Source: AGHT+IFOsbIAp+/L+GqcUlyiseulJCLY2ArDFGZzJbFClxY3Zhcm+QVMnFMsDiUIRwD7wi0XpNvs0A== X-Received: by 2002:a05:600c:1c86:b0:3fe:d637:7b25 with SMTP id k6-20020a05600c1c8600b003fed6377b25mr4069911wms.0.1702221979935; Sun, 10 Dec 2023 07:26:19 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p54a07fa0.dip0.t-ipconnect.de. [84.160.127.160]) by smtp.gmail.com with ESMTPSA id jg8-20020a05600ca00800b0040b54335d57sm12141082wmb.17.2023.12.10.07.26.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Dec 2023 07:26:19 -0800 (PST) Date: Sun, 10 Dec 2023 16:26:18 +0100 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 03/10] staging: rtl8192e: Remove variable ht_info->reg_supp_cck Message-ID: <2c9be9efb1c0608a7fc2658d813b9adbc1185db1.1702212003.git.philipp.g.hortmann@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" ht_info->reg_supp_cck is set to 1 and unchanged. Therefore all equations result accordingly and ht_info->reg_supp_cck can be removed. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtl819x_HT.h | 1 - drivers/staging/rtl8192e/rtl819x_HTProc.c | 8 ++------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_HT.h b/drivers/staging/rtl819= 2e/rtl819x_HT.h index bbfdfb79c6f2..6556c5df958d 100644 --- a/drivers/staging/rtl8192e/rtl819x_HT.h +++ b/drivers/staging/rtl8192e/rtl819x_HT.h @@ -99,7 +99,6 @@ struct rt_hi_throughput { u8 cur_short_gi_40mhz; u8 reg_short_gi_20mhz; u8 cur_short_gi_20mhz; - u8 reg_supp_cck; u8 bCurSuppCCK; enum ht_spec_ver ePeerHTSpecVer; struct ht_capab_ele SelfHTCap; diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rt= l8192e/rtl819x_HTProc.c index f81d9ba9c9f5..7acc8b4c11c4 100644 --- a/drivers/staging/rtl8192e/rtl819x_HTProc.c +++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c @@ -74,8 +74,6 @@ void ht_update_default_setting(struct rtllib_device *ieee) ht_info->reg_short_gi_20mhz =3D 1; ht_info->reg_short_gi_40mhz =3D 1; =20 - ht_info->reg_supp_cck =3D 1; - ht_info->amsdu_max_size =3D 7935UL; ht_info->amsdu_support =3D 0; =20 @@ -281,7 +279,7 @@ void HTConstructCapabilityElement(struct rtllib_device = *ieee, u8 *posHTCap, pCapELE->RxSTBC =3D 0; pCapELE->DelayBA =3D 0; pCapELE->MaxAMSDUSize =3D (MAX_RECEIVE_BUFFER_SIZE >=3D 7935) ? 1 : 0; - pCapELE->DssCCk =3D (pHT->reg_supp_cck ? 1 : 0); + pCapELE->DssCCk =3D 1; pCapELE->PSMP =3D 0; pCapELE->LSigTxopProtect =3D 0; =20 @@ -480,9 +478,7 @@ void HTOnAssocRsp(struct rtllib_device *ieee) ((pPeerHTCap->ShortGI40Mhz =3D=3D 1) ? true : false) : false); =20 - ht_info->bCurSuppCCK =3D ((ht_info->reg_supp_cck) ? - ((pPeerHTCap->DssCCk =3D=3D 1) ? true : - false) : false); + ht_info->bCurSuppCCK =3D ((pPeerHTCap->DssCCk =3D=3D 1) ? true : false); =20 ht_info->bCurrent_AMSDU_Support =3D ht_info->amsdu_support; =20 --=20 2.43.0 From nobody Tue Dec 16 16:35:21 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 06BE9C4167B for ; Sun, 10 Dec 2023 15:26:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233016AbjLJP0d (ORCPT ); Sun, 10 Dec 2023 10:26:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232882AbjLJP0X (ORCPT ); Sun, 10 Dec 2023 10:26:23 -0500 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99A9B11C for ; Sun, 10 Dec 2023 07:26:27 -0800 (PST) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-40c192f488cso5990765e9.1 for ; Sun, 10 Dec 2023 07:26:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702221986; x=1702826786; 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=jSfz65UDs/wKcMDkHDq6mjAfRk0t651ez9MkrfvQFp0=; b=MpBypr/M6t0DNCT6qCQAVhY7e1Iulb1ONTNxr1oj19zUhXUxksz0Q/4Qggdpgk+RXH CMW4Fx2J8JCCjQEGnnojfsG8FXWHbp4dqJxTRDcDuJA+fQbRH1U7yoSahF1MPlD9GJNA PuzatxznlF7md/anbyyannA0DKlBqlxU0TV48sQU5KuBUCykaPVqiHTzPQDVZlYr9dPB 1zq/w3sRK4w03+Bhp5STeyzyA5K5gWyyoc2ukOpq/5v5ljMFfgZ0P9sgleZLuppT+JpY 409VauBrtq9+XcYMe5Z6olpqkbuukJiyKDdinkxpCVUXwimMFlTBzwX+BIGswk2SmX1n 37Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702221986; x=1702826786; 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=jSfz65UDs/wKcMDkHDq6mjAfRk0t651ez9MkrfvQFp0=; b=Gfw3PsYV5sDLMBAh/AlHzYTzEk9G1+ggvbcV61auo5Bw4PGK/0r5N5+usiYc0WS6p7 m76LQ4aX0+MIGNTcN5rzLMZbbszL/vwZhlMYIBtAUQjt0bQjdykB0A5TUXDm6nCrXPq1 c1WkOdzZ/Z5hcYXQ7d/QALSyG3WhiRG65uHW3LlTOJMotZ45jU9gKV0GtxXumFQ/o02s NLUyJoiU/owY0nm3PnKiUkLRdREvBaVJWk9zdEl6vfqV0glyeBhPy98NK202zGmR1nYl ILKN+teep/JChM5oKLIyCMfbESzDsN+BVodM8wfC3DNKOhgaUiO8gA8vRa3ba1W0r67d 4Alg== X-Gm-Message-State: AOJu0Yys3ZOHZDNR8siNlN3DAu4YuurdtasGhByvHY7ZSIznrv0oIdHF P3krPCLZSBws45N0IFazolua8Di5wqA= X-Google-Smtp-Source: AGHT+IELaS9Zr+mPun+iaRw9flRNeqOTMP1mF8lUdD7/PdMBwDlmQtXTrSt7KifuKZ2C8wH7VD5i1g== X-Received: by 2002:a05:6000:154f:b0:333:5330:2934 with SMTP id 15-20020a056000154f00b0033353302934mr4979541wry.1.1702221985654; Sun, 10 Dec 2023 07:26:25 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p54a07fa0.dip0.t-ipconnect.de. [84.160.127.160]) by smtp.gmail.com with ESMTPSA id g3-20020adff403000000b003335ddce799sm6529063wro.103.2023.12.10.07.26.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Dec 2023 07:26:25 -0800 (PST) Date: Sun, 10 Dec 2023 16:26:24 +0100 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 04/10] staging: rtl8192e: Remove variable ht_info->reg_short_gi_20mhz Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" ht_info->reg_short_gi_20mhz is set to 1 and unchanged. Therefore all equations result accordingly and ht_info->reg_short_gi_20mhz can be removed. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtl819x_HT.h | 1 - drivers/staging/rtl8192e/rtl819x_HTProc.c | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_HT.h b/drivers/staging/rtl819= 2e/rtl819x_HT.h index 6556c5df958d..8a4bd389004a 100644 --- a/drivers/staging/rtl8192e/rtl819x_HT.h +++ b/drivers/staging/rtl8192e/rtl819x_HT.h @@ -97,7 +97,6 @@ struct rt_hi_throughput { u8 cur_bw_40mhz; u8 reg_short_gi_40mhz; u8 cur_short_gi_40mhz; - u8 reg_short_gi_20mhz; u8 cur_short_gi_20mhz; u8 bCurSuppCCK; enum ht_spec_ver ePeerHTSpecVer; diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rt= l8192e/rtl819x_HTProc.c index 7acc8b4c11c4..ed9b3db1a393 100644 --- a/drivers/staging/rtl8192e/rtl819x_HTProc.c +++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c @@ -71,7 +71,6 @@ void ht_update_default_setting(struct rtllib_device *ieee) { struct rt_hi_throughput *ht_info =3D ieee->ht_info; =20 - ht_info->reg_short_gi_20mhz =3D 1; ht_info->reg_short_gi_40mhz =3D 1; =20 ht_info->amsdu_max_size =3D 7935UL; @@ -471,9 +470,7 @@ void HTOnAssocRsp(struct rtllib_device *ieee) ht_info->cur_tx_bw40mhz =3D ((pPeerHTInfo->RecommemdedTxWidth =3D=3D 1) ? true : false); =20 - ht_info->cur_short_gi_20mhz =3D ((ht_info->reg_short_gi_20mhz) ? - ((pPeerHTCap->ShortGI20Mhz =3D=3D 1) ? - true : false) : false); + ht_info->cur_short_gi_20mhz =3D ((pPeerHTCap->ShortGI20Mhz =3D=3D 1) ? tr= ue : false); ht_info->cur_short_gi_40mhz =3D ((ht_info->reg_short_gi_40mhz) ? ((pPeerHTCap->ShortGI40Mhz =3D=3D 1) ? true : false) : false); --=20 2.43.0 From nobody Tue Dec 16 16:35:21 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7EFA9C4167B for ; Sun, 10 Dec 2023 15:26:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232908AbjLJP0k (ORCPT ); Sun, 10 Dec 2023 10:26:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231903AbjLJP0a (ORCPT ); Sun, 10 Dec 2023 10:26:30 -0500 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77D5710D0 for ; Sun, 10 Dec 2023 07:26:33 -0800 (PST) Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-40c362efc2dso3854425e9.0 for ; Sun, 10 Dec 2023 07:26:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702221992; x=1702826792; 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=5+7aTaTlcaG6uppnc5wOD9WJR1BJWGY5PIIBacZp7LI=; b=WOxgdIfGRv7Q11C6VCTzuAgfaJtWtOeRpNpmUuHrMxoxPako2hKkc0PqJa2ZSmFXmS 10grmo42pPTQsWNtA0gh/gpg65Ve6udGBcYDft7/1vQGBmUyLv+5dWpNPUMgjALXeSsV Dr24Exh3zBExv3q8NINOCU+25l1xwQjYf7enDsnBJRPRMr9SpwPR8FTH/uHooaP1q3Wf bcnK2OKBi/MJMI2sWiSE5H8/aickmrfXK2IJu9Yh3yRZxs1o842Oz+E+5YC2BiNhWTMZ pawD7JuEwLAFxIcKsmCKDwSHk+AnWw1/3RbNA4kziq3dIk4e8/DNPNMzfLF7VbvN5/ge 3nfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702221992; x=1702826792; 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=5+7aTaTlcaG6uppnc5wOD9WJR1BJWGY5PIIBacZp7LI=; b=fbUZvKFn2kwhldgQDMkxheaGnlYYiuZ6m6/tyDdP5PJk41KXcMAwg3Hf4u1Ithqy+E KfvgnPqSxz6b0K9B4MxNCBXzmelAb9QwcWOosHqkQ3caQLCKpa53RFyEifbiR6Bd3v+D vY7eU7o0Slo/dkrDnkN/FGCNEXF52zIvAom3YMNo7VZ0Lt7ZN8VmuNQgzQBQ5rxGfobO stLGtS1y6pzXewDHy680W+qvwE6yXNrGOY2Br4btHWPs67l/a+40zMV2hCsHMq2FQJ+W GH9bsgIdh4bNholasg5FePg1+g0sHKEho4wH8AnNKFBueSbSDOXY/dBi6skUoW/Ad/dT oMJw== X-Gm-Message-State: AOJu0YyguWhUvRno2z99hScA8wxTqfJwyZS4GTghW5tZsLcgevFqz+pf oS6klEYS/wbBlBMLh0JwZJs= X-Google-Smtp-Source: AGHT+IEIz5F2RMVOcsuKSimCj3U2AYWR3DKo626ZvJedo1stLVJcI1Wd5pxDlCOLi2BsG8Imgh7etw== X-Received: by 2002:a05:600c:35d6:b0:405:358c:ba75 with SMTP id r22-20020a05600c35d600b00405358cba75mr4026078wmq.0.1702221991724; Sun, 10 Dec 2023 07:26:31 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p54a07fa0.dip0.t-ipconnect.de. [84.160.127.160]) by smtp.gmail.com with ESMTPSA id o3-20020a05600c4fc300b004042dbb8925sm12148980wmq.38.2023.12.10.07.26.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Dec 2023 07:26:31 -0800 (PST) Date: Sun, 10 Dec 2023 16:26:30 +0100 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 05/10] staging: rtl8192e: Remove variable ht_info->reg_short_gi_40mhz Message-ID: <255039e0cb27582a98a0b86340dfe88f14c08a76.1702212003.git.philipp.g.hortmann@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" ht_info->reg_short_gi_40mhz is set to 1 and unchanged. Therefore all equations result accordingly and ht_info->reg_short_gi_40mhz can be removed. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtl819x_HT.h | 1 - drivers/staging/rtl8192e/rtl819x_HTProc.c | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_HT.h b/drivers/staging/rtl819= 2e/rtl819x_HT.h index 8a4bd389004a..0664eb86bada 100644 --- a/drivers/staging/rtl8192e/rtl819x_HT.h +++ b/drivers/staging/rtl8192e/rtl819x_HT.h @@ -95,7 +95,6 @@ struct rt_hi_throughput { u8 enable_ht; u8 current_ht_support; u8 cur_bw_40mhz; - u8 reg_short_gi_40mhz; u8 cur_short_gi_40mhz; u8 cur_short_gi_20mhz; u8 bCurSuppCCK; diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rt= l8192e/rtl819x_HTProc.c index ed9b3db1a393..0a5885d6c0a0 100644 --- a/drivers/staging/rtl8192e/rtl819x_HTProc.c +++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c @@ -71,8 +71,6 @@ void ht_update_default_setting(struct rtllib_device *ieee) { struct rt_hi_throughput *ht_info =3D ieee->ht_info; =20 - ht_info->reg_short_gi_40mhz =3D 1; - ht_info->amsdu_max_size =3D 7935UL; ht_info->amsdu_support =3D 0; =20 @@ -471,9 +469,7 @@ void HTOnAssocRsp(struct rtllib_device *ieee) true : false); =20 ht_info->cur_short_gi_20mhz =3D ((pPeerHTCap->ShortGI20Mhz =3D=3D 1) ? tr= ue : false); - ht_info->cur_short_gi_40mhz =3D ((ht_info->reg_short_gi_40mhz) ? - ((pPeerHTCap->ShortGI40Mhz =3D=3D 1) ? - true : false) : false); + ht_info->cur_short_gi_40mhz =3D ((pPeerHTCap->ShortGI40Mhz =3D=3D 1) ? tr= ue : false); =20 ht_info->bCurSuppCCK =3D ((pPeerHTCap->DssCCk =3D=3D 1) ? true : false); =20 --=20 2.43.0 From nobody Tue Dec 16 16:35:21 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F2363C4167B for ; Sun, 10 Dec 2023 15:27:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233019AbjLJP0x (ORCPT ); Sun, 10 Dec 2023 10:26:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233038AbjLJP0i (ORCPT ); Sun, 10 Dec 2023 10:26:38 -0500 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98E6C106 for ; Sun, 10 Dec 2023 07:26:41 -0800 (PST) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-40c2d50c0adso6103485e9.1 for ; Sun, 10 Dec 2023 07:26:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702222000; x=1702826800; 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=x27vCUpD2eYMWgYKl63p6rruFTypQyGCnQHgn4PVIcE=; b=eO7wJzrPDX0s6bLCjO0+wCr0LEqwKFUoqohd6qD3mcaB3jinTLWbGPoiDVIc5X2TNw XUn7ugqqP75Yv4C2euChXFB///cr6SnPJWp12vd35z2joZ3y+U8wvFiLF+kDVgJfLDhk PlWZipQQyQn203ORovJ7hr1VPBonKIwbjj+tGNjshbldW45VQ0EzWd7jE/40Gow/SJDm qUpEOjyO0s8wj/vzc/Zpz6HcZ9GKHrvkyPeoopySW+0yppDtS/E1E2TwWeK0eaFMmhJ7 lfLgosEnkMTDOSg09TObXNHtAvwC6+7tSSnaL57zS7+w4jD16P90zrqyuGPVTLbrBAfw WwOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702222000; x=1702826800; 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=x27vCUpD2eYMWgYKl63p6rruFTypQyGCnQHgn4PVIcE=; b=Rsk9PXtQHL9LkDTS6XT93ydWTcQbKsn3w61Fi7so/Wmzeq68mnusOKm6mmKQnFjqKv 8P3YOaUouR2/cr3wtdRaj8jTwC0/spJUqvEOpBYAr3QrW2t5YwrT7hDgzFAo/Zl4uyUr dXVr+2Vh35Ly3+LU/xpU8J+OAqzCcFaTImam/6ED/LItIcPDONsq/aZ4xZUabXDE41QL Igv28cvQN//4+QPEPNhRVNmrVcHd4SfucifLePYBv6unxUceAn+TQidvd5Z3VEzRFj0z VvSeX+kupN1x/vfxBDUUNOH04KHzUwtV8Xw2aadiW8hjejXCztENIU7PE3U5kLDS76sd CbNQ== X-Gm-Message-State: AOJu0Yz1r/y8lCEWjr4HB7SVD2XmktMBv7daDmCsPA8C/KY7Z6M+Ki7+ e5nfzt3QfxS/sKzh0ILfiaig7bkMiDc= X-Google-Smtp-Source: AGHT+IF31uLVQkwuqXW9FQ67nNYdTNzAXw9J7VWuE5x35tRZB11V4Tbb2i9IxCBKrUs7L/0zp2zzbA== X-Received: by 2002:a05:6000:4026:b0:333:50f2:5757 with SMTP id cp38-20020a056000402600b0033350f25757mr3500662wrb.5.1702221999797; Sun, 10 Dec 2023 07:26:39 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p54a07fa0.dip0.t-ipconnect.de. [84.160.127.160]) by smtp.gmail.com with ESMTPSA id g9-20020a5d4889000000b0033609584b9dsm6265939wrq.74.2023.12.10.07.26.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Dec 2023 07:26:39 -0800 (PST) Date: Sun, 10 Dec 2023 16:26:38 +0100 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 06/10] staging: rtl8192e: Remove variable ForcedAMPDUMode Message-ID: <5bf740a2da78ec3b54249a30cbee70301b37e7eb.1702212003.git.philipp.g.hortmann@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" ForcedAMPDUMode is set to 0 and unchanged. Therefore all equations result accordingly and ForcedAMPDUMode can be removed. As a result label FORCED_AGG_SETTING is unused and can be removed as well. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtl819x_HT.h | 1 - drivers/staging/rtl8192e/rtllib_tx.c | 21 ++------------------- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_HT.h b/drivers/staging/rtl819= 2e/rtl819x_HT.h index 0664eb86bada..d249062e7b66 100644 --- a/drivers/staging/rtl8192e/rtl819x_HT.h +++ b/drivers/staging/rtl8192e/rtl819x_HT.h @@ -113,7 +113,6 @@ struct rt_hi_throughput { u8 CurrentAMPDUFactor; u8 mpdu_density; u8 current_mpdu_density; - enum ht_aggre_mode ForcedAMPDUMode; u8 forced_ampdu_factor; u8 forced_mpdu_density; enum ht_aggre_mode ForcedAMSDUMode; diff --git a/drivers/staging/rtl8192e/rtllib_tx.c b/drivers/staging/rtl8192= e/rtllib_tx.c index a2ae68cc13f5..0fa6f674a844 100644 --- a/drivers/staging/rtl8192e/rtllib_tx.c +++ b/drivers/staging/rtl8192e/rtllib_tx.c @@ -303,13 +303,13 @@ static void rtllib_tx_query_agg_cap(struct rtllib_dev= ice *ieee, } else if (!ts->disable_add_ba) { TsStartAddBaProcess(ieee, ts); } - goto FORCED_AGG_SETTING; + return; } else if (!ts->using_ba) { if (SN_LESS(ts->tx_admitted_ba_record.ba_start_seq_ctrl.field.seq_num, (ts->tx_cur_seq + 1) % 4096)) ts->using_ba =3D true; else - goto FORCED_AGG_SETTING; + return; } if (ieee->iw_mode =3D=3D IW_MODE_INFRA) { tcb_desc->ampdu_enable =3D true; @@ -317,23 +317,6 @@ static void rtllib_tx_query_agg_cap(struct rtllib_devi= ce *ieee, tcb_desc->ampdu_density =3D ht_info->current_mpdu_density; } } -FORCED_AGG_SETTING: - switch (ht_info->ForcedAMPDUMode) { - case HT_AGG_AUTO: - break; - - case HT_AGG_FORCE_ENABLE: - tcb_desc->ampdu_enable =3D true; - tcb_desc->ampdu_density =3D ht_info->forced_mpdu_density; - tcb_desc->ampdu_factor =3D ht_info->forced_ampdu_factor; - break; - - case HT_AGG_FORCE_DISABLE: - tcb_desc->ampdu_enable =3D false; - tcb_desc->ampdu_density =3D 0; - tcb_desc->ampdu_factor =3D 0; - break; - } } =20 static void rtllib_query_ShortPreambleMode(struct rtllib_device *ieee, --=20 2.43.0 From nobody Tue Dec 16 16:35:21 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 32C88C4167B for ; Sun, 10 Dec 2023 15:27:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233006AbjLJP1A (ORCPT ); Sun, 10 Dec 2023 10:27:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233150AbjLJP0m (ORCPT ); Sun, 10 Dec 2023 10:26:42 -0500 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 421A7193 for ; Sun, 10 Dec 2023 07:26:48 -0800 (PST) Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-40c192f488cso5991535e9.1 for ; Sun, 10 Dec 2023 07:26:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702222006; x=1702826806; 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=W1A/KEgyt6f82zEHVyS55QzynSt7PFOs4Ej8iQWUE3o=; b=fm4V0PNeZ/AF2JECUxMGN7RSPUbZjr8VwGvRjjS2H3wjWNQUZFSYmJSfB9IHG4opdY 6cX6qb7c1VRfkvu72S21g1DpYgd4PdvTcVEoXa/VYkJfRGiLcd8vadPv0KDMy9EZXKHh KdxfhRDIKSE8pVoUEGurul15mdk1KGutiumY150mpqOwWlaj16Q7W9CJumXfPv6nHQDO LBGhtQdtx05iHmhNRO2gXPy7JQgrc9y4TEU7PwNhA/gYjuv0/x9rhI3EptApt58r/0Hj gz82ZHB6JaXaBgf+01Y1kSKmaCPUDOGmpMiMclRz6YCG/cnQZNfryii2WSA995g4/7NB MDrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702222006; x=1702826806; 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=W1A/KEgyt6f82zEHVyS55QzynSt7PFOs4Ej8iQWUE3o=; b=RjtbjpoC0NwPI0MADrIzvpLX0vbIu4qqVo8kUx/R5M+FqoYlkN02yz+heHFd62fNgl 0gvU4rkG7HZMVGri+wzRR3tAOopvkeN5YnX87LZkc4o3sL3RaMme33giyFiSTYmWUup0 wEwyRZomjSMY9Cme0PbOWD6ynUa4Kdqyof2/KkxqgGHA7bRYSQWsRj82MH13Z+XMuRNp K6c17LK5N7j4cBiu4RlunT6KsmDIVlRRZ0o+PmD7R9NAy0b/u/Z2iUkKDnqlDgPwmvjz OoxzoHwGvphRLGbuyCdR80w+2lEAWcDhFvje20jnnOJod0zi0oV2WL8jm4EDZxLUPCSN //ZQ== X-Gm-Message-State: AOJu0Yw9ZfaHTbZbAykyMTpwORWpVJQv1Z93WE4uBuuRQXAeCXT2WTeQ a72VItg5xvfQBYmM6tuFcfY= X-Google-Smtp-Source: AGHT+IG+egokZ4LpUcvK7T07fDpzPhtz85ZEe6LZDMNFDLu9BGAD1guVZLyFzvbqnXFmVFnxHOJrlw== X-Received: by 2002:a05:600c:524e:b0:40b:2708:2a52 with SMTP id fc14-20020a05600c524e00b0040b27082a52mr4018180wmb.1.1702222006500; Sun, 10 Dec 2023 07:26:46 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p54a07fa0.dip0.t-ipconnect.de. [84.160.127.160]) by smtp.gmail.com with ESMTPSA id t15-20020a05600c198f00b0040c4620b9fasm1534010wmq.11.2023.12.10.07.26.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Dec 2023 07:26:46 -0800 (PST) Date: Sun, 10 Dec 2023 16:26:44 +0100 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 07/10] staging: rtl8192e: Remove variable ForcedAMSDUMode Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" ForcedAMSDUMode is set to 1 and then never evaluated. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtl819x_HT.h | 1 - drivers/staging/rtl8192e/rtl819x_HTProc.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_HT.h b/drivers/staging/rtl819= 2e/rtl819x_HT.h index d249062e7b66..670affe9d57b 100644 --- a/drivers/staging/rtl8192e/rtl819x_HT.h +++ b/drivers/staging/rtl8192e/rtl819x_HT.h @@ -115,7 +115,6 @@ struct rt_hi_throughput { u8 current_mpdu_density; u8 forced_ampdu_factor; u8 forced_mpdu_density; - enum ht_aggre_mode ForcedAMSDUMode; u8 forced_short_gi; u8 current_op_mode; u8 self_mimo_ps; diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rt= l8192e/rtl819x_HTProc.c index 0a5885d6c0a0..bedee290e7f5 100644 --- a/drivers/staging/rtl8192e/rtl819x_HTProc.c +++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c @@ -513,7 +513,6 @@ void HTOnAssocRsp(struct rtllib_device *ieee) pPeerHTCap->MPDUDensity); if (ht_info->iot_action & HT_IOT_ACT_TX_USE_AMSDU_8K) { ht_info->current_ampdu_enable =3D false; - ht_info->ForcedAMSDUMode =3D HT_AGG_FORCE_ENABLE; } ht_info->cur_rx_reorder_enable =3D ht_info->reg_rx_reorder_enable; =20 --=20 2.43.0 From nobody Tue Dec 16 16:35:21 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C19DCC4167B for ; Sun, 10 Dec 2023 15:27:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233279AbjLJP1J (ORCPT ); Sun, 10 Dec 2023 10:27:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232882AbjLJP0t (ORCPT ); Sun, 10 Dec 2023 10:26:49 -0500 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22EE418E for ; Sun, 10 Dec 2023 07:26:55 -0800 (PST) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-40c2655da63so5703455e9.1 for ; Sun, 10 Dec 2023 07:26:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702222013; x=1702826813; 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=5AX8g/wXZvYEzrNX0i7zijBGLcVcluFx1cTL3h9KKB8=; b=DQ8TmW5FpxfVS3Te0xcT1UV08WymrMwpmVRqKN2xdlS3G1fWL5n3lRF4/p1ngvVIR3 fwVYziy4BZSVSMBSpMJF7HdZQjmuU9CKh5yEA5FSIvKxw/OijPA50ZikqYh+vWkQAnDL A8IH6vgocmZGX++MzgJF6JzCQlbxB9V+WdQ+1UEO7qPHfqNcH/FbiTKnU+9VuqgEw6Uy nXC6hFtZI4082GxJdmn/03nRVpGAHWjDPwuhtrp5BFKyp/EhFYRmUhfs6eLWEY8BbYoy rNff7v6opNYDXZe+Ywq8MtLad+UzxIY+sInREveFLnijTnIAz7Sv8s/CrO+k+D2j4ukY cTVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702222013; x=1702826813; 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=5AX8g/wXZvYEzrNX0i7zijBGLcVcluFx1cTL3h9KKB8=; b=jFrqjtnO3dTYPP2aoomEzs99lcDPQUknqb1hJrl9UJ7v1lp+DPkeC7G8drQzYM56ug 8QJyRLgMLFl/SSBX8juN/IPz+RxUeKYbdfWmMVhsHHZeIDHoZ08Dpzjy8QDn51jW9+fQ faDMxVbs9tI83e1agxIa+6LQHq4mTA9J+qrOzEmb2R8Q9L+3wv44SJgqwJqUOAoSJAV/ F3j9JCjPfCsCH2IBAJTtQM1LX/wJa5n3PrlcfPlyPy7Cn6kDH++lpZgFFRGhNrJKxqNI IymaXv6ngGF7l3APtYXgEJ97KHGxe5AKCNWF7hw2lTAE5CT36uLpA5zvGSdvig7jIfmr oWkQ== X-Gm-Message-State: AOJu0YyCsraJldFaViyeQmtTzxqI8ibkwdasXKuU4iMD1Fv0K0A2bYp8 Vh9s41I/J2QpWIyJG1GxYnf8Bh0uX+4= X-Google-Smtp-Source: AGHT+IFwiSupcld5jHo8mMdVpVgGC1r4PqCFLqRK+5FD52FyqP306qJnkCRLeOOXrzuYK5T28BZhIQ== X-Received: by 2002:a7b:cb99:0:b0:40b:4cce:baf4 with SMTP id m25-20020a7bcb99000000b0040b4ccebaf4mr3959298wmi.3.1702222013655; Sun, 10 Dec 2023 07:26:53 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p54a07fa0.dip0.t-ipconnect.de. [84.160.127.160]) by smtp.gmail.com with ESMTPSA id u15-20020a05600c138f00b004060f0a0fd5sm9905070wmf.13.2023.12.10.07.26.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Dec 2023 07:26:53 -0800 (PST) Date: Sun, 10 Dec 2023 16:26:51 +0100 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 08/10] staging: rtl8192e: Remove equation with pPeerHTCap->DssCCk Message-ID: <16ec7f928d1c51ffe68b9a1a68d09abaaa79924a.1702212003.git.philipp.g.hortmann@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Remove equation with pPeerHTCap->DssCCk as it is set to 1 and unchanged. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtl819x_HTProc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rt= l8192e/rtl819x_HTProc.c index bedee290e7f5..ca9da96b6f6c 100644 --- a/drivers/staging/rtl8192e/rtl819x_HTProc.c +++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c @@ -471,7 +471,7 @@ void HTOnAssocRsp(struct rtllib_device *ieee) ht_info->cur_short_gi_20mhz =3D ((pPeerHTCap->ShortGI20Mhz =3D=3D 1) ? tr= ue : false); ht_info->cur_short_gi_40mhz =3D ((pPeerHTCap->ShortGI40Mhz =3D=3D 1) ? tr= ue : false); =20 - ht_info->bCurSuppCCK =3D ((pPeerHTCap->DssCCk =3D=3D 1) ? true : false); + ht_info->bCurSuppCCK =3D true; =20 ht_info->bCurrent_AMSDU_Support =3D ht_info->amsdu_support; =20 --=20 2.43.0 From nobody Tue Dec 16 16:35:21 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 91A24C4167B for ; Sun, 10 Dec 2023 15:27:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233339AbjLJP1M (ORCPT ); Sun, 10 Dec 2023 10:27:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232906AbjLJP0z (ORCPT ); Sun, 10 Dec 2023 10:26:55 -0500 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62EE410B for ; Sun, 10 Dec 2023 07:27:01 -0800 (PST) Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-40c317ba572so5642425e9.0 for ; Sun, 10 Dec 2023 07:27:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702222020; x=1702826820; 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=0Ghc9oNYnVV/LlJvVf4sjMAoSbSil2W5yyWhaZB5Vhg=; b=Q3HWLqjK4Zk/2y1bO8hbz50aiN+0fxUsz27+ktirb218eQAHiYAlel2r0Mqqm5jS1S GNKnN/qyeOFMdNQsNtGlvmAMM1WpcoLeTvnequAtUhImtICRiwaN9srtt9TtG9edq8Y6 GcIX2B9FwVG93vhC/RxNUqLVhZV5biRRT5rxYgdeMQ3zg5beiCxRaqqEs2iUR3fnRY8u xFlfMUi4qfxbFkNPL+4dHVkwxag8uLUU9PS5WtnZnsiZsQwFYSEU5ieSvfu0xDlj4YaY ozbY9lZU8/VmQTJ4UH9uSRE3mz4Q9wKR1isGylysblIJGoMBEVFVp82s9YN7HGk0XoMF wtWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702222020; x=1702826820; 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=0Ghc9oNYnVV/LlJvVf4sjMAoSbSil2W5yyWhaZB5Vhg=; b=v4PEl5UzxVHs8AUekThHkoXLc/87o9F1D7BbbhqgjTuurPcQHJZPLVCriI426aC12u S7UboRmlS3X3ewwDrJs0s1TLfkAckWYazucOhjcFSVFMGwto2USeiABQtqnfi+LeR4SY qvoeZF93XmFOXhPDO1EA9Ge7PPmTlE8hbyS4HRPqN9Ah4oxTBHxyETwwizW9E1ifixZQ sO73JYxw7F97nj0bzXp3CJAx0kWN/VSL50N3nqNASJooHCPFHkACEWM51RbNTmdXqHot FRFf7U51m+Apd6rc+IAoQGA8tzyRHB336Zy0280zX1FvhU1uBG/dtUNEBsB2zl7d0lN8 cBNg== X-Gm-Message-State: AOJu0YzxyXR3Ybjl6w/ve66KqybeRPGNMTLV+GGQudr8TAzESNFQOh5Z UuPLMt42m/iBiR31wP87G/E= X-Google-Smtp-Source: AGHT+IF9JUkMMqyQF8K7oosTh16A72VikY5ePJs2iVpnR6eLhp3mf8J3VR1wwdV5HcMwFUUfMhiJ8A== X-Received: by 2002:a05:600c:1913:b0:40c:287a:1bba with SMTP id j19-20020a05600c191300b0040c287a1bbamr4041201wmq.2.1702222019806; Sun, 10 Dec 2023 07:26:59 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p54a07fa0.dip0.t-ipconnect.de. [84.160.127.160]) by smtp.gmail.com with ESMTPSA id r20-20020a05600c459400b0040b349c91acsm12117696wmo.16.2023.12.10.07.26.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Dec 2023 07:26:59 -0800 (PST) Date: Sun, 10 Dec 2023 16:26:58 +0100 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 09/10] staging: rtl8192e: Remove variable ht_info->bCurSuppCCK Message-ID: <159a1a84c7bc90042bf1618a067f02ac123dd15d.1702212003.git.philipp.g.hortmann@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" ht_info->bCurSuppCCK is set to 1 and unchanged. Therefore all equations result accordingly and ht_info->bCurSuppCCK can be removed. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtl819x_HT.h | 1 - drivers/staging/rtl8192e/rtl819x_HTProc.c | 4 ---- drivers/staging/rtl8192e/rtllib_softmac.c | 5 +---- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_HT.h b/drivers/staging/rtl819= 2e/rtl819x_HT.h index 670affe9d57b..416633b88446 100644 --- a/drivers/staging/rtl8192e/rtl819x_HT.h +++ b/drivers/staging/rtl8192e/rtl819x_HT.h @@ -97,7 +97,6 @@ struct rt_hi_throughput { u8 cur_bw_40mhz; u8 cur_short_gi_40mhz; u8 cur_short_gi_20mhz; - u8 bCurSuppCCK; enum ht_spec_ver ePeerHTSpecVer; struct ht_capab_ele SelfHTCap; struct ht_info_ele SelfHTInfo; diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rt= l8192e/rtl819x_HTProc.c index ca9da96b6f6c..439b43faa2bb 100644 --- a/drivers/staging/rtl8192e/rtl819x_HTProc.c +++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c @@ -471,8 +471,6 @@ void HTOnAssocRsp(struct rtllib_device *ieee) ht_info->cur_short_gi_20mhz =3D ((pPeerHTCap->ShortGI20Mhz =3D=3D 1) ? tr= ue : false); ht_info->cur_short_gi_40mhz =3D ((pPeerHTCap->ShortGI40Mhz =3D=3D 1) ? tr= ue : false); =20 - ht_info->bCurSuppCCK =3D true; - ht_info->bCurrent_AMSDU_Support =3D ht_info->amsdu_support; =20 nMaxAMSDUSize =3D (pPeerHTCap->MaxAMSDUSize =3D=3D 0) ? 3839 : 7935; @@ -549,8 +547,6 @@ void HTInitializeHTInfo(struct rtllib_device *ieee) ht_info->cur_short_gi_40mhz =3D false; ht_info->forced_short_gi =3D false; =20 - ht_info->bCurSuppCCK =3D true; - ht_info->bCurrent_AMSDU_Support =3D false; ht_info->nCurrent_AMSDU_MaxSize =3D ht_info->amsdu_max_size; ht_info->current_mpdu_density =3D ht_info->mpdu_density; diff --git a/drivers/staging/rtl8192e/rtllib_softmac.c b/drivers/staging/rt= l8192e/rtllib_softmac.c index 5c89744b2bbe..416f89ec576c 100644 --- a/drivers/staging/rtl8192e/rtllib_softmac.c +++ b/drivers/staging/rtl8192e/rtllib_softmac.c @@ -173,10 +173,7 @@ static u8 MgntQuery_MgntFrameTxRate(struct rtllib_devi= ce *ieee) rate =3D ieee->basic_rate & 0x7f; =20 if (rate =3D=3D 0) { - if (ieee->mode =3D=3D WIRELESS_MODE_N_24G && !ht_info->bCurSuppCCK) - rate =3D 0x0c; - else - rate =3D 0x02; + rate =3D 0x02; } =20 return rate; --=20 2.43.0 From nobody Tue Dec 16 16:35:21 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6B23C4167B for ; Sun, 10 Dec 2023 15:27:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233055AbjLJP1U (ORCPT ); Sun, 10 Dec 2023 10:27:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233013AbjLJP1A (ORCPT ); Sun, 10 Dec 2023 10:27:00 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA1FC123 for ; Sun, 10 Dec 2023 07:27:06 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-40c192f488cso5992245e9.1 for ; Sun, 10 Dec 2023 07:27:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702222025; x=1702826825; 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=geLw7oiaKYTuY2XiNNlgp2W+j2j+NV9E7iJ/5OuM2YA=; b=kkJfJYzTp0Q2ZrYqeRvHVOb2kcOzfwKUAuoOCEMfLpVdHOaFfBBAcNxhNdOFN5jYgu v8RGVvbneAyQ27PzGbKnlWYJClHwSI84ekvzvYwwJURfVOYRgA5Jye5cDbWQOEAx4TLf SZhjJxW64VhH67AUAdnLwTijoOFaxrVH45oGR06D5r8/8qa0fBczvkE6atSd7c63JPcf KWBqpxqpULzqb2ARVcp0rN0wRTlLYr7iP6/E23Pek4rFDW3AkSxS6OP9ToA/Wf12c8oL YJDF0SD5rDAKb/hKBXX0Fb+voC/K/Kzwiq7Udrn8ouZooTJUtKp4/gsIqC+09BOGogYN e21g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702222025; x=1702826825; 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=geLw7oiaKYTuY2XiNNlgp2W+j2j+NV9E7iJ/5OuM2YA=; b=qd/go+ku5pn5WeDZdmnYZP1CaqC2GcDC7PvVByr5XUUUAV43f+MHPvmXGUWdHE961r G3F5gn0hrzGJQZUzjWop4tcU3G07e0cfEfck/4RQ/92bndDcx9gvi1MKJZpJ1rDYjePd l8FfwGorAFL6dnb7kKfTcsIiG5eqw591aWFYIWuaWlsoWQBScWhJz/yEUchtGltrn8vx mQoar++KnHqmeZrXfG+DzRZMhRtbU8EP5azCWSZkv/pf4lwrAcqugSreDyr3jn45zLQt LSGYhbLvXnmC67O6+wEjgRIZZLxVkqCTcbdKmvoqrU9UIUET+vvBIlDxiSBpj3bxUYzf Y8wg== X-Gm-Message-State: AOJu0YzyrrMfxVWkUI/XUii/r7cR4t/ITd4KrFlYVXS9brbYW/1vzonb Sjym2Rg+wgx5a9rtvxjzzLI= X-Google-Smtp-Source: AGHT+IF9WyWBDNKFv8tAvjn1xZzkvUYPZW8FYaBnWJF2y8KqdJlSpf/oidoYYUZxpb6PudMK7ZeuPg== X-Received: by 2002:a05:600c:524e:b0:40b:2708:2a52 with SMTP id fc14-20020a05600c524e00b0040b27082a52mr4018653wmb.1.1702222025086; Sun, 10 Dec 2023 07:27:05 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p54a07fa0.dip0.t-ipconnect.de. [84.160.127.160]) by smtp.gmail.com with ESMTPSA id r20-20020a05600c35d400b0040b538047b4sm12250228wmq.3.2023.12.10.07.27.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Dec 2023 07:27:04 -0800 (PST) Date: Sun, 10 Dec 2023 16:27:03 +0100 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 10/10] staging: rtl8192e: Remove struct ht_info_ele SelfHTInfo Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Remove struct ht_info_ele SelfHTInfo as it is unused. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtl819x_HT.h | 1 - drivers/staging/rtl8192e/rtl819x_HTProc.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_HT.h b/drivers/staging/rtl819= 2e/rtl819x_HT.h index 416633b88446..0f27c820ffc5 100644 --- a/drivers/staging/rtl8192e/rtl819x_HT.h +++ b/drivers/staging/rtl8192e/rtl819x_HT.h @@ -99,7 +99,6 @@ struct rt_hi_throughput { u8 cur_short_gi_20mhz; enum ht_spec_ver ePeerHTSpecVer; struct ht_capab_ele SelfHTCap; - struct ht_info_ele SelfHTInfo; u8 PeerHTCapBuf[32]; u8 PeerHTInfoBuf[32]; u8 amsdu_support; diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rt= l8192e/rtl819x_HTProc.c index 439b43faa2bb..0474594a4b96 100644 --- a/drivers/staging/rtl8192e/rtl819x_HTProc.c +++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c @@ -554,8 +554,6 @@ void HTInitializeHTInfo(struct rtllib_device *ieee) =20 memset((void *)(&ht_info->SelfHTCap), 0, sizeof(ht_info->SelfHTCap)); - memset((void *)(&ht_info->SelfHTInfo), 0, - sizeof(ht_info->SelfHTInfo)); memset((void *)(&ht_info->PeerHTCapBuf), 0, sizeof(ht_info->PeerHTCapBuf)); memset((void *)(&ht_info->PeerHTInfoBuf), 0, --=20 2.43.0