From: Tree Davies <tdavies@darkphysics.net>
To: gregkh@linuxfoundation.org, philipp.g.hortmann@gmail.com, anjan@momi.ca
Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org,
Tree Davies <tdavies@darkphysics.net>
Subject: [PATCH 19/20] Staging: rtl8192e: Rename variable bInitState
Date: Fri, 22 Dec 2023 17:59:41 -0800 [thread overview]
Message-ID: <20231223015942.418263-20-tdavies@darkphysics.net> (raw)
In-Reply-To: <20231223015942.418263-1-tdavies@darkphysics.net>
Rename variable bInitState to init_state to fix checkpatch
warning Avoid CamelCase.
Signed-off-by: Tree Davies <tdavies@darkphysics.net>
---
drivers/staging/rtl8192e/rtllib.h | 4 ++--
drivers/staging/rtl8192e/rtllib_softmac.c | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h
index 9fd8a7199ee0..0158b5595c3c 100644
--- a/drivers/staging/rtl8192e/rtllib.h
+++ b/drivers/staging/rtl8192e/rtllib.h
@@ -1677,8 +1677,8 @@ void rtllib_sta_ps_send_pspoll_frame(struct rtllib_device *ieee);
void rtllib_start_protocol(struct rtllib_device *ieee);
void rtllib_stop_protocol(struct rtllib_device *ieee);
-void rtllib_EnableNetMonitorMode(struct net_device *dev, bool bInitState);
-void rtllib_DisableNetMonitorMode(struct net_device *dev, bool bInitState);
+void rtllib_EnableNetMonitorMode(struct net_device *dev, bool init_state);
+void rtllib_DisableNetMonitorMode(struct net_device *dev, bool init_state);
void rtllib_softmac_stop_protocol(struct rtllib_device *ieee);
void rtllib_softmac_start_protocol(struct rtllib_device *ieee);
diff --git a/drivers/staging/rtl8192e/rtllib_softmac.c b/drivers/staging/rtl8192e/rtllib_softmac.c
index e4e1a84932ba..ec7bf27820c6 100644
--- a/drivers/staging/rtl8192e/rtllib_softmac.c
+++ b/drivers/staging/rtl8192e/rtllib_softmac.c
@@ -349,26 +349,26 @@ static inline struct sk_buff *rtllib_probe_req(struct rtllib_device *ieee)
/* Enables network monitor mode, all rx packets will be received. */
void rtllib_EnableNetMonitorMode(struct net_device *dev,
- bool bInitState)
+ bool init_state)
{
struct rtllib_device *ieee = netdev_priv_rsl(dev);
netdev_info(dev, "========>Enter Monitor Mode\n");
- ieee->AllowAllDestAddrHandler(dev, true, !bInitState);
+ ieee->AllowAllDestAddrHandler(dev, true, !init_state);
}
/* Disables network monitor mode. Only packets destinated to
* us will be received.
*/
void rtllib_DisableNetMonitorMode(struct net_device *dev,
- bool bInitState)
+ bool init_state)
{
struct rtllib_device *ieee = netdev_priv_rsl(dev);
netdev_info(dev, "========>Exit Monitor Mode\n");
- ieee->AllowAllDestAddrHandler(dev, false, !bInitState);
+ ieee->AllowAllDestAddrHandler(dev, false, !init_state);
}
static void rtllib_send_probe(struct rtllib_device *ieee)
--
2.39.2
next prev parent reply other threads:[~2023-12-23 2:00 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-23 1:59 [PATCH 00/20] Staging: rtl8192e: Various checkpatch fixes related to rtllib_softmac.c Tree Davies
2023-12-23 1:59 ` [PATCH 01/20] Staging: rtl8192e: Remove unnecessary braces from MgntQuery_MgntFrameTxRate() Tree Davies
2023-12-23 1:59 ` [PATCH 02/20] Staging: rtl8192e: Remove unnecessary parenthesis in rtllib_softmac_new_net() Tree Davies
2023-12-23 1:59 ` [PATCH 03/20] Staging: rtl8192e: Remove unnecessary parenthesis in rtllib_association_req() Tree Davies
2023-12-23 1:59 ` [PATCH 04/20] Staging: rtl8192e: Remove unnecessary parenthesis in rtllib_rx_assoc_resp() Tree Davies
2023-12-23 1:59 ` [PATCH 05/20] Staging: rtl8192e: Remove unnecessary parenthesis in rtllib_ap_sec_type() Tree Davies
2023-12-23 1:59 ` [PATCH 06/20] Staging: rtl8192e: Remove unnecessary parenthesis in rtllib_association_req() Tree Davies
2023-12-23 1:59 ` [PATCH 07/20] Staging: rtl8192e: Fixup multiple assinment in init_mgmt_queue() Tree Davies
2023-12-23 1:59 ` [PATCH 08/20] Staging: rtl8192e: Fix statement broken across 2 lines in rtllib_rx_assoc_resp() Tree Davies
2023-12-23 1:59 ` [PATCH 09/20] Staging: rtl8192e: Fix function definition broken across multiple lines Tree Davies
2023-12-23 1:59 ` [PATCH 10/20] Staging: rtl8192e: Fixup statement broken across 2 lines in rtllib_softmac_xmit() Tree Davies
2023-12-23 1:59 ` [PATCH 11/20] Staging: rtl8192e: Fixup statement broken across 2 lines in rtllib_softmac_new_net() Tree Davies
2023-12-23 1:59 ` [PATCH 12/20] Staging: rtl8192e: Rename function rtllib_MFIE_Brate() Tree Davies
2023-12-23 1:59 ` [PATCH 13/20] Staging: rtl8192e: Rename function rtllib_MFIE_Grate() Tree Davies
2023-12-23 1:59 ` [PATCH 14/20] Staging: rtl8192e: Rename function rtllib_WMM_Info() Tree Davies
2023-12-23 1:59 ` [PATCH 15/20] Staging: rtl8192e: Rename function rtllib_TURBO_Info() Tree Davies
2023-12-23 1:59 ` [PATCH 16/20] Staging: rtl8192e: Rename variable QueryRate Tree Davies
2023-12-23 1:59 ` [PATCH 17/20] Staging: rtl8192e: Rename variable BasicRate Tree Davies
2023-12-23 1:59 ` [PATCH 18/20] Staging: rtl8192e: Rename variable skb_waitQ Tree Davies
2023-12-23 1:59 ` Tree Davies [this message]
2023-12-23 1:59 ` [PATCH 20/20] Staging: rtl8192e: Rename function rtllib_DisableNetMonitorMode() Tree Davies
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231223015942.418263-20-tdavies@darkphysics.net \
--to=tdavies@darkphysics.net \
--cc=anjan@momi.ca \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=philipp.g.hortmann@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox