From nobody Tue Dec 16 23:50:42 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 8737CC4167B for ; Fri, 8 Dec 2023 01:55:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1572956AbjLHBzQ (ORCPT ); Thu, 7 Dec 2023 20:55:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235374AbjLHBzK (ORCPT ); Thu, 7 Dec 2023 20:55:10 -0500 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4741CD5B for ; Thu, 7 Dec 2023 17:55:16 -0800 (PST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id B14515C0203; Thu, 7 Dec 2023 20:55:15 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 07 Dec 2023 20:55:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.org; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1702000515; x= 1702086915; bh=qdU7YaA5F2sl4c6JILBgnoiR/p6RwiGUUhFFxFoXd34=; b=k Y4o1LvdFq7mtMsPHsFEJR2U/mrW2VQ75qCTMrOLCnLaZBCdyWTGWrtAU+BN8EEW8 JwtokYSZrzPVQlHqOJddA1cz9nIwGPVmubta7K36W4HKsg5mhc4Abu5f9qwKFZLu lzXG2CXgz2cC6sUh8RM43itdFPjzb8UtvqOgFOjYOHiXGbo+YLzefe4TnvOeMBWU g71pxYQfEiXVmNSvBH4zcn72+8u1wPiJyrNjJ8gLNg1DMyl2E8wfbAA+QFyOWel2 VDhF62akfzLZfx/FxjoQ1rDrXQiYSwP5bTcOs5yH5CJkLiSquixzzqd2XVYNsW7Q bGNpJxjHPPTgUDUbGo7Zw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1702000515; x= 1702086915; bh=qdU7YaA5F2sl4c6JILBgnoiR/p6RwiGUUhFFxFoXd34=; b=P Dbt1lvjhXQaZN9RS0Rm6H2BObqKTkLHCzoZ8U/kWTZnvagBTGVBTy3Mwyk7jHOkW jAqhR1jJbFXZNdM3lT8Zto3woFNRSYnH1UQuFdkkSotnRM9haOpwbkZnovWOMmBN 0hAL6O4FDpKudUyoY5CnbUMaomGHb7RrtGMOWhgjH1CwX+y6YJ7KDMcdUiup/y0i mhF3U5COwNak6WD746fpiLDN3/ouZiR+xPlx1/794xZfMrxwf7lxZPUMMNlCvfcn phDs3w6KL83BJkwVi/PfWJENh+/V/F0lTGuKMngyO7fHvDA6phfJPGcnH0WgHvNd ilw3CUJiaxlgmwsFaNtaQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudekgedgfeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpefirghrhicutfhoohhkrghrugcuoehgrghrhihrohhokhgr rhgusehfrghsthhmrghilhdrohhrgheqnecuggftrfgrthhtvghrnhepkeeuvdffueduke egieeuffejhefgkeetfeehueelfeduuefgveellefhfefgjedvnecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepghgrrhihrhhoohhkrghrugesfh grshhtmhgrihhlrdhorhhg X-ME-Proxy: Feedback-ID: ifd194980:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 7 Dec 2023 20:55:15 -0500 (EST) From: Gary Rookard To: gregkh@linuxfoundation.org, philipp.g.hortmann@gmail.com Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Gary Rookard Subject: [PATCH 1/5] staging: rtl8192e: renamed variable bCurShortGI40MHz Date: Thu, 7 Dec 2023 20:55:32 -0500 Message-ID: <20231208015536.21013-2-garyrookard@fastmail.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231208015536.21013-1-garyrookard@fastmail.org> References: <20231208015536.21013-1-garyrookard@fastmail.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Coding style issue, checkpatch Avoid CamelCase, rename it. bCurShortGI40MHz -> cur_short_gi_40mhz Signed-off-by: Gary Rookard --- drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | 2 +- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 2 +- drivers/staging/rtl8192e/rtl819x_HT.h | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 6 +++--- drivers/staging/rtl8192e/rtllib_tx.c | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c b/drivers/stagi= ng/rtl8192e/rtl8192e/r8192E_dev.c index 39fa5f60db45..f01240f7e514 100644 --- a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c +++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c @@ -1763,7 +1763,7 @@ void rtl92e_update_ratr_table(struct net_device *dev) } ratr_value &=3D 0x0FFFFFFF; if (ieee->ht_info->cur_tx_bw40mhz && - ieee->ht_info->bCurShortGI40MHz) + ieee->ht_info->cur_short_gi_40mhz) ratr_value |=3D 0x80000000; else if (!ieee->ht_info->cur_tx_bw40mhz && ieee->ht_info->bCurShortGI20MHz) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c b/drivers/staging/r= tl8192e/rtl8192e/rtl_dm.c index 330dafd62656..c73d2ac910d5 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c @@ -287,7 +287,7 @@ static void _rtl92e_dm_check_rate_adaptive(struct net_d= evice *dev) =20 if (priv->rtllib->link_state =3D=3D MAC80211_LINKED) { bshort_gi_enabled =3D (ht_info->cur_tx_bw40mhz && - ht_info->bCurShortGI40MHz) || + ht_info->cur_short_gi_40mhz) || (!ht_info->cur_tx_bw40mhz && ht_info->bCurShortGI20MHz); =20 diff --git a/drivers/staging/rtl8192e/rtl819x_HT.h b/drivers/staging/rtl819= 2e/rtl819x_HT.h index 98c1e5840e31..f89b618f71a5 100644 --- a/drivers/staging/rtl8192e/rtl819x_HT.h +++ b/drivers/staging/rtl8192e/rtl819x_HT.h @@ -97,7 +97,7 @@ struct rt_hi_throughput { u8 reg_bw_40mhz; u8 cur_bw_40mhz; u8 reg_short_gi_40mhz; - u8 bCurShortGI40MHz; + u8 cur_short_gi_40mhz; u8 reg_short_gi_20mhz; u8 bCurShortGI20MHz; u8 reg_supp_cck; diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rt= l8192e/rtl819x_HTProc.c index a421c56af9e2..f9c76aaf8791 100644 --- a/drivers/staging/rtl8192e/rtl819x_HTProc.c +++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c @@ -109,7 +109,7 @@ static u16 ht_mcs_to_data_rate(struct rtllib_device *ie= ee, u8 mcs_rate) =20 u8 is40MHz =3D (ht_info->cur_bw_40mhz) ? 1 : 0; u8 isShortGI =3D (ht_info->cur_bw_40mhz) ? - ((ht_info->bCurShortGI40MHz) ? 1 : 0) : + ((ht_info->cur_short_gi_40mhz) ? 1 : 0) : ((ht_info->bCurShortGI20MHz) ? 1 : 0); return MCS_DATA_RATE[is40MHz][isShortGI][(mcs_rate & 0x7f)]; } @@ -481,7 +481,7 @@ void HTOnAssocRsp(struct rtllib_device *ieee) ht_info->bCurShortGI20MHz =3D ((ht_info->reg_short_gi_20mhz) ? ((pPeerHTCap->ShortGI20Mhz =3D=3D 1) ? true : false) : false); - ht_info->bCurShortGI40MHz =3D ((ht_info->reg_short_gi_40mhz) ? + ht_info->cur_short_gi_40mhz =3D ((ht_info->reg_short_gi_40mhz) ? ((pPeerHTCap->ShortGI40Mhz =3D=3D 1) ? true : false) : false); =20 @@ -563,7 +563,7 @@ void HTInitializeHTInfo(struct rtllib_device *ieee) ht_info->cur_tx_bw40mhz =3D false; =20 ht_info->bCurShortGI20MHz =3D false; - ht_info->bCurShortGI40MHz =3D false; + ht_info->cur_short_gi_40mhz =3D false; ht_info->forced_short_gi =3D false; =20 ht_info->bCurSuppCCK =3D true; diff --git a/drivers/staging/rtl8192e/rtllib_tx.c b/drivers/staging/rtl8192= e/rtllib_tx.c index e2dd2772bbeb..041520e6c28d 100644 --- a/drivers/staging/rtl8192e/rtllib_tx.c +++ b/drivers/staging/rtl8192e/rtllib_tx.c @@ -362,7 +362,7 @@ static void rtllib_query_HTCapShortGI(struct rtllib_dev= ice *ieee, return; } =20 - if (ht_info->cur_bw_40mhz && ht_info->bCurShortGI40MHz) + if (ht_info->cur_bw_40mhz && ht_info->cur_short_gi_40mhz) tcb_desc->bUseShortGI =3D true; else if (!ht_info->cur_bw_40mhz && ht_info->bCurShortGI20MHz) tcb_desc->bUseShortGI =3D true; --=20 2.41.0