mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
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 21/21] Staging: rtl8192e: Rename variable AsocRetryCount
Date: Fri,  5 Jan 2024 21:55:56 -0800	[thread overview]
Message-ID: <20240106055556.430948-22-tdavies@darkphysics.net> (raw)
In-Reply-To: <20240106055556.430948-1-tdavies@darkphysics.net>

Rename variable AsocRetryCount to asoc_retry_count 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 | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h
index 2d753a159358..0fdc767d43e0 100644
--- a/drivers/staging/rtl8192e/rtllib.h
+++ b/drivers/staging/rtl8192e/rtllib.h
@@ -1381,7 +1381,7 @@ struct rtllib_device {
 	struct sk_buff *mgmt_queue_ring[MGMT_QUEUE_NUM];
 	int mgmt_queue_head;
 	int mgmt_queue_tail;
-	u8 AsocRetryCount;
+	u8 asoc_retry_count;
 	struct sk_buff_head skb_waitq[MAX_QUEUE_SIZE];
 
 	bool	bdynamic_txpower_enable;
diff --git a/drivers/staging/rtl8192e/rtllib_softmac.c b/drivers/staging/rtl8192e/rtllib_softmac.c
index b9b79f6b0c08..9d1e9b780bc7 100644
--- a/drivers/staging/rtl8192e/rtllib_softmac.c
+++ b/drivers/staging/rtl8192e/rtllib_softmac.c
@@ -1216,7 +1216,7 @@ inline void rtllib_softmac_new_net(struct rtllib_device *ieee,
 			ieee->wmm_acm = 0;
 			if (ieee->iw_mode == IW_MODE_INFRA) {
 				/* Join the network for the first time */
-				ieee->AsocRetryCount = 0;
+				ieee->asoc_retry_count = 0;
 				if ((ieee->current_network.qos_data.supported == 1) &&
 				    ieee->current_network.bssht.bd_support_ht)
 					ht_reset_self_and_save_peer_setting(ieee,
@@ -1319,10 +1319,10 @@ static inline u16 assoc_parse(struct rtllib_device *ieee, struct sk_buff *skb,
 	   status_code == WLAN_STATUS_CAPS_UNSUPPORTED) &&
 	   ((ieee->mode == WIRELESS_MODE_G) &&
 	   (ieee->current_network.mode == WIRELESS_MODE_N_24G) &&
-	   (ieee->AsocRetryCount++ < (RT_ASOC_RETRY_LIMIT - 1)))) {
+	   (ieee->asoc_retry_count++ < (RT_ASOC_RETRY_LIMIT - 1)))) {
 		ieee->ht_info->iot_action |= HT_IOT_ACT_PURE_N_MODE;
 	} else {
-		ieee->AsocRetryCount = 0;
+		ieee->asoc_retry_count = 0;
 	}
 
 	return le16_to_cpu(response_head->status);
@@ -1634,7 +1634,7 @@ rtllib_rx_assoc_resp(struct rtllib_device *ieee, struct sk_buff *skb,
 			netdev_info(ieee->dev,
 				    "Association response status code 0x%x\n",
 				    errcode);
-			if (ieee->AsocRetryCount < RT_ASOC_RETRY_LIMIT)
+			if (ieee->asoc_retry_count < RT_ASOC_RETRY_LIMIT)
 				schedule_delayed_work(&ieee->associate_procedure_wq, 0);
 			else
 				rtllib_associate_abort(ieee);
-- 
2.39.2


  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 ` [PATCH 04/21] Staging: rtl8192e: Rename variable bMulticast Tree Davies
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 ` Tree Davies [this message]
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-22-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®