staging: rtl8723bs: Rename camelcase variable dot11PrivacyAlgrthm
PATCH 1/1 staging: rtl8723bs: Rename camelcase variable dot11PrivacyAlgrthm
Rename variable dot11PrivacyAlgrthm to dot11_privacy_algrthm in struct security_priv to resolve checkpatch.pl CamelCase finding.
--- drivers/staging/rtl8723bs/core/rtw_ap.c | 12 ++--- drivers/staging/rtl8723bs/core/rtw_cmd.c | 8 ++-- .../staging/rtl8723bs/core/rtw_ioctl_set.c | 6 +-- drivers/staging/rtl8723bs/core/rtw_mlme.c | 16 +++---- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 4 +- drivers/staging/rtl8723bs/core/rtw_security.c | 2 +- drivers/staging/rtl8723bs/core/rtw_xmit.c | 2 +- drivers/staging/rtl8723bs/hal/hal_btcoex.c | 2 +- drivers/staging/rtl8723bs/hal/rtl8723b_dm.c | 2 +- .../staging/rtl8723bs/hal/rtl8723b_hal_init.c | 2 +- .../staging/rtl8723bs/include/rtw_security.h | 6 +-- .../staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 48 +++++++++---------- drivers/staging/rtl8723bs/os_dep/os_intfs.c | 2 +- 13 files changed, 56 insertions(+), 56 deletions(-)
drivers/staging/rtl8723bs/core/rtw_ap.c +6 -6
@@ -651,8 +651,8 @@ void start_bss_network(struct adapter *padapter)if (!pmlmepriv->cur_network.join_res) {/* setting only at first time */ /* WEP Key will be set before this function, do not clear CAM. */ -if ((psecuritypriv->dot11PrivacyAlgrthm != _WEP40_) && - (psecuritypriv->dot11PrivacyAlgrthm != _WEP104_)) +if ((psecuritypriv->dot11_privacy_algrthm != _WEP40_) && + (psecuritypriv->dot11_privacy_algrthm != _WEP104_))flush_all_cam_entry (padapter);/* clear CAM */ }
@@ -1898,8 +1898,8 @@ void rtw_ap_restore_network(struct adapter *padapter)start_bss_network (padapter); -if ((padapter->securitypriv.dot11PrivacyAlgrthm == _TKIP_) || - (padapter->securitypriv.dot11PrivacyAlgrthm == _AES_)) { +if ((padapter->securitypriv.dot11_privacy_algrthm == _TKIP_) || + (padapter->securitypriv.dot11_privacy_algrthm == _AES_)) {/* restore group key, WEP keys is restored in ips_leave() */ rtw_set_key(padapter, psecuritypriv,
@@ -1934,8 +1934,8 @@ void rtw_ap_restore_network(struct adapter *padapter)Update_RA_Entry (padapter, psta);/* pairwise key */ /* per sta pairwise key and settings */ -if ((psecuritypriv->dot11PrivacyAlgrthm == _TKIP_) || - (psecuritypriv->dot11PrivacyAlgrthm == _AES_)) { +if ((psecuritypriv->dot11_privacy_algrthm == _TKIP_) || + (psecuritypriv->dot11_privacy_algrthm == _AES_)) {rtw_setstakey_cmd (padapter, psta, true, false); } }
drivers/staging/rtl8723bs/core/rtw_cmd.c +4 -4
@@ -764,9 +764,9 @@ u8 rtw_joinbss_cmd(struct adapter *padapter, struct wlan_network *pnetwork)/* Added by Albert 2010/06/23 */ /* For the WEP mode, we will use the bg mode to do the connection to avoid some IOT issue. */ /* Especially for Realtek 8192u SoftAP. */ -if ((padapter->securitypriv.dot11PrivacyAlgrthm != _WEP40_) && - (padapter->securitypriv.dot11PrivacyAlgrthm != _WEP104_) && - (padapter->securitypriv.dot11PrivacyAlgrthm != _TKIP_)) { +if ((padapter->securitypriv.dot11_privacy_algrthm != _WEP40_) && + (padapter->securitypriv.dot11_privacy_algrthm != _WEP104_) && + (padapter->securitypriv.dot11_privacy_algrthm != _TKIP_)) {rtw_ht_use_default_setting (padapter);rtw_build_wmm_ie_ht (padapter, &psecnetwork->ies[12 ], &psecnetwork->ie_length);
@@ -884,7 +884,7 @@ u8 rtw_setstakey_cmd(struct adapter *padapter, struct sta_info *sta, u8 unicast_memcpy (psetstakey_para->addr, sta->hwaddr,ETH_ALEN );if (check_fwstate (pmlmepriv,WIFI_STATION_STATE )) - psetstakey_para->algorithm = (unsigned char )psecuritypriv->dot11PrivacyAlgrthm; + psetstakey_para->algorithm = (unsigned char )psecuritypriv->dot11_privacy_algrthm;else GET_ENCRY_ALGO (psecuritypriv, sta, psetstakey_para->algorithm, false);
drivers/staging/rtl8723bs/core/rtw_ioctl_set.c +3 -3
@@ -427,13 +427,13 @@ u8 rtw_set_802_11_add_wep(struct adapter *padapter, struct ndis_802_11_wep *wep)switch (wep->key_length) {case 5 : - psecuritypriv->dot11PrivacyAlgrthm = _WEP40_; + psecuritypriv->dot11_privacy_algrthm = _WEP40_;break ;case 13 : - psecuritypriv->dot11PrivacyAlgrthm = _WEP104_; + psecuritypriv->dot11_privacy_algrthm = _WEP104_;break ;default : - psecuritypriv->dot11PrivacyAlgrthm = _NO_PRIVACY_; + psecuritypriv->dot11_privacy_algrthm = _NO_PRIVACY_;break ; }
drivers/staging/rtl8723bs/core/rtw_mlme.c +8 -8
@@ -330,10 +330,10 @@ bool rtw_is_same_ibss(struct adapter *adapter, struct wlan_network *pnetwork) {struct security_priv *psecuritypriv = &adapter->securitypriv; -if ((psecuritypriv->dot11PrivacyAlgrthm != _NO_PRIVACY_) && +if ((psecuritypriv->dot11_privacy_algrthm != _NO_PRIVACY_) && (pnetwork->network.privacy ==0 ))return false; -else if ((psecuritypriv->dot11PrivacyAlgrthm == _NO_PRIVACY_) && +else if ((psecuritypriv->dot11_privacy_algrthm == _NO_PRIVACY_) && (pnetwork->network.privacy ==1 ))return false;
@@ -975,7 +975,7 @@ static struct sta_info *rtw_joinbss_update_stainfo(struct adapter *padapter, str padapter->securitypriv.bgrpkey_handshake = false; psta->ieee8021x_blocked = true; - psta->dot118021XPrivacy = padapter->securitypriv.dot11PrivacyAlgrthm; + psta->dot118021XPrivacy = padapter->securitypriv.dot11_privacy_algrthm;memset ((u8 *)&psta->dot118021x_UncstKey,0 ,sizeof (union Keytype ));
@@ -1115,7 +1115,7 @@ void rtw_reset_securitypriv(struct adapter *adapter)struct security_priv *psec_priv = &adapter->securitypriv; psec_priv->dot11AuthAlgrthm = dot11AuthAlgrthm_Open;/* open system */ - psec_priv->dot11PrivacyAlgrthm = _NO_PRIVACY_; + psec_priv->dot11_privacy_algrthm = _NO_PRIVACY_; psec_priv->dot11PrivacyKeyIndex =0 ; psec_priv->dot118021XGrpPrivacy = _NO_PRIVACY_;
@@ -1331,7 +1331,7 @@ void rtw_stassoc_event_callback(struct adapter *adapter, u8 *pbuf)rtw_sta_media_status_rpt (adapter, psta,1 );if (adapter->securitypriv.dot11AuthAlgrthm == dot11AuthAlgrthm_8021X) - psta->dot118021XPrivacy = adapter->securitypriv.dot11PrivacyAlgrthm; + psta->dot118021XPrivacy = adapter->securitypriv.dot11_privacy_algrthm; psta->ieee8021x_blocked = false;
@@ -1886,7 +1886,7 @@ signed int rtw_set_key(struct adapter *adapter, struct security_priv *psecuritypif (psecuritypriv->dot11AuthAlgrthm == dot11AuthAlgrthm_8021X) psetkeyparm->algorithm = (unsigned char )psecuritypriv->dot118021XGrpPrivacy;else - psetkeyparm->algorithm = (u8 )psecuritypriv->dot11PrivacyAlgrthm; + psetkeyparm->algorithm = (u8 )psecuritypriv->dot11_privacy_algrthm; psetkeyparm->keyid = (u8 )keyid;/* 0~3 */ psetkeyparm->set_tx = set_tx;
@@ -2116,7 +2116,7 @@ void rtw_update_registrypriv_dev_network(struct adapter *adapter)struct security_priv *psecuritypriv = &adapter->securitypriv;struct wlan_network *cur_network = &adapter->mlmepriv.cur_network; - pdev_network->privacy = (psecuritypriv->dot11PrivacyAlgrthm >0 ?1 :0 ) ;/* adhoc no 802.1x */ + pdev_network->privacy = (psecuritypriv->dot11_privacy_algrthm >0 ?1 :0 ) ;/* adhoc no 802.1x */ pdev_network->rssi =0 ;
@@ -2357,7 +2357,7 @@ unsigned int rtw_restructure_ht_ie(struct adapter *padapter, u8 *in_ie, u8 *out_ ht_capie.ampdu_params_info = (max_rx_ampdu_factor &0x03 ); -if (padapter->securitypriv.dot11PrivacyAlgrthm == _AES_) +if (padapter->securitypriv.dot11_privacy_algrthm == _AES_) ht_capie.ampdu_params_info |= (IEEE80211_HT_CAP_AMPDU_DENSITY & (0x07 <<2 ));else ht_capie.ampdu_params_info |= (IEEE80211_HT_CAP_AMPDU_DENSITY &0x00 );
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c +2 -2
@@ -703,8 +703,8 @@ unsigned int OnAuth(struct adapter *padapter, union recv_frame *precv_frame) seq =le16_to_cpu (*(__le16 *)((SIZE_PTR )pframe +WLAN_HDR_A3_LEN + offset +2 ));if (auth_mode ==2 && - psecuritypriv->dot11PrivacyAlgrthm != _WEP40_ && - psecuritypriv->dot11PrivacyAlgrthm != _WEP104_) + psecuritypriv->dot11_privacy_algrthm != _WEP40_ && + psecuritypriv->dot11_privacy_algrthm != _WEP104_) auth_mode =0 ; if ((algorithm > 0 && auth_mode == 0) || /* rx a shared-key auth but shared not enabled */
drivers/staging/rtl8723bs/core/rtw_security.c +1 -1
@@ -1446,7 +1446,7 @@ void rtw_sec_restore_wep_key(struct adapter *adapter)struct security_priv *securitypriv = &adapter->securitypriv;signed int keyid; -if ((securitypriv->dot11PrivacyAlgrthm == _WEP40_) || (securitypriv->dot11PrivacyAlgrthm == _WEP104_)) { +if ((securitypriv->dot11_privacy_algrthm == _WEP40_) || (securitypriv->dot11_privacy_algrthm == _WEP104_)) {for (keyid =0 ; keyid <4 ; keyid++) {if (securitypriv->key_mask &BIT (keyid)) {if (keyid == securitypriv->dot11PrivacyKeyIndex)
drivers/staging/rtl8723bs/core/rtw_xmit.c +1 -1
@@ -419,7 +419,7 @@ static void update_attrib_vcs_info(struct adapter *padapter, struct xmit_frame */* IOT action */ if ((pmlmeinfo->assoc_AP_vendor ==HT_IOT_PEER_ATHEROS ) && pattrib->ampdu_en && - (padapter->securitypriv.dot11PrivacyAlgrthm == _AES_)) { + (padapter->securitypriv.dot11_privacy_algrthm == _AES_)) { pattrib->vcs_mode =CTS_TO_SELF ;break ; }
drivers/staging/rtl8723bs/hal/hal_btcoex.c +1 -1
@@ -316,7 +316,7 @@ static u8 halbtcoutsrc_Get(void *pBtcContext, u8 getType, void *pOutBuf)break ;case BTC_GET_BL_WIFI_ENABLE_ENCRYPTION : - *pu8 = padapter->securitypriv.dot11PrivacyAlgrthm !=0 ; + *pu8 = padapter->securitypriv.dot11_privacy_algrthm !=0 ;break ;case BTC_GET_BL_WIFI_UNDER_B_MODE :
drivers/staging/rtl8723bs/hal/rtl8723b_dm.c +1 -1
@@ -88,7 +88,7 @@ static void Update_ODM_ComInfo_8723b(struct adapter *Adapter)ODM_CmnInfoHook (pDM_Odm,ODM_CMNINFO_RX_UNI , &(dvobj->traffic_stat.rx_bytes));ODM_CmnInfoHook (pDM_Odm,ODM_CMNINFO_WM_MODE , &(pmlmeext->cur_wireless_mode));ODM_CmnInfoHook (pDM_Odm,ODM_CMNINFO_SEC_CHNL_OFFSET , &(pHalData->nCur40MhzPrimeSC)); -ODM_CmnInfoHook (pDM_Odm,ODM_CMNINFO_SEC_MODE , &(Adapter->securitypriv.dot11PrivacyAlgrthm)); +ODM_CmnInfoHook (pDM_Odm,ODM_CMNINFO_SEC_MODE , &(Adapter->securitypriv.dot11_privacy_algrthm));ODM_CmnInfoHook (pDM_Odm,ODM_CMNINFO_BW , &(pHalData->CurrentChannelBW));ODM_CmnInfoHook (pDM_Odm,ODM_CMNINFO_CHNL , &(pHalData->CurrentChannel));ODM_CmnInfoHook (pDM_Odm,ODM_CMNINFO_NET_CLOSED , &(Adapter->net_closed));
drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +1 -1
@@ -1880,7 +1880,7 @@ void rtl8723b_fill_fake_txdesc(/* Encrypt the data frame if under security mode excepct null data. Suggested by CCW. */ /* */ if (bDataFrame) { -u32 EncAlg = padapter->securitypriv.dot11PrivacyAlgrthm; +u32 EncAlg = padapter->securitypriv.dot11_privacy_algrthm;switch (EncAlg) {case _NO_PRIVACY_:
drivers/staging/rtl8723bs/include/rtw_security.h +3 -3
@@ -92,7 +92,7 @@ struct rt_pmkid_list {struct security_priv {u32 dot11AuthAlgrthm;/* 802.11 auth, could be open, shared, 8021x and authswitch */ -u32 dot11PrivacyAlgrthm;/* This specify the privacy for shared auth. algorithm. */ +u32 dot11_privacy_algrthm;/* This specify the privacy for shared auth. algorithm. */ /* WEP */ u32 dot11PrivacyKeyIndex;/* this is only valid for legendary wep, 0~3 for key id. (tx key index) */
@@ -174,7 +174,7 @@ do {\case dot11AuthAlgrthm_Open:\case dot11AuthAlgrthm_Shared:\case dot11AuthAlgrthm_Auto:\ - encry_algo = (u8 )psecuritypriv->dot11PrivacyAlgrthm;\ + encry_algo = (u8 )psecuritypriv->dot11_privacy_algrthm;\break ;\case dot11AuthAlgrthm_8021X:\if (bmcst)\
@@ -183,7 +183,7 @@ do {\ encry_algo = (u8 )psta->dot118021XPrivacy;\break ;\case dot11AuthAlgrthm_WAPI:\ - encry_algo = (u8 )psecuritypriv->dot11PrivacyAlgrthm;\ + encry_algo = (u8 )psecuritypriv->dot11_privacy_algrthm;\break ;\ } \ }while (0 )
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c +24 -24
156 lines not on this page · raw message
drivers/staging/rtl8723bs/os_dep/os_intfs.c +1 -1
@@ -535,7 +535,7 @@ static void rtw_init_default_value(struct adapter *padapter) psecuritypriv->sw_decrypt = pregistrypriv->software_decrypt; psecuritypriv->dot11AuthAlgrthm = dot11AuthAlgrthm_Open;/* open system */ - psecuritypriv->dot11PrivacyAlgrthm = _NO_PRIVACY_; + psecuritypriv->dot11_privacy_algrthm = _NO_PRIVACY_; psecuritypriv->dot11PrivacyKeyIndex =0 ;
Signature · 1 line
2.54.0
Greg KH
maintainerQuoted 4 lines · Dalvin-Ehinoma Noah Aiguobas
Rename variable dot11PrivacyAlgrthm to
dot11_privacy_algrthmin structsecurity_privto resolve checkpatch.pl CamelCase finding.Signed-off-by Dalvin-Ehinoma Noah Aiguobas <[email protected]>
Does not apply to the latest tree :(
PATCH v2 1/1 staging: rtl8723bs: Rename camelcase struct member dot11PrivacyAlgrthm
In reply to Dalvin-Ehinoma Noah AiguobasFrom: Dalvin-Ehinoma Noah Aiguobas <[email protected]>
Rename struct member dot11PrivacyAlgrthm to dot11_privacy_algrthm in struct security_priv to resolve checkpatch.pl CamelCase finding.
---
Changes in v2:
- Rebased onto latest staging-testing.
- Refer to struct member instead of variable in commit description.
drivers/staging/rtl8723bs/core/rtw_ap.c | 12 ++--- drivers/staging/rtl8723bs/core/rtw_cmd.c | 8 ++-- .../staging/rtl8723bs/core/rtw_ioctl_set.c | 6 +-- drivers/staging/rtl8723bs/core/rtw_mlme.c | 16 +++---- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 4 +- drivers/staging/rtl8723bs/core/rtw_security.c | 2 +- drivers/staging/rtl8723bs/core/rtw_xmit.c | 2 +- drivers/staging/rtl8723bs/hal/hal_btcoex.c | 2 +- drivers/staging/rtl8723bs/hal/rtl8723b_dm.c | 2 +- .../staging/rtl8723bs/hal/rtl8723b_hal_init.c | 2 +- .../staging/rtl8723bs/include/rtw_security.h | 6 +-- .../staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 48 +++++++++---------- drivers/staging/rtl8723bs/os_dep/os_intfs.c | 2 +- 13 files changed, 56 insertions(+), 56 deletions(-)
drivers/staging/rtl8723bs/core/rtw_ap.c +6 -6
@@ -651,8 +651,8 @@ void start_bss_network(struct adapter *padapter)if (!pmlmepriv->cur_network.join_res) {/* setting only at first time */ /* WEP Key will be set before this function, do not clear CAM. */ -if ((psecuritypriv->dot11PrivacyAlgrthm != _WEP40_) && - (psecuritypriv->dot11PrivacyAlgrthm != _WEP104_)) +if ((psecuritypriv->dot11_privacy_algrthm != _WEP40_) && + (psecuritypriv->dot11_privacy_algrthm != _WEP104_))flush_all_cam_entry (padapter);/* clear CAM */ }
@@ -1800,8 +1800,8 @@ void rtw_ap_restore_network(struct adapter *padapter)start_bss_network (padapter); -if ((padapter->securitypriv.dot11PrivacyAlgrthm == _TKIP_) || - (padapter->securitypriv.dot11PrivacyAlgrthm == _AES_)) { +if ((padapter->securitypriv.dot11_privacy_algrthm == _TKIP_) || + (padapter->securitypriv.dot11_privacy_algrthm == _AES_)) {/* restore group key, WEP keys is restored in ips_leave() */ rtw_set_key(padapter, psecuritypriv,
@@ -1836,8 +1836,8 @@ void rtw_ap_restore_network(struct adapter *padapter)Update_RA_Entry (padapter, psta);/* pairwise key */ /* per sta pairwise key and settings */ -if ((psecuritypriv->dot11PrivacyAlgrthm == _TKIP_) || - (psecuritypriv->dot11PrivacyAlgrthm == _AES_)) { +if ((psecuritypriv->dot11_privacy_algrthm == _TKIP_) || + (psecuritypriv->dot11_privacy_algrthm == _AES_)) {rtw_setstakey_cmd (padapter, psta, true, false); } }
drivers/staging/rtl8723bs/core/rtw_cmd.c +4 -4
@@ -759,9 +759,9 @@ u8 rtw_joinbss_cmd(struct adapter *padapter, struct wlan_network *pnetwork)/* Added by Albert 2010/06/23 */ /* For the WEP mode, we will use the bg mode to do the connection to avoid some IOT issue. */ /* Especially for Realtek 8192u SoftAP. */ -if ((padapter->securitypriv.dot11PrivacyAlgrthm != _WEP40_) && - (padapter->securitypriv.dot11PrivacyAlgrthm != _WEP104_) && - (padapter->securitypriv.dot11PrivacyAlgrthm != _TKIP_)) { +if ((padapter->securitypriv.dot11_privacy_algrthm != _WEP40_) && + (padapter->securitypriv.dot11_privacy_algrthm != _WEP104_) && + (padapter->securitypriv.dot11_privacy_algrthm != _TKIP_)) {rtw_ht_use_default_setting (padapter);rtw_build_wmm_ie_ht (padapter, &psecnetwork->ies[12 ], &psecnetwork->ie_length);
@@ -879,7 +879,7 @@ u8 rtw_setstakey_cmd(struct adapter *padapter, struct sta_info *sta, u8 unicast_memcpy (psetstakey_para->addr, sta->hwaddr,ETH_ALEN );if (check_fwstate (pmlmepriv,WIFI_STATION_STATE )) - psetstakey_para->algorithm = (unsigned char )psecuritypriv->dot11PrivacyAlgrthm; + psetstakey_para->algorithm = (unsigned char )psecuritypriv->dot11_privacy_algrthm;else GET_ENCRY_ALGO (psecuritypriv, sta, psetstakey_para->algorithm, false);
drivers/staging/rtl8723bs/core/rtw_ioctl_set.c +3 -3
@@ -425,13 +425,13 @@ u8 rtw_set_802_11_add_wep(struct adapter *padapter, struct ndis_802_11_wep *wep)switch (wep->key_length) {case 5 : - psecuritypriv->dot11PrivacyAlgrthm = _WEP40_; + psecuritypriv->dot11_privacy_algrthm = _WEP40_;break ;case 13 : - psecuritypriv->dot11PrivacyAlgrthm = _WEP104_; + psecuritypriv->dot11_privacy_algrthm = _WEP104_;break ;default : - psecuritypriv->dot11PrivacyAlgrthm = _NO_PRIVACY_; + psecuritypriv->dot11_privacy_algrthm = _NO_PRIVACY_;break ; }
drivers/staging/rtl8723bs/core/rtw_mlme.c +8 -8
@@ -330,10 +330,10 @@ bool rtw_is_same_ibss(struct adapter *adapter, struct wlan_network *pnetwork) {struct security_priv *psecuritypriv = &adapter->securitypriv; -if ((psecuritypriv->dot11PrivacyAlgrthm != _NO_PRIVACY_) && +if ((psecuritypriv->dot11_privacy_algrthm != _NO_PRIVACY_) && (pnetwork->network.privacy ==0 ))return false; -else if ((psecuritypriv->dot11PrivacyAlgrthm == _NO_PRIVACY_) && +else if ((psecuritypriv->dot11_privacy_algrthm == _NO_PRIVACY_) && (pnetwork->network.privacy ==1 ))return false;
@@ -978,7 +978,7 @@ static struct sta_info *rtw_joinbss_update_stainfo(struct adapter *padapter, str padapter->securitypriv.bgrpkey_handshake = false; psta->ieee8021x_blocked = true; - psta->dot118021XPrivacy = padapter->securitypriv.dot11PrivacyAlgrthm; + psta->dot118021XPrivacy = padapter->securitypriv.dot11_privacy_algrthm;memset ((u8 *)&psta->dot118021x_UncstKey,0 ,sizeof (union Keytype ));
@@ -1120,7 +1120,7 @@ void rtw_reset_securitypriv(struct adapter *adapter)struct security_priv *psec_priv = &adapter->securitypriv; psec_priv->dot11_auth_algrthm = dot11AuthAlgrthm_Open;/* open system */ - psec_priv->dot11PrivacyAlgrthm = _NO_PRIVACY_; + psec_priv->dot11_privacy_algrthm = _NO_PRIVACY_; psec_priv->dot11PrivacyKeyIndex =0 ; psec_priv->dot118021XGrpPrivacy = _NO_PRIVACY_;
@@ -1335,7 +1335,7 @@ void rtw_stassoc_event_callback(struct adapter *adapter, u8 *pbuf)rtw_sta_media_status_rpt (adapter, psta,1 );if (adapter->securitypriv.dot11_auth_algrthm == dot11AuthAlgrthm_8021X) - psta->dot118021XPrivacy = adapter->securitypriv.dot11PrivacyAlgrthm; + psta->dot118021XPrivacy = adapter->securitypriv.dot11_privacy_algrthm; psta->ieee8021x_blocked = false;
@@ -1890,7 +1890,7 @@ signed int rtw_set_key(struct adapter *adapter, struct security_priv *psecuritypif (psecuritypriv->dot11_auth_algrthm == dot11AuthAlgrthm_8021X) psetkeyparm->algorithm = (unsigned char )psecuritypriv->dot118021XGrpPrivacy;else - psetkeyparm->algorithm = (u8 )psecuritypriv->dot11PrivacyAlgrthm; + psetkeyparm->algorithm = (u8 )psecuritypriv->dot11_privacy_algrthm; psetkeyparm->keyid = (u8 )keyid;/* 0~3 */ psetkeyparm->set_tx = set_tx;
@@ -2120,7 +2120,7 @@ void rtw_update_registrypriv_dev_network(struct adapter *adapter)struct security_priv *psecuritypriv = &adapter->securitypriv;struct wlan_network *cur_network = &adapter->mlmepriv.cur_network; - pdev_network->privacy = (psecuritypriv->dot11PrivacyAlgrthm >0 ?1 :0 ) ;/* adhoc no 802.1x */ + pdev_network->privacy = (psecuritypriv->dot11_privacy_algrthm >0 ?1 :0 ) ;/* adhoc no 802.1x */ pdev_network->rssi =0 ;
@@ -2345,7 +2345,7 @@ unsigned int rtw_restructure_ht_ie(struct adapter *padapter, u8 *in_ie, u8 *out_ ht_capie.ampdu_params_info = (max_rx_ampdu_factor &0x03 ); -if (padapter->securitypriv.dot11PrivacyAlgrthm == _AES_) +if (padapter->securitypriv.dot11_privacy_algrthm == _AES_) ht_capie.ampdu_params_info |= (IEEE80211_HT_CAP_AMPDU_DENSITY & (0x07 <<2 ));else ht_capie.ampdu_params_info |= (IEEE80211_HT_CAP_AMPDU_DENSITY &0x00 );
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c +2 -2
@@ -706,8 +706,8 @@ unsigned int OnAuth(struct adapter *padapter, union recv_frame *precv_frame) seq =le16_to_cpu (*(__le16 *)((SIZE_PTR )pframe +WLAN_HDR_A3_LEN + offset +2 ));if (auth_mode ==2 && - psecuritypriv->dot11PrivacyAlgrthm != _WEP40_ && - psecuritypriv->dot11PrivacyAlgrthm != _WEP104_) + psecuritypriv->dot11_privacy_algrthm != _WEP40_ && + psecuritypriv->dot11_privacy_algrthm != _WEP104_) auth_mode =0 ; if ((algorithm > 0 && auth_mode == 0) || /* rx a shared-key auth but shared not enabled */
drivers/staging/rtl8723bs/core/rtw_security.c +1 -1
@@ -1430,7 +1430,7 @@ void rtw_sec_restore_wep_key(struct adapter *adapter)struct security_priv *securitypriv = &adapter->securitypriv;signed int keyid; -if ((securitypriv->dot11PrivacyAlgrthm == _WEP40_) || (securitypriv->dot11PrivacyAlgrthm == _WEP104_)) { +if ((securitypriv->dot11_privacy_algrthm == _WEP40_) || (securitypriv->dot11_privacy_algrthm == _WEP104_)) {for (keyid =0 ; keyid <4 ; keyid++) {if (securitypriv->key_mask &BIT (keyid)) {if (keyid == securitypriv->dot11PrivacyKeyIndex)
drivers/staging/rtl8723bs/core/rtw_xmit.c +1 -1
@@ -419,7 +419,7 @@ static void update_attrib_vcs_info(struct adapter *padapter, struct xmit_frame */* IOT action */ if ((pmlmeinfo->assoc_AP_vendor ==HT_IOT_PEER_ATHEROS ) && pattrib->ampdu_en && - (padapter->securitypriv.dot11PrivacyAlgrthm == _AES_)) { + (padapter->securitypriv.dot11_privacy_algrthm == _AES_)) { pattrib->vcs_mode =CTS_TO_SELF ;break ; }
drivers/staging/rtl8723bs/hal/hal_btcoex.c +1 -1
@@ -316,7 +316,7 @@ static u8 halbtcoutsrc_Get(void *pBtcContext, u8 getType, void *pOutBuf)break ;case BTC_GET_BL_WIFI_ENABLE_ENCRYPTION : - *pu8 = padapter->securitypriv.dot11PrivacyAlgrthm !=0 ; + *pu8 = padapter->securitypriv.dot11_privacy_algrthm !=0 ;break ;case BTC_GET_BL_WIFI_UNDER_B_MODE :
drivers/staging/rtl8723bs/hal/rtl8723b_dm.c +1 -1
@@ -88,7 +88,7 @@ static void Update_ODM_ComInfo_8723b(struct adapter *Adapter)ODM_CmnInfoHook (pDM_Odm,ODM_CMNINFO_RX_UNI , &(dvobj->traffic_stat.rx_bytes));ODM_CmnInfoHook (pDM_Odm,ODM_CMNINFO_WM_MODE , &(pmlmeext->cur_wireless_mode));ODM_CmnInfoHook (pDM_Odm,ODM_CMNINFO_SEC_CHNL_OFFSET , &(pHalData->nCur40MhzPrimeSC)); -ODM_CmnInfoHook (pDM_Odm,ODM_CMNINFO_SEC_MODE , &(Adapter->securitypriv.dot11PrivacyAlgrthm)); +ODM_CmnInfoHook (pDM_Odm,ODM_CMNINFO_SEC_MODE , &(Adapter->securitypriv.dot11_privacy_algrthm));ODM_CmnInfoHook (pDM_Odm,ODM_CMNINFO_BW , &(pHalData->CurrentChannelBW));ODM_CmnInfoHook (pDM_Odm,ODM_CMNINFO_CHNL , &(pHalData->CurrentChannel));ODM_CmnInfoHook (pDM_Odm,ODM_CMNINFO_NET_CLOSED , &(Adapter->net_closed));
drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +1 -1
@@ -1873,7 +1873,7 @@ void rtl8723b_fill_fake_txdesc(/* Encrypt the data frame if under security mode excepct null data. Suggested by CCW. */ /* */ if (bDataFrame) { -u32 EncAlg = padapter->securitypriv.dot11PrivacyAlgrthm; +u32 EncAlg = padapter->securitypriv.dot11_privacy_algrthm;switch (EncAlg) {case _NO_PRIVACY_:
drivers/staging/rtl8723bs/include/rtw_security.h +3 -3
@@ -92,7 +92,7 @@ struct rt_pmkid_list {struct security_priv {u32 dot11_auth_algrthm;/* 802.11 auth, could be open, shared, 8021x and authswitch */ -u32 dot11PrivacyAlgrthm;/* This specify the privacy for shared auth. algorithm. */ +u32 dot11_privacy_algrthm;/* This specify the privacy for shared auth. algorithm. */ /* WEP */ u32 dot11PrivacyKeyIndex;/* this is only valid for legendary wep, 0~3 for key id. (tx key index) */
@@ -174,7 +174,7 @@ do {\case dot11AuthAlgrthm_Open:\case dot11AuthAlgrthm_Shared:\case dot11AuthAlgrthm_Auto:\ - encry_algo = (u8 )psecuritypriv->dot11PrivacyAlgrthm;\ + encry_algo = (u8 )psecuritypriv->dot11_privacy_algrthm;\break ;\case dot11AuthAlgrthm_8021X:\if (bmcst)\
@@ -183,7 +183,7 @@ do {\ encry_algo = (u8 )psta->dot118021XPrivacy;\break ;\case dot11AuthAlgrthm_WAPI:\ - encry_algo = (u8 )psecuritypriv->dot11PrivacyAlgrthm;\ + encry_algo = (u8 )psecuritypriv->dot11_privacy_algrthm;\break ;\ } \ }while (0 )
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c +24 -24
156 lines not on this page · raw message
drivers/staging/rtl8723bs/os_dep/os_intfs.c +1 -1
@@ -532,7 +532,7 @@ static void rtw_init_default_value(struct adapter *padapter) psecuritypriv->sw_decrypt = pregistrypriv->software_decrypt; psecuritypriv->dot11_auth_algrthm = dot11AuthAlgrthm_Open;/* open system */ - psecuritypriv->dot11PrivacyAlgrthm = _NO_PRIVACY_; + psecuritypriv->dot11_privacy_algrthm = _NO_PRIVACY_; psecuritypriv->dot11PrivacyKeyIndex =0 ;
Signature · 1 line
2.54.0