Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

staging: rtl8723bs: Fix spelling errors

Fix spelling errors.

Co-developed-by: Annika Knepper <av91obul@stud.informatik.uni-erlangen.de>
Signed-off-by: Annika Knepper <av91obul@stud.informatik.uni-erlangen.de>
Signed-off-by: Andreas Hellmich <dy26hofu@stud.informatik.uni-erlangen.de>
Link: https://lore.kernel.org/r/20191129093939.2782-1-dy26hofu@stud.informatik.uni-erlangen.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Andreas Hellmich and committed by
Greg Kroah-Hartman
68468503 de7c18bd

+28 -28
+18 -18
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
··· 207 207 {0x02, 0x1F}, /* 0x57, RT_CHANNEL_DOMAIN_FCC1_FCC10 */ 208 208 }; 209 209 210 - static RT_CHANNEL_PLAN_MAP RTW_CHANNEL_PLAN_MAP_REALTEK_DEFINE = {0x03, 0x02}; /* use the conbination for max channel numbers */ 210 + static RT_CHANNEL_PLAN_MAP RTW_CHANNEL_PLAN_MAP_REALTEK_DEFINE = {0x03, 0x02}; /* use the combination for max channel numbers */ 211 211 212 212 /* 213 213 * Search the @param ch in given @param ch_set ··· 2265 2265 2266 2266 /**************************************************************************** 2267 2267 2268 - Following are some TX fuctions for WiFi MLME 2268 + Following are some TX functions for WiFi MLME 2269 2269 2270 2270 *****************************************************************************/ 2271 2271 ··· 2956 2956 return ret; 2957 2957 } 2958 2958 2959 - /* if psta == NULL, indiate we are station(client) now... */ 2959 + /* if psta == NULL, indicate we are station(client) now... */ 2960 2960 void issue_auth(struct adapter *padapter, struct sta_info *psta, unsigned short status) 2961 2961 { 2962 2962 struct xmit_frame *pmgntframe; ··· 3358 3358 if ((!padapter->registrypriv.wifi_spec) && (!memcmp(pIE->data, WPS_OUI, 4))) { 3359 3359 /* Commented by Kurt 20110629 */ 3360 3360 /* In some older APs, WPS handshake */ 3361 - /* would be fail if we append vender extensions informations to AP */ 3361 + /* would be fail if we append vender extensions information to AP */ 3362 3362 3363 3363 vs_ie_length = 14; 3364 3364 } ··· 3406 3406 rtw_buf_free(&pmlmepriv->assoc_req, &pmlmepriv->assoc_req_len); 3407 3407 } 3408 3408 3409 - /* when wait_ack is ture, this function shoule be called at process context */ 3409 + /* when wait_ack is true, this function should be called at process context */ 3410 3410 static int _issue_nulldata(struct adapter *padapter, unsigned char *da, 3411 3411 unsigned int power_mode, bool wait_ack) 3412 3412 { ··· 3481 3481 /* 3482 3482 * [IMPORTANT] Don't call this function in interrupt context 3483 3483 * 3484 - * When wait_ms > 0, this function shoule be called at process context 3484 + * When wait_ms > 0, this function should be called at process context 3485 3485 * da == NULL for station mode 3486 3486 */ 3487 3487 int issue_nulldata(struct adapter *padapter, unsigned char *da, unsigned int power_mode, int try_cnt, int wait_ms) ··· 3493 3493 struct sta_info *psta; 3494 3494 3495 3495 3496 - /* da == NULL, assum it's null data for sta to ap*/ 3496 + /* da == NULL, assume it's null data for sta to ap*/ 3497 3497 if (!da) 3498 3498 da = get_my_bssid(&(pmlmeinfo->network)); 3499 3499 ··· 3558 3558 pmlmeext = &padapter->mlmeextpriv; 3559 3559 pmlmeinfo = &pmlmeext->mlmext_info; 3560 3560 3561 - /* da == NULL, assum it's null data for sta to ap*/ 3561 + /* da == NULL, assume it's null data for sta to ap*/ 3562 3562 if (!da) 3563 3563 da = get_my_bssid(&(pmlmeinfo->network)); 3564 3564 3565 3565 return _issue_nulldata(padapter, da, 0, false); 3566 3566 } 3567 3567 3568 - /* when wait_ack is ture, this function shoule be called at process context */ 3568 + /* when wait_ack is true, this function should be called at process context */ 3569 3569 static int _issue_qos_nulldata(struct adapter *padapter, unsigned char *da, 3570 3570 u16 tid, bool wait_ack) 3571 3571 { ··· 3644 3644 return ret; 3645 3645 } 3646 3646 3647 - /* when wait_ms >0 , this function shoule be called at process context */ 3647 + /* when wait_ms >0 , this function should be called at process context */ 3648 3648 /* da == NULL for station mode */ 3649 3649 int issue_qos_nulldata(struct adapter *padapter, unsigned char *da, u16 tid, int try_cnt, int wait_ms) 3650 3650 { ··· 3653 3653 struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv); 3654 3654 struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info); 3655 3655 3656 - /* da == NULL, assum it's null data for sta to ap*/ 3656 + /* da == NULL, assume it's null data for sta to ap*/ 3657 3657 if (!da) 3658 3658 da = get_my_bssid(&(pmlmeinfo->network)); 3659 3659 ··· 4264 4264 4265 4265 /**************************************************************************** 4266 4266 4267 - Following are some utitity fuctions for WiFi MLME 4267 + Following are some utility functions for WiFi MLME 4268 4268 4269 4269 *****************************************************************************/ 4270 4270 ··· 4568 4568 } 4569 4569 #endif 4570 4570 4571 - /* mark bss info receving from nearby channel as SignalQuality 101 */ 4571 + /* mark bss info receiving from nearby channel as SignalQuality 101 */ 4572 4572 if (bssid->Configuration.DSConfig != rtw_get_oper_ch(padapter)) 4573 4573 bssid->PhyInfo.SignalQuality = 101; 4574 4574 ··· 4589 4589 /* update wireless mode */ 4590 4590 update_wireless_mode(padapter); 4591 4591 4592 - /* udpate capability */ 4592 + /* update capability */ 4593 4593 caps = rtw_get_capability((struct wlan_bssid_ex *)pnetwork); 4594 4594 update_capinfo(padapter, caps); 4595 4595 if (caps&cap_IBSS) {/* adhoc master */ ··· 4644 4644 /* update wireless mode */ 4645 4645 update_wireless_mode(padapter); 4646 4646 4647 - /* udpate capability */ 4647 + /* update capability */ 4648 4648 caps = rtw_get_capability((struct wlan_bssid_ex *)pnetwork); 4649 4649 update_capinfo(padapter, caps); 4650 4650 if (caps&cap_ESS) { ··· 5441 5441 /* turn on dynamic functions */ 5442 5442 Switch_DM_Func(padapter, DYNAMIC_ALL_FUNC_ENABLE, true); 5443 5443 5444 - /* update IOT-releated issue */ 5444 + /* update IOT-related issue */ 5445 5445 update_IOT_info(padapter); 5446 5446 5447 5447 rtw_hal_set_hwreg(padapter, HW_VAR_BASIC_RATE, cur_network->SupportedRates); ··· 5449 5449 /* BCN interval */ 5450 5450 rtw_hal_set_hwreg(padapter, HW_VAR_BEACON_INTERVAL, (u8 *)(&pmlmeinfo->bcn_interval)); 5451 5451 5452 - /* udpate capability */ 5452 + /* update capability */ 5453 5453 update_capinfo(padapter, pmlmeinfo->capability); 5454 5454 5455 5455 /* WMM, Update EDCA param */ ··· 6385 6385 Save_DM_Func_Flag(padapter); 6386 6386 Switch_DM_Func(padapter, DYNAMIC_FUNC_DISABLE, false); 6387 6387 6388 - /* config the initial gain under scaning, need to write the BB registers */ 6388 + /* config the initial gain under scanning, need to write the BB registers */ 6389 6389 initialgain = 0x1e; 6390 6390 6391 6391 rtw_hal_set_hwreg(padapter, HW_VAR_INITIAL_GAIN, (u8 *)(&initialgain));
+3 -3
drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c
··· 82 82 /* if (RFPath == ODM_RF_PATH_A) */ 83 83 switch (RFPath) { 84 84 case ODM_RF_PATH_A: 85 - /* wirte new elements A, C, D to regC80 and regC94, element B is always 0 */ 85 + /* write new elements A, C, D to regC80 and regC94, element B is always 0 */ 86 86 value32 = (ele_D<<22)|((ele_C&0x3F)<<16)|ele_A; 87 87 PHY_SetBBReg(pDM_Odm->Adapter, rOFDM0_XATxIQImbalance, bMaskDWord, value32); 88 88 ··· 93 93 PHY_SetBBReg(pDM_Odm->Adapter, rOFDM0_ECCAThreshold, BIT24, value32); 94 94 break; 95 95 case ODM_RF_PATH_B: 96 - /* wirte new elements A, C, D to regC88 and regC9C, element B is always 0 */ 96 + /* write new elements A, C, D to regC88 and regC9C, element B is always 0 */ 97 97 value32 = (ele_D<<22)|((ele_C&0x3F)<<16)|ele_A; 98 98 PHY_SetBBReg(pDM_Odm->Adapter, rOFDM0_XBTxIQImbalance, bMaskDWord, value32); 99 99 ··· 166 166 /*----------------------------------------------------------------------------- 167 167 * Function: odm_TxPwrTrackSetPwr88E() 168 168 * 169 - * Overview: 88E change all channel tx power accordign to flag. 169 + * Overview: 88E change all channel tx power according to flag. 170 170 * OFDM & CCK are all different. 171 171 * 172 172 * Input: NONE
+7 -7
drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c
··· 750 750 rtw_write8(padapter, 0x6B, tempval); 751 751 752 752 /* Attention!! Between 0x6A[14] and 0x6A[15] setting need 100us delay */ 753 - /* So don't wirte 0x6A[14]= 1 and 0x6A[15]= 0 together! */ 753 + /* So don't write 0x6A[14]= 1 and 0x6A[15]= 0 together! */ 754 754 msleep(1); 755 755 /* disable BT output isolation */ 756 756 /* 0x6A[15] = 0 */ ··· 765 765 rtw_write8(padapter, 0x6B, tempval); 766 766 767 767 /* Attention!! Between 0x6A[14] and 0x6A[15] setting need 100us delay */ 768 - /* So don't wirte 0x6A[14]= 1 and 0x6A[15]= 0 together! */ 768 + /* So don't write 0x6A[14]= 1 and 0x6A[15]= 0 together! */ 769 769 770 770 /* disable BT power cut */ 771 771 /* 0x6A[14] = 1 */ ··· 1231 1231 goto exit; 1232 1232 1233 1233 error: 1234 - /* report max size to prevent wirte efuse */ 1234 + /* report max size to prevent write efuse */ 1235 1235 EFUSE_GetEfuseDefinition(padapter, EFUSE_WIFI, TYPE_AVAILABLE_EFUSE_BYTES_TOTAL, &efuse_addr, bPseudoTest); 1236 1236 1237 1237 exit: ··· 2237 2237 u8 val; 2238 2238 2239 2239 val = rtw_read8(padapter, REG_LEDCFG2); 2240 - /* Let 8051 take control antenna settting */ 2240 + /* Let 8051 take control antenna setting */ 2241 2241 val |= BIT(7); /* DPDT_SEL_EN, 0x4C[23] */ 2242 2242 rtw_write8(padapter, REG_LEDCFG2, val); 2243 2243 } ··· 3193 3193 3194 3194 /* 2009.11.05. tynli_test. Suggested by SD4 Filen for FW LPS. */ 3195 3195 /* (1) The sequence number of each non-Qos frame / broadcast / multicast / */ 3196 - /* mgnt frame should be controled by Hw because Fw will also send null data */ 3196 + /* mgnt frame should be controlled by Hw because Fw will also send null data */ 3197 3197 /* which we cannot control when Fw LPS enable. */ 3198 3198 /* --> default enable non-Qos data sequense number. 2010.06.23. by tynli. */ 3199 3199 /* (2) Enable HW SEQ control for beacon packet, because we use Hw beacon. */ ··· 3543 3543 rtw_write8(padapter, reg_bcn_ctl, val8); 3544 3544 } 3545 3545 3546 - /* Save orignal RRSR setting. */ 3546 + /* Save original RRSR setting. */ 3547 3547 pHalData->RegRRSR = rtw_read16(padapter, REG_RRSR); 3548 3548 } else { 3549 3549 /* sitesurvey done */ ··· 3561 3561 value_rcr |= rcr_clear_bit; 3562 3562 rtw_write32(padapter, REG_RCR, value_rcr); 3563 3563 3564 - /* Restore orignal RRSR setting. */ 3564 + /* Restore original RRSR setting. */ 3565 3565 rtw_write16(padapter, REG_RRSR, pHalData->RegRRSR); 3566 3566 } 3567 3567 }