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 04/21] Staging: rtl8192e: Rename variable bMulticast
Date: Fri, 5 Jan 2024 21:55:39 -0800 [thread overview]
Message-ID: <20240106055556.430948-5-tdavies@darkphysics.net> (raw)
In-Reply-To: <20240106055556.430948-1-tdavies@darkphysics.net>
Rename variable bMulticast to multicast to fix checkpatch
warning Avoid CamelCase.
Signed-off-by: Tree Davies <tdavies@darkphysics.net>
---
drivers/staging/rtl8192e/rtllib.h | 2 +-
drivers/staging/rtl8192e/rtllib_softmac.c | 2 +-
drivers/staging/rtl8192e/rtllib_tx.c | 8 ++++----
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h
index 37bcd968a542..9d3c79105508 100644
--- a/drivers/staging/rtl8192e/rtllib.h
+++ b/drivers/staging/rtl8192e/rtllib.h
@@ -123,7 +123,7 @@ struct cb_desc {
u8 bPacketBW:1;
u8 bRTSUseShortPreamble:1;
u8 bRTSUseShortGI:1;
- u8 bMulticast:1;
+ u8 multicast:1;
u8 bBroadcast:1;
u8 drv_agg_enable:1;
u8 reserved2:1;
diff --git a/drivers/staging/rtl8192e/rtllib_softmac.c b/drivers/staging/rtl8192e/rtllib_softmac.c
index 6f730242728a..9db834f5d637 100644
--- a/drivers/staging/rtl8192e/rtllib_softmac.c
+++ b/drivers/staging/rtl8192e/rtllib_softmac.c
@@ -1816,7 +1816,7 @@ void rtllib_softmac_xmit(struct rtllib_txb *txb, struct rtllib_device *ieee)
/* update the tx status */
tcb_desc = (struct cb_desc *)(txb->fragments[0]->cb +
MAX_DEV_ADDR_SIZE);
- if (tcb_desc->bMulticast)
+ if (tcb_desc->multicast)
ieee->stats.multicast++;
/* if xmit available, just xmit it immediately, else just insert it to
diff --git a/drivers/staging/rtl8192e/rtllib_tx.c b/drivers/staging/rtl8192e/rtllib_tx.c
index f7098a2ba8b0..f1e9a0390be0 100644
--- a/drivers/staging/rtl8192e/rtllib_tx.c
+++ b/drivers/staging/rtl8192e/rtllib_tx.c
@@ -356,7 +356,7 @@ static void rtllib_query_BandwidthMode(struct rtllib_device *ieee,
if (!ht_info->current_ht_support || !ht_info->enable_ht)
return;
- if (tcb_desc->bMulticast || tcb_desc->bBroadcast)
+ if (tcb_desc->multicast || tcb_desc->bBroadcast)
return;
if ((tcb_desc->data_rate & 0x80) == 0)
@@ -378,7 +378,7 @@ static void rtllib_query_protectionmode(struct rtllib_device *ieee,
tcb_desc->RTSSC = 0;
tcb_desc->bRTSBW = false;
- if (tcb_desc->bBroadcast || tcb_desc->bMulticast)
+ if (tcb_desc->bBroadcast || tcb_desc->multicast)
return;
if (is_broadcast_ether_addr(skb->data + 16))
@@ -843,11 +843,11 @@ static int rtllib_xmit_inter(struct sk_buff *skb, struct net_device *dev)
tcb_desc->tx_use_drv_assinged_rate = 1;
} else {
if (is_multicast_ether_addr(header.addr1))
- tcb_desc->bMulticast = 1;
+ tcb_desc->multicast = 1;
if (is_broadcast_ether_addr(header.addr1))
tcb_desc->bBroadcast = 1;
rtllib_txrate_selectmode(ieee, tcb_desc);
- if (tcb_desc->bMulticast || tcb_desc->bBroadcast)
+ if (tcb_desc->multicast || tcb_desc->bBroadcast)
tcb_desc->data_rate = ieee->basic_rate;
else
tcb_desc->data_rate = rtllib_current_rate(ieee);
--
2.39.2
next prev parent reply other threads:[~2024-01-06 5:56 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-06 5:55 [PATCH 00/21] Staging: rtl8192e: checkpatch fixes for rtllib_softmac.c Tree Davies
2024-01-06 5:55 ` [PATCH 01/21] Staging: rtl8192e: Remove unnecessary parenthesis in rtllib_softmac_new_net() Tree Davies
2024-01-06 5:55 ` [PATCH 02/21] Staging: rtl8192e: Rename variable SlotIndex Tree Davies
2024-01-06 5:55 ` [PATCH 03/21] Staging: rtl8192e: Rename function rtllib_MgntDisconnectAP() Tree Davies
2024-01-06 5:55 ` Tree Davies [this message]
2024-01-06 5:55 ` [PATCH 05/21] Staging: rtl8192e: Rename variable MaxPeriod Tree Davies
2024-01-06 5:55 ` [PATCH 06/21] Staging: rtl8192e: Rename variable bAwakePktSent Tree Davies
2024-01-06 5:55 ` [PATCH 07/21] Staging: rtl8192e: Rename variable bSupportNmode Tree Davies
2024-01-06 5:55 ` [PATCH 08/21] Staging: rtl8192e: Rename variable bBusyTraffic Tree Davies
2024-01-06 5:55 ` [PATCH 09/21] Staging: rtl8192e: Rename function rtllib_MgntDisconnect() Tree Davies
2024-01-06 5:55 ` [PATCH 10/21] Staging: rtl8192e: Rename variable bFilterOutNonAssociatedBSSID Tree Davies
2024-01-06 5:55 ` [PATCH 11/21] Staging: rtl8192e: Rename variable array Bssid Tree Davies
2024-01-06 5:55 ` [PATCH 12/21] Staging: rtl8192e: Rename variable NumRxUnicastOkInPeriod Tree Davies
2024-01-06 5:55 ` [PATCH 13/21] Staging: rtl8192e: Rename variable SlotNum Tree Davies
2024-01-06 5:55 ` [PATCH 14/21] Staging: rtl8192e: Rename variable RemoveAllTS Tree Davies
2024-01-06 5:55 ` [PATCH 15/21] Staging: rtl8192e: Rename function RemovePeerTS() Tree Davies
2024-01-06 5:55 ` [PATCH 16/21] Staging: rtl8192e: Rename function rtllib_MlmeDisassociateRequest() Tree Davies
2024-01-06 5:55 ` [PATCH 17/21] Staging: rtl8192e: Rename function SendDisassociation() Tree Davies
2024-01-06 5:55 ` [PATCH 18/21] Staging: rtl8192e: Rename variable bHalfSupportNmode Tree Davies
2024-01-06 5:55 ` [PATCH 19/21] Staging: rtl8192e: Rename variable PMKCacheIdx Tree Davies
2024-01-06 5:55 ` [PATCH 20/21] Staging: rtl8192e: Rename function GetNmodeSupportBySecCfg() Tree Davies
2024-01-06 5:55 ` [PATCH 21/21] Staging: rtl8192e: Rename variable AsocRetryCount Tree Davies
2024-01-06 12:47 ` [PATCH 00/21] Staging: rtl8192e: checkpatch fixes for rtllib_softmac.c Philipp Hortmann
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=20240106055556.430948-5-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
all inboxes | Powered by JetHome®