From nobody Wed Dec 17 15:36:28 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 827ACC46CA3 for ; Sat, 25 Nov 2023 22:35:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230119AbjKYWeo (ORCPT ); Sat, 25 Nov 2023 17:34:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231537AbjKYWek (ORCPT ); Sat, 25 Nov 2023 17:34:40 -0500 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6032311B for ; Sat, 25 Nov 2023 14:34:46 -0800 (PST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id CAE9E5C0117; Sat, 25 Nov 2023 17:34:45 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sat, 25 Nov 2023 17:34:45 -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=1700951685; x= 1701038085; bh=hA1LldQ2kqUSciH6ZS5YKPp5CEt1y2lK2c/ypEYCoDc=; b=C 0yby/o+kcRyWAiDnpp22W4dERtEjKiDScdL0FZ5I45tzNNbOtaR6MMeGXgrQ/DhD nt/ied6QwL403IkUFyC6/yHlU7BdCPV1asBkqn5Md/yQOWsjnIADeMVBFddbQtl+ go0zA8kcoDTZIh+I0OhLsPGmscp29NKPtGAnTi8CRs3ibODJWiWoT6IXv1bBpY7r kRlBb0m5gK9ddi3aVzOWUTbgQ2V03nz1bE1yPVWIoGsxEF6zHK4Wg01h3/tZEYoe tyIVBdHtz3v6rtP4ZqfcwWgt6WwI53j0+28ah2NrO5hKG6TU5Adu+/Bl1aK6eYPN h0UeT8cgusANeUDIc0EIA== 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=1700951685; x= 1701038085; bh=hA1LldQ2kqUSciH6ZS5YKPp5CEt1y2lK2c/ypEYCoDc=; b=V j0QA48i3SILZHBn7IkwFybXL3E+vCN21nT4GktfTTo65SVY/8jfcWXtl5mjfCbsO Ol9eghLLDfcsPdFWfjdD31Bg5MVpcHrUM8JIBYIPhxl/1Mb/zpR+//AMWtHvt/Hb irrPMGFJDNfKF4YusvG7kRL0RhiVi+qb0QTR8tPRIGzO8OIi1lmjXegyl4sbyCMJ 0nY8OI/dMheO4qWz7l6Ytvj3GEHTZQMkqko4XybGaCEYH3yuV00KbdekY2GY6F3j D5yifra0x2cvvAyCF3ExD3V4mVFWthafEx6fYs8jmXWsE0e5KGK6SWHLFU06EyvU 6ANeDmVVNA2foU0kq02Ng== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudehjedgudeivdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgjfhgggfestd ekredtredttdenucfhrhhomhepifgrrhihucftohhokhgrrhguuceoghgrrhihrhhoohhk rghrugesfhgrshhtmhgrihhlrdhorhhgqeenucggtffrrghtthgvrhhnpeekuedvffeuud ekgeeiueffjeehgfekteefheeuleefudeugfevleelhfefgfejvdenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrghrhihrohhokhgrrhguse hfrghsthhmrghilhdrohhrgh X-ME-Proxy: Feedback-ID: ifd194980:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 25 Nov 2023 17:34:45 -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 3/5] staging: rtl8192e: renamed variable bCurBW40MHz Date: Sat, 25 Nov 2023 17:34:30 -0500 Message-ID: <20231125223432.13780-4-garyrookard@fastmail.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231125223432.13780-1-garyrookard@fastmail.org> References: <20231125223432.13780-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" Renamed from CamelCase to Snake case the variable bCurBW40MHz. bCurBW40MHz -> b_cur_bw_40mhz Linux kernel coding style (cleanup), checkpatch Avoid CamelCase. Driver/module rtl8192e compiles. Signed-off-by: Gary Rookard --- drivers/staging/rtl8192e/rtl819x_HT.h | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 16 ++++++++-------- drivers/staging/rtl8192e/rtllib_softmac_wx.c | 4 ++-- drivers/staging/rtl8192e/rtllib_tx.c | 10 +++++----- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_HT.h b/drivers/staging/rtl819= 2e/rtl819x_HT.h index f8eb4d553fe0..e24b106ca700 100644 --- a/drivers/staging/rtl8192e/rtl819x_HT.h +++ b/drivers/staging/rtl8192e/rtl819x_HT.h @@ -95,7 +95,7 @@ struct rt_hi_throughput { u8 enable_ht; u8 current_ht_support; u8 bRegBW40MHz; - u8 bCurBW40MHz; + u8 b_cur_bw_40mhz; u8 bRegShortGI40MHz; u8 bCurShortGI40MHz; u8 bRegShortGI20MHz; diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rt= l8192e/rtl819x_HTProc.c index f002d948a316..f4de5ad7d9d1 100644 --- a/drivers/staging/rtl8192e/rtl819x_HTProc.c +++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c @@ -107,8 +107,8 @@ static u16 ht_mcs_to_data_rate(struct rtllib_device *ie= ee, u8 n_mcs_rate) { struct rt_hi_throughput *ht_info =3D ieee->ht_info; =20 - u8 is40MHz =3D (ht_info->bCurBW40MHz) ? 1 : 0; - u8 is_short_gi =3D (ht_info->bCurBW40MHz) ? + u8 is40MHz =3D (ht_info->b_cur_bw_40mhz) ? 1 : 0; + u8 is_short_gi =3D (ht_info->b_cur_bw_40mhz) ? ((ht_info->bCurShortGI40MHz) ? 1 : 0) : ((ht_info->bCurShortGI20MHz) ? 1 : 0); return MCS_DATA_RATE[is40MHz][is_short_gi][(n_mcs_rate & 0x7f)]; @@ -575,7 +575,7 @@ void HTInitializeHTInfo(struct rtllib_device *ieee) =20 ht_info->current_ht_support =3D false; =20 - ht_info->bCurBW40MHz =3D false; + ht_info->b_cur_bw_40mhz =3D false; ht_info->cur_tx_bw40mhz =3D false; =20 ht_info->bCurShortGI20MHz =3D false; @@ -721,7 +721,7 @@ static void HTSetConnectBwModeCallback(struct rtllib_de= vice *ieee) { struct rt_hi_throughput *ht_info =3D ieee->ht_info; =20 - if (ht_info->bCurBW40MHz) { + if (ht_info->b_cur_bw_40mhz) { if (ht_info->CurSTAExtChnlOffset =3D=3D HT_EXTCHNL_OFFSET_UPPER) ieee->set_chan(ieee->dev, ieee->current_network.channel + 2); @@ -766,19 +766,19 @@ void HTSetConnectBwMode(struct rtllib_device *ieee, Offset =3D HT_EXTCHNL_OFFSET_NO_EXT; if (Offset =3D=3D HT_EXTCHNL_OFFSET_UPPER || Offset =3D=3D HT_EXTCHNL_OFFSET_LOWER) { - ht_info->bCurBW40MHz =3D true; + ht_info->b_cur_bw_40mhz =3D true; ht_info->CurSTAExtChnlOffset =3D Offset; } else { - ht_info->bCurBW40MHz =3D false; + ht_info->b_cur_bw_40mhz =3D false; ht_info->CurSTAExtChnlOffset =3D HT_EXTCHNL_OFFSET_NO_EXT; } } else { - ht_info->bCurBW40MHz =3D false; + ht_info->b_cur_bw_40mhz =3D false; ht_info->CurSTAExtChnlOffset =3D HT_EXTCHNL_OFFSET_NO_EXT; } =20 netdev_dbg(ieee->dev, "%s():ht_info->bCurBW40MHz:%x\n", __func__, - ht_info->bCurBW40MHz); + ht_info->b_cur_bw_40mhz); =20 ht_info->sw_bw_in_progress =3D true; =20 diff --git a/drivers/staging/rtl8192e/rtllib_softmac_wx.c b/drivers/staging= /rtl8192e/rtllib_softmac_wx.c index 28aba1d610f7..255867334be0 100644 --- a/drivers/staging/rtl8192e/rtllib_softmac_wx.c +++ b/drivers/staging/rtl8192e/rtllib_softmac_wx.c @@ -318,10 +318,10 @@ void rtllib_wx_sync_scan_wq(void *data) ieee->ScanOperationBackupHandler(ieee->dev, SCAN_OPT_BACKUP); =20 if (ieee->ht_info->current_ht_support && ieee->ht_info->enable_ht && - ieee->ht_info->bCurBW40MHz) { + ieee->ht_info->b_cur_bw_40mhz) { b40M =3D 1; chan_offset =3D ieee->ht_info->CurSTAExtChnlOffset; - bandwidth =3D (enum ht_channel_width)ieee->ht_info->bCurBW40MHz; + bandwidth =3D (enum ht_channel_width)ieee->ht_info->b_cur_bw_40mhz; ieee->set_bw_mode_handler(ieee->dev, HT_CHANNEL_WIDTH_20, HT_EXTCHNL_OFFSET_NO_EXT); } diff --git a/drivers/staging/rtl8192e/rtllib_tx.c b/drivers/staging/rtl8192= e/rtllib_tx.c index 9bf679438ad1..a74b92de024e 100644 --- a/drivers/staging/rtl8192e/rtllib_tx.c +++ b/drivers/staging/rtl8192e/rtllib_tx.c @@ -362,9 +362,9 @@ static void rtllib_query_HTCapShortGI(struct rtllib_dev= ice *ieee, return; } =20 - if (ht_info->bCurBW40MHz && ht_info->bCurShortGI40MHz) + if (ht_info->b_cur_bw_40mhz && ht_info->bCurShortGI40MHz) tcb_desc->bUseShortGI =3D true; - else if (!ht_info->bCurBW40MHz && ht_info->bCurShortGI20MHz) + else if (!ht_info->b_cur_bw_40mhz && ht_info->bCurShortGI20MHz) tcb_desc->bUseShortGI =3D true; } =20 @@ -383,7 +383,7 @@ static void rtllib_query_BandwidthMode(struct rtllib_de= vice *ieee, =20 if ((tcb_desc->data_rate & 0x80) =3D=3D 0) return; - if (ht_info->bCurBW40MHz && ht_info->cur_tx_bw40mhz && + if (ht_info->b_cur_bw_40mhz && ht_info->cur_tx_bw40mhz && !ieee->bandwidth_auto_switch.bforced_tx20Mhz) tcb_desc->bPacketBW =3D true; } @@ -441,9 +441,9 @@ static void rtllib_query_protectionmode(struct rtllib_d= evice *ieee, if (ht_info->current_ht_support && ht_info->enable_ht) { u8 HTOpMode =3D ht_info->current_op_mode; =20 - if ((ht_info->bCurBW40MHz && (HTOpMode =3D=3D 2 || + if ((ht_info->b_cur_bw_40mhz && (HTOpMode =3D=3D 2 || HTOpMode =3D=3D 3)) || - (!ht_info->bCurBW40MHz && HTOpMode =3D=3D 3)) { + (!ht_info->b_cur_bw_40mhz && HTOpMode =3D=3D 3)) { tcb_desc->rts_rate =3D MGN_24M; tcb_desc->bRTSEnable =3D true; break; --=20 2.41.0