public inbox for linux-staging@lists.linux.dev
 help / color / mirror / Atom feed
From: frankfmy <pryanishnikovartem@gmail.com>
To: gregkh@linuxfoundation.org
Cc: linux-staging@lists.linux.dev
Subject: [PATCH 1/5] staging: rtl8723bs: fix spelling errors in core driver files
Date: Thu, 05 Feb 2026 23:26:59 +0400	[thread overview]
Message-ID: <1770319619.1.pryanishnikovartem@gmail.com> (raw)

Fix various spelling errors found by codespell in the rtl8723bs
staging driver core files:

- rtw_efuse.c: fot -> for
- rtw_wlan_util.c: overwirte -> overwrite, Vender -> vendor (also
  fixing CamelCase), get_realtek_assoc_AP_vender ->
  get_realtek_assoc_AP_vendor
- rtw_mlme.c: varable -> variable
- rtw_cmd.c: beucase -> because
- rtw_recv.c: temporily -> temporarily
- rtw_pwrctrl.c: willl -> will
- rtw_mlme_ext.c: receieving -> receiving

Signed-off-by: frankfmy <pryanishnikovartem@gmail.com>
---
 drivers/staging/rtl8723bs/core/rtw_cmd.c       |  2 +-
 drivers/staging/rtl8723bs/core/rtw_efuse.c     |  2 +-
 drivers/staging/rtl8723bs/core/rtw_mlme.c      |  2 +-
 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c  |  2 +-
 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c   |  2 +-
 drivers/staging/rtl8723bs/core/rtw_recv.c      |  4 ++--
 drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 18 +++++++++---------
 7 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/drivers/staging/rtl8723bs/core/rtw_cmd.c b/drivers/staging/rtl8723bs/core/rtw_cmd.c
index ef2d92b55..e504c6ff1 100644
--- a/drivers/staging/rtl8723bs/core/rtw_cmd.c
+++ b/drivers/staging/rtl8723bs/core/rtw_cmd.c
@@ -1646,7 +1646,7 @@ u8 rtw_c2h_packet_wk_cmd(struct adapter *padapter, u8 *pbuf, u16 length)
 	return res;
 }
 
-/* dont call R/W in this function, beucase SDIO interrupt have claim host */
+/* dont call R/W in this function, because SDIO interrupt have claim host */
 /* or deadlock will happen and cause special-systemserver-died in android */
 u8 rtw_c2h_wk_cmd(struct adapter *padapter, u8 *c2h_evt)
 {
diff --git a/drivers/staging/rtl8723bs/core/rtw_efuse.c b/drivers/staging/rtl8723bs/core/rtw_efuse.c
index 98b15ca10..9ac1fa5bb 100644
--- a/drivers/staging/rtl8723bs/core/rtw_efuse.c
+++ b/drivers/staging/rtl8723bs/core/rtw_efuse.c
@@ -46,7 +46,7 @@ Efuse_CalculateWordCnts(u8 word_en)
 /*-----------------------------------------------------------------------------
  * Function:	EFUSE_Read1Byte
  *
- * Overview:	Copy from WMAC fot EFUSE read 1 byte.
+ * Overview:	Copy from WMAC for EFUSE read 1 byte.
  *
  * Input:       NONE
  *
diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme.c b/drivers/staging/rtl8723bs/core/rtw_mlme.c
index 98704179a..c5dfca713 100644
--- a/drivers/staging/rtl8723bs/core/rtw_mlme.c
+++ b/drivers/staging/rtl8723bs/core/rtw_mlme.c
@@ -52,7 +52,7 @@ int	rtw_init_mlme_priv(struct adapter *padapter)
 	pmlmepriv->pscanned = NULL;
 	pmlmepriv->fw_state = WIFI_STATION_STATE; /*  Must sync with rtw_wdev_alloc() */
 	pmlmepriv->cur_network.network.infrastructure_mode = Ndis802_11AutoUnknown;
-	pmlmepriv->scan_mode = SCAN_ACTIVE;/*  1: active, 0: passive. Maybe someday we should rename this varable to "active_mode" (Jeff) */
+	pmlmepriv->scan_mode = SCAN_ACTIVE;/*  1: active, 0: passive. Maybe someday we should rename this variable to "active_mode" (Jeff) */
 
 	spin_lock_init(&pmlmepriv->lock);
 	INIT_LIST_HEAD(&pmlmepriv->free_bss_pool.queue);
diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
index ac49bfbaa..3b64d19ec 100644
--- a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
+++ b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
@@ -1502,7 +1502,7 @@ unsigned int OnDeAuth(struct adapter *padapter, union recv_frame *precv_frame)
 	/* Commented by Albert 20130604
 	 * Before sending the auth frame to start the STA/GC mode connection with AP/GO,
 	 * we will send the deauth first.
-	 * However, the Win8.1 with BRCM Wi-Fi will send the deauth with reason code 6 to us after receieving our deauth.
+	 * However, the Win8.1 with BRCM Wi-Fi will send the deauth with reason code 6 to us after receiving our deauth.
 	 * Added the following code to avoid this case.
 	 */
 	if ((pmlmeinfo->state & WIFI_FW_AUTH_STATE) ||
diff --git a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c
index 0ef788abf..7c5550275 100644
--- a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c
+++ b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c
@@ -584,7 +584,7 @@ void LPS_Leave_check(struct adapter *padapter)
  *
  * This will be called when CPWM interrupt is up.
  *
- * using to update cpwn of drv; and drv willl make a decision to up or down pwr level
+ * using to update cpwn of drv; and drv will make a decision to up or down pwr level
  */
 void cpwm_int_hdl(struct adapter *padapter, struct reportpwrstate_parm *preportpwrstate)
 {
diff --git a/drivers/staging/rtl8723bs/core/rtw_recv.c b/drivers/staging/rtl8723bs/core/rtw_recv.c
index e893cb6fa..ee24e433c 100644
--- a/drivers/staging/rtl8723bs/core/rtw_recv.c
+++ b/drivers/staging/rtl8723bs/core/rtw_recv.c
@@ -841,7 +841,7 @@ static signed int ap2sta_data_frame(struct adapter *adapter, union recv_frame *p
 		}
 
 		if (GetFrameSubType(ptr) & BIT(6)) {
-			/* No data, will not indicate to upper layer, temporily count it here */
+			/* No data, will not indicate to upper layer, temporarily count it here */
 			count_rx_stats(adapter, precv_frame, *psta);
 			ret = RTW_RX_HANDLED;
 			goto exit;
@@ -924,7 +924,7 @@ static signed int sta2ap_data_frame(struct adapter *adapter, union recv_frame *p
 			process_wmmps_data(adapter, precv_frame);
 
 		if (GetFrameSubType(ptr) & BIT(6)) {
-			/* No data, will not indicate to upper layer, temporily count it here */
+			/* No data, will not indicate to upper layer, temporarily count it here */
 			count_rx_stats(adapter, precv_frame, *psta);
 			ret = RTW_RX_HANDLED;
 			goto exit;
diff --git a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c
index 5ffefa506..495381965 100644
--- a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c
+++ b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c
@@ -598,7 +598,7 @@ s16 rtw_camid_alloc(struct adapter *adapter, struct sta_info *sta, u8 kid)
 
 		i = _rtw_camid_search(adapter, addr, kid);
 		if (i >= 0) {
-			/* Fix issue that pairwise and group key have same key id. Pairwise key first, group key can overwirte group only(ex: rekey) */
+			/* Fix issue that pairwise and group key have same key id. Pairwise key first, group key can overwrite group only(ex: rekey) */
 			if (sta || _rtw_camid_is_gk(adapter, i))
 				cam_id = i;
 			else
@@ -1397,9 +1397,9 @@ void set_sta_rate(struct adapter *padapter, struct sta_info *psta)
 	Update_RA_Entry(padapter, psta);
 }
 
-static u32 get_realtek_assoc_AP_vender(struct ndis_80211_var_ie *pIE)
+static u32 get_realtek_assoc_AP_vendor(struct ndis_80211_var_ie *pIE)
 {
-	u32 Vender = HT_IOT_PEER_REALTEK;
+	u32 vendor = HT_IOT_PEER_REALTEK;
 
 	if (pIE->length >= 5) {
 		if (pIE->data[4] == 1)
@@ -1407,21 +1407,21 @@ static u32 get_realtek_assoc_AP_vender(struct ndis_80211_var_ie *pIE)
 			/* bssDesc->BssHT.RT2RT_HT_Mode |= RT_HT_CAP_USE_LONG_PREAMBLE; */
 			if (pIE->data[5] & RT_HT_CAP_USE_92SE)
 				/* bssDesc->BssHT.RT2RT_HT_Mode |= RT_HT_CAP_USE_92SE; */
-				Vender = HT_IOT_PEER_REALTEK_92SE;
+				vendor = HT_IOT_PEER_REALTEK_92SE;
 
 		if (pIE->data[5] & RT_HT_CAP_USE_SOFTAP)
-			Vender = HT_IOT_PEER_REALTEK_SOFTAP;
+			vendor = HT_IOT_PEER_REALTEK_SOFTAP;
 
 		if (pIE->data[4] == 2) {
 			if (pIE->data[6] & RT_HT_CAP_USE_JAGUAR_BCUT)
-				Vender = HT_IOT_PEER_REALTEK_JAGUAR_BCUTAP;
+				vendor = HT_IOT_PEER_REALTEK_JAGUAR_BCUTAP;
 
 			if (pIE->data[6] & RT_HT_CAP_USE_JAGUAR_CCUT)
-				Vender = HT_IOT_PEER_REALTEK_JAGUAR_CCUTAP;
+				vendor = HT_IOT_PEER_REALTEK_JAGUAR_CCUTAP;
 		}
 	}
 
-	return Vender;
+	return vendor;
 }
 
 unsigned char check_assoc_AP(u8 *pframe, uint len)
@@ -1447,7 +1447,7 @@ unsigned char check_assoc_AP(u8 *pframe, uint len)
 			else if (!memcmp(pIE->data, CISCO_OUI, 3))
 				return HT_IOT_PEER_CISCO;
 			else if (!memcmp(pIE->data, REALTEK_OUI, 3))
-				return get_realtek_assoc_AP_vender(pIE);
+				return get_realtek_assoc_AP_vendor(pIE);
 			else if (!memcmp(pIE->data, AIRGOCAP_OUI, 3))
 				return HT_IOT_PEER_AIRGO;
 			else
-- 
2.34.1

             reply	other threads:[~2026-02-05 19:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-05 19:26 frankfmy [this message]
2026-02-05 19:27 ` [PATCH 2/5] staging: rtl8723bs: fix spelling errors in hal driver files frankfmy
2026-02-05 19:27 ` [PATCH 3/5] staging: rtl8723bs: fix spelling errors in os_dep files frankfmy
2026-02-05 19:27 ` [PATCH 4/5] staging: rtl8723bs: fix spelling errors in header files frankfmy
2026-02-05 19:27 ` [PATCH 5/5] staging: greybus: fix spelling errors frankfmy
2026-02-07 13:39 ` [PATCH 1/5] staging: rtl8723bs: fix spelling errors in core driver files Greg KH

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=1770319619.1.pryanishnikovartem@gmail.com \
    --to=pryanishnikovartem@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-staging@lists.linux.dev \
    /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