staging: rtl8723bs: fix spelling errors in core driver files
Subsystems (3)
PATCH 1/5 staging: rtl8723bs: fix spelling errors in core driver files
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
--- 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(-)
drivers/staging/rtl8723bs/core/rtw_cmd.c +1 -1
@@ -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) {
drivers/staging/rtl8723bs/core/rtw_efuse.c +1 -1
@@ -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 *
drivers/staging/rtl8723bs/core/rtw_mlme.c +1 -1
@@ -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);
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c +1 -1
@@ -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) ||
drivers/staging/rtl8723bs/core/rtw_pwrctrl.c +1 -1
@@ -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) {
drivers/staging/rtl8723bs/core/rtw_recv.c +2 -2
@@ -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 *pprocess_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;
drivers/staging/rtl8723bs/core/rtw_wlan_util.c +9 -9
@@ -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
Signature · 1 line
2.34.1
PATCH 2/5 staging: rtl8723bs: fix spelling errors in hal driver files
Fix spelling errors found by codespell in the rtl8723bs staging driver hal files:
- sdio_halinit.c: gurantee -> guarantee
- sdio_ops.c: Enalbe -> Enable
- rtl8723b_cmd.c: lastest -> last
--- drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c | 2 +- drivers/staging/rtl8723bs/hal/sdio_halinit.c | 2 +- drivers/staging/rtl8723bs/hal/sdio_ops.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c +1 -1
@@ -835,7 +835,7 @@ static void SetFwRsvdPagePkt_BTCoex(struct adapter *padapter) BufIndex += (CurtPktPageNum*PageSize); -/* Jump to lastest page */ +/* Jump to last page */ if (BufIndex < (MaxRsvdPageBufSize - PageSize)) { BufIndex = TxDescOffset + (MaxRsvdPageBufSize - PageSize); TotalPageNum =BCNQ_PAGE_NUM_8723B -1 ;
drivers/staging/rtl8723bs/hal/sdio_halinit.c +1 -1
@@ -388,7 +388,7 @@ static void _InitWMACSetting(struct adapter *padapter)/* 2010.09.08 hpfan */ /* Since ADF is removed from RCR, ps-poll will not be indicate to driver, */ -/* RxFilterMap should mask ps-poll to gurantee AP mode can rx ps-poll. */ +/* RxFilterMap should mask ps-poll to guarantee AP mode can rx ps-poll. */ value16 =0x400 ;rtw_write16 (padapter,REG_RXFLTMAP1 , value16);
drivers/staging/rtl8723bs/hal/sdio_ops.c +1 -1
@@ -719,7 +719,7 @@ void InitSysInterrupt8723BSdio(struct adapter *adapter)/* */ /* Description: */ -/* Enalbe SDIO Host Interrupt Mask configuration on SDIO local domain. */ +/* Enable SDIO Host Interrupt Mask configuration on SDIO local domain. */ /* */ /* Assumption: */ /* 1. Using SDIO Local register ONLY for configuration. */
Signature · 1 line
2.34.1
PATCH 3/5 staging: rtl8723bs: fix spelling errors in os_dep files
In reply to frankfmyFix spelling errors found by codespell in the rtl8723bs staging driver os_dep files:
- wifi_regd.c: PASSIV -> PASSIVE
- ioctl_cfg80211.c: inclued -> included, regulary -> regulatory
- os_intfs.c: termindate -> terminate
--- drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 4 ++-- drivers/staging/rtl8723bs/os_dep/os_intfs.c | 2 +- drivers/staging/rtl8723bs/os_dep/wifi_regd.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c +2 -2
@@ -2266,7 +2266,7 @@ static int rtw_add_beacon(struct adapter *adapter, const u8 *head, size_t head_l len = head_len + tail_len -24 ; -/* check wps ie if inclued */ +/* check wps ie if included */ rtw_get_wps_ie (pbuf + _FIXED_IE_LENGTH_, len - _FIXED_IE_LENGTH_,NULL , &wps_ielen);/* pbss_network->ies will not include p2p_ie, wfd ie */
@@ -2720,7 +2720,7 @@ int rtw_wdev_alloc(struct adapter *padapter, struct device *dev) *((struct adapter **)wiphy_priv (wiphy)) = padapter;rtw_cfg80211_preinit_wiphy (padapter, wiphy); -/* init regulary domain */ +/* init regulatory domain */ rtw_regd_init (wiphy, rtw_reg_notifier); ret =wiphy_register (wiphy);
drivers/staging/rtl8723bs/os_dep/os_intfs.c +1 -1
@@ -488,7 +488,7 @@ void rtw_stop_drv_threads(struct adapter *padapter) {rtw_stop_cmd_thread (padapter); -/* Below is to termindate tx_thread... */ +/* Below is to terminate tx_thread... */ complete (&padapter->xmitpriv.xmit_comp);wait_for_completion (&padapter->xmitpriv.terminate_xmitthread_comp);
drivers/staging/rtl8723bs/os_dep/wifi_regd.c +1 -1
@@ -27,7 +27,7 @@* by case basis by regulatory domain */ -/* 2G chan 12 - chan 13, PASSIV SCAN */ +/* 2G chan 12 - chan 13, PASSIVE SCAN */ #define RTW_2GHZ_CH12_13 \ REG_RULE(2467 - 10, 2472 + 10, 40, 0, 20, \ NL80211_RRF_PASSIVE_SCAN)
Signature · 1 line
2.34.1
PATCH 4/5 staging: rtl8723bs: fix spelling errors in header files
In reply to frankfmyFix spelling errors found by codespell in the rtl8723bs staging driver header files:
- rtw_cmd.h: sequcne -> sequence
- hal_com_reg.h: contrl -> control
- drv_types.h: build-in -> built-in
- wlan_bssdef.h: infor -> info
- HalPwrSeqCmd.h: dirver -> driver
--- drivers/staging/rtl8723bs/include/HalPwrSeqCmd.h | 2 +- drivers/staging/rtl8723bs/include/drv_types.h | 2 +- drivers/staging/rtl8723bs/include/hal_com_reg.h | 2 +- drivers/staging/rtl8723bs/include/rtw_cmd.h | 2 +- drivers/staging/rtl8723bs/include/wlan_bssdef.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
drivers/staging/rtl8723bs/include/HalPwrSeqCmd.h +1 -1
@@ -16,7 +16,7 @@/* offset: the read register offset */ /* msk: the mask of the read value */ /* value: N/A, left by 0 */ -/* note: dirver shall implement this function by read & msk */ +/* note: driver shall implement this function by read & msk */ #define PWR_CMD_WRITE 0x01/* offset: the read register offset */
drivers/staging/rtl8723bs/include/drv_types.h +1 -1
@@ -318,7 +318,7 @@ enum {struct adapter {int DriverState;/* for disable driver using module, use dongle to replace module. */ int pid[3 ];/* process id from UI, 0:wps, 1:hostapd, 2:dhcpcd */ -int bDongle;/* build-in module or external dongle */ +int bDongle;/* built-in module or external dongle */ struct dvobj_priv *dvobj;struct mlme_priv mlmepriv;
drivers/staging/rtl8723bs/include/hal_com_reg.h +1 -1
@@ -20,7 +20,7 @@#define REG_RSV_CTRL 0x001C#define REG_RF_CTRL 0x001F#define REG_AFE_XTAL_CTRL 0x0024 -#define REG_MAC_PHY_CTRL 0x002c/* for 92d, DMDP, SMSP, DMSP contrl */ +#define REG_MAC_PHY_CTRL 0x002c/* for 92d, DMDP, SMSP, DMSP control */ #define REG_EFUSE_CTRL 0x0030#define REG_EFUSE_TEST 0x0034#define REG_PWR_DATA 0x0038
drivers/staging/rtl8723bs/include/rtw_cmd.h +1 -1
@@ -559,7 +559,7 @@ struct RunInThread_param { Result: 0x00: success 0x01: success, and check Response. -0x02: cmd ignored due to duplicated sequcne number +0x02: cmd ignored due to duplicated sequence number 0x03: cmd dropped due to invalid cmd code 0x04: reserved.
drivers/staging/rtl8723bs/include/wlan_bssdef.h +1 -1
@@ -138,7 +138,7 @@ struct wlan_phy_info { };struct wlan_bcn_info { -/* these infor get from rtw_get_encrypt_info when +/* these info get from rtw_get_encrypt_info when * * translate scan to UI */ u8 encryp_protocol;/* ENCRYP_PROTOCOL_E: OPEN/WEP/WPA/WPA2/WAPI */ int group_cipher;/* WPA/WPA2 group cipher */
Signature · 1 line
2.34.1
PATCH 5/5 staging: greybus: fix spelling errors
In reply to frankfmyFix spelling errors found by codespell in the greybus staging driver:
- arche-platform.c: premits -> permits
- Kconfig: chose -> choose
- Documentation/sysfs-bus-greybus: attibute -> attribute
--- drivers/staging/greybus/Documentation/sysfs-bus-greybus | 2 +- drivers/staging/greybus/Kconfig | 2 +- drivers/staging/greybus/arche-platform.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/greybus/Documentation/sysfs-bus-greybus +1 -1
@@ -26,7 +26,7 @@ Date: March 2016 KernelVersion: 4.XX Contact: Greg Kroah-Hartman <[email protected]> Description: - Writing a non-zero argument to this attibute disables the + Writing a non-zero argument to this attribute disables the module's interfaces before physically ejecting it. What: /sys/bus/greybus/devices/N-M/module_id
drivers/staging/greybus/Kconfig +1 -1
@@ -126,7 +126,7 @@ menuconfig GREYBUS_BRIDGED_PHY different "traditional" busses by tunneling them over Greybus. Examples of this include serial, SPI, USB, and others. - To compile this code as a module, chose M here: the module + To compile this code as a module, choose M here: the module will be called gb-phy.ko if GREYBUS_BRIDGED_PHY
drivers/staging/greybus/arche-platform.c +1 -1
@@ -576,7 +576,7 @@ static void arche_platform_remove(struct platform_device *pdev)static __maybe_unused int arche_platform_suspend (struct device *dev) {/* -* If timing profile premits, we may shutdown bridge +* If timing profile permits, we may shutdown bridge * completely * * TODO: sequence ??
Signature · 1 line
2.34.1
Greg KH
maintainerQuoted 14 lines · frankfmy
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 -> receivingSigned-off-by frankfmy <[email protected]>
Quoted 9 lines
--- 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(-)
Hi,
This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree.
You are receiving this message because of the following common error(s) as indicated below:
- Your patch did many different things all at once, making it difficult to review. All Linux kernel patches need to only do one thing at a time. If you need to do multiple things (such as clean up all coding style issues in a file/driver), do it in a sequence of patches, each one doing only one thing. This will make it easier to review the patches to ensure that they are correct, and to help alleviate any merge issues that larger patches can cause.
- It looks like you did not use your "real" name for the patch on either the Signed-off-by: line, or the From: line (both of which have to match). Please read the kernel file, Documentation/process/submitting-patches.rst for how to do this correctly.
If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers.
thanks,
greg k-h's patch email bot