staging: rtl8192e: renamed variable IOTPeer
PATCH 5/5 staging: rtl8192e: renamed variable IOTPeer
Coding style issue, checkpatch Avoid CamelCase,
rename it. IOTPeer -> iot_peer
Signed-off-by Gary Rookard <[email protected]>
--- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 18 +++++----- drivers/staging/rtl8192e/rtl819x_HT.h | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 38 +++++++++++----------- 3 files changed, 29 insertions(+), 29 deletions(-)
drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +9 -9
@@ -1142,7 +1142,7 @@ static void _rtl92e_dm_check_edca_turbo(struct net_device *dev)if (priv->bis_cur_rdlstate || !priv->bcurrent_turbo_EDCA) {rtl92e_writel (dev,EDCAPARA_BE , - edca_setting_UL[ht_info->IOTPeer]); + edca_setting_UL[ht_info->iot_peer]); priv->bis_cur_rdlstate = false; } }else {
@@ -1150,10 +1150,10 @@ static void _rtl92e_dm_check_edca_turbo(struct net_device *dev) !priv->bcurrent_turbo_EDCA) {if (priv->rtllib->mode ==WIRELESS_MODE_G )rtl92e_writel (dev,EDCAPARA_BE , - edca_setting_DL_GMode[ht_info->IOTPeer]); + edca_setting_DL_GMode[ht_info->iot_peer]);else rtl92e_writel (dev,EDCAPARA_BE , - edca_setting_DL[ht_info->IOTPeer]); + edca_setting_DL[ht_info->iot_peer]); priv->bis_cur_rdlstate = true; } }
@@ -1164,17 +1164,17 @@ static void _rtl92e_dm_check_edca_turbo(struct net_device *dev) !priv->bcurrent_turbo_EDCA) {if (priv->rtllib->mode ==WIRELESS_MODE_G )rtl92e_writel (dev,EDCAPARA_BE , - edca_setting_DL_GMode[ht_info->IOTPeer]); + edca_setting_DL_GMode[ht_info->iot_peer]);else rtl92e_writel (dev,EDCAPARA_BE , - edca_setting_DL[ht_info->IOTPeer]); + edca_setting_DL[ht_info->iot_peer]); priv->bis_cur_rdlstate = true; } }else {if (priv->bis_cur_rdlstate || !priv->bcurrent_turbo_EDCA) {rtl92e_writel (dev,EDCAPARA_BE , - edca_setting_UL[ht_info->IOTPeer]); + edca_setting_UL[ht_info->iot_peer]); priv->bis_cur_rdlstate = false; } }
@@ -1217,7 +1217,7 @@ static void _rtl92e_dm_cts_to_self(struct net_device *dev) ht_info->iot_action &= ~HT_IOT_ACT_FORCED_CTS2SELF ;return ; } -if (ht_info->IOTPeer ==HT_IOT_PEER_BROADCOM ) { +if (ht_info->iot_peer ==HT_IOT_PEER_BROADCOM ) { curTxOkCnt = priv->stats.txbytesunicast - lastTxOkCnt; curRxOkCnt = priv->stats.rxbytesunicast - lastRxOkCnt;if (curRxOkCnt >4 * curTxOkCnt)
@@ -1713,7 +1713,7 @@ static void _rtl92e_dm_check_fsync(struct net_device *dev)static u8 reg_c38_State = RegC38_Default;if (priv->rtllib->link_state ==MAC80211_LINKED && - priv->rtllib->ht_info->IOTPeer ==HT_IOT_PEER_BROADCOM ) { + priv->rtllib->ht_info->iot_peer ==HT_IOT_PEER_BROADCOM ) {if (priv->rtllib->bfsync_enable ==0 ) {switch (priv->rtllib->fsync_state) {case Default_Fsync:
@@ -1819,7 +1819,7 @@ static void _rtl92e_dm_dynamic_tx_power(struct net_device *dev) priv->dynamic_tx_low_pwr = false;return ; } -if ((priv->rtllib->ht_info->IOTPeer ==HT_IOT_PEER_ATHEROS ) && +if ((priv->rtllib->ht_info->iot_peer ==HT_IOT_PEER_ATHEROS ) && (priv->rtllib->mode ==WIRELESS_MODE_G )) { txhipower_threshold =TX_POWER_ATHEROAP_THRESH_HIGH ; txlowpower_threshold =TX_POWER_ATHEROAP_THRESH_LOW ;
drivers/staging/rtl8192e/rtl819x_HT.h +1 -1
@@ -138,7 +138,7 @@ struct rt_hi_throughput {u8 rx_reorder_win_size;u8 rx_reorder_pending_time;u16 rx_reorder_drop_counter; -u8 IOTPeer; +u8 iot_peer;u32 iot_action;u8 iot_ra_func; } __packed;
drivers/staging/rtl8192e/rtl819x_HTProc.c +19 -19
@@ -170,41 +170,41 @@ static void ht_iot_peer_determine(struct rtllib_device *ieee)struct rtllib_network *net = &ieee->current_network;if (net->bssht.bd_rt2rt_aggregation) { - ht_info->IOTPeer =HT_IOT_PEER_REALTEK ; + ht_info->iot_peer =HT_IOT_PEER_REALTEK ;if (net->bssht.rt2rt_ht_mode &RT_HT_CAP_USE_92SE ) - ht_info->IOTPeer =HT_IOT_PEER_REALTEK_92SE ; + ht_info->iot_peer =HT_IOT_PEER_REALTEK_92SE ;if (net->bssht.rt2rt_ht_mode &RT_HT_CAP_USE_SOFTAP ) - ht_info->IOTPeer =HT_IOT_PEER_92U_SOFTAP ; + ht_info->iot_peer =HT_IOT_PEER_92U_SOFTAP ; }else if (net->broadcom_cap_exist) { - ht_info->IOTPeer =HT_IOT_PEER_BROADCOM ; + ht_info->iot_peer =HT_IOT_PEER_BROADCOM ; }else if (!memcmp (net->bssid,UNKNOWN_BORADCOM ,3 ) || !memcmp (net->bssid,LINKSYSWRT330_LINKSYSWRT300_BROADCOM ,3 ) || !memcmp (net->bssid,LINKSYSWRT350_LINKSYSWRT150_BROADCOM ,3 )) { - ht_info->IOTPeer =HT_IOT_PEER_BROADCOM ; + ht_info->iot_peer =HT_IOT_PEER_BROADCOM ; }else if ((memcmp (net->bssid,BELKINF5D8233V1_RALINK ,3 ) ==0 ) || (memcmp (net->bssid,BELKINF5D82334V3_RALINK ,3 ) ==0 ) || (memcmp (net->bssid,PCI_RALINK ,3 ) ==0 ) || (memcmp (net->bssid,EDIMAX_RALINK ,3 ) ==0 ) || (memcmp (net->bssid,AIRLINK_RALINK ,3 ) ==0 ) || net->ralink_cap_exist) { - ht_info->IOTPeer =HT_IOT_PEER_RALINK ; + ht_info->iot_peer =HT_IOT_PEER_RALINK ; }else if ((net->atheros_cap_exist) || (memcmp (net->bssid,DLINK_ATHEROS_1 ,3 ) ==0 ) || (memcmp (net->bssid,DLINK_ATHEROS_2 ,3 ) ==0 )) { - ht_info->IOTPeer =HT_IOT_PEER_ATHEROS ; + ht_info->iot_peer =HT_IOT_PEER_ATHEROS ; }else if ((memcmp (net->bssid,CISCO_BROADCOM ,3 ) ==0 ) || net->cisco_cap_exist) { - ht_info->IOTPeer =HT_IOT_PEER_CISCO ; + ht_info->iot_peer =HT_IOT_PEER_CISCO ; }else if ((memcmp (net->bssid,LINKSYS_MARVELL_4400N ,3 ) ==0 ) || net->marvell_cap_exist) { - ht_info->IOTPeer =HT_IOT_PEER_MARVELL ; + ht_info->iot_peer =HT_IOT_PEER_MARVELL ; }else if (net->airgo_cap_exist) { - ht_info->IOTPeer =HT_IOT_PEER_AIRGO ; + ht_info->iot_peer =HT_IOT_PEER_AIRGO ; }else { - ht_info->IOTPeer =HT_IOT_PEER_UNKNOWN ; + ht_info->iot_peer =HT_IOT_PEER_UNKNOWN ; } -netdev_dbg (ieee->dev,"IOTPEER: %x\n" , ht_info->IOTPeer); +netdev_dbg (ieee->dev,"IOTPEER: %x\n" , ht_info->iot_peer); } static u8 ht_iot_act_is_mgnt_use_cck_6m(struct rtllib_device *ieee,
@@ -212,7 +212,7 @@ static u8 ht_iot_act_is_mgnt_use_cck_6m(struct rtllib_device *ieee, {u8 retValue =0 ; -if (ieee->ht_info->IOTPeer ==HT_IOT_PEER_BROADCOM ) +if (ieee->ht_info->iot_peer ==HT_IOT_PEER_BROADCOM ) retValue =1 ;return retValue;
@@ -222,7 +222,7 @@ static u8 ht_iot_act_is_ccd_fsync(struct rtllib_device *ieee) {u8 retValue =0 ; -if (ieee->ht_info->IOTPeer ==HT_IOT_PEER_BROADCOM ) +if (ieee->ht_info->iot_peer ==HT_IOT_PEER_BROADCOM ) retValue =1 ;return retValue; }
@@ -233,7 +233,7 @@ static void HTIOTActDetermineRaFunc(struct rtllib_device *ieee, bool bPeerRx2ss) ht_info->iot_ra_func &=HT_IOT_RAFUNC_DISABLE_ALL ; -if (ht_info->IOTPeer ==HT_IOT_PEER_RALINK && !bPeerRx2ss) +if (ht_info->iot_peer ==HT_IOT_PEER_RALINK && !bPeerRx2ss) ht_info->iot_ra_func |=HT_IOT_RAFUNC_PEER_1R ;if (ht_info->iot_action &HT_IOT_ACT_AMSDU_ENABLE )
@@ -243,7 +243,7 @@ static void HTIOTActDetermineRaFunc(struct rtllib_device *ieee, bool bPeerRx2ss)void HTResetIOTSetting (struct rt_hi_throughput *ht_info) { ht_info->iot_action =0 ; - ht_info->IOTPeer =HT_IOT_PEER_UNKNOWN ; + ht_info->iot_peer =HT_IOT_PEER_UNKNOWN ; ht_info->iot_ra_func =0 ; }
@@ -501,8 +501,8 @@ void HTOnAssocRsp(struct rtllib_device *ieee) ht_info->current_ampdu_enable = ht_info->ampdu_enable;if (ieee->rtllib_ap_sec_type && (ieee->rtllib_ap_sec_type (ieee) & (SEC_ALG_WEP |SEC_ALG_TKIP ))) { -if ((ht_info->IOTPeer ==HT_IOT_PEER_ATHEROS ) || - (ht_info->IOTPeer ==HT_IOT_PEER_UNKNOWN )) +if ((ht_info->iot_peer ==HT_IOT_PEER_ATHEROS ) || + (ht_info->iot_peer ==HT_IOT_PEER_UNKNOWN )) ht_info->current_ampdu_enable = false; }
@@ -590,7 +590,7 @@ void HTInitializeHTInfo(struct rtllib_device *ieee) ht_info->current_rt2rt_long_slot_time = false; ht_info->RT2RT_HT_Mode = (enum rt_ht_capability )0 ; - ht_info->IOTPeer =0 ; + ht_info->iot_peer =0 ; ht_info->iot_action =0 ; ht_info->iot_ra_func =0 ;
Signature · 1 line
2.41.0