rename variable HTGetHighestMCSRate and (4) other
cover rename variable HTGetHighestMCSRate and (4) other
Hi,
This patch series renames (5) different variables with the checkpatch coding style issue Avoid CamelCase.
Patch 1/5) rename variable HTGetHighestMCSRate Patch 2/5) rename variable HTFilterMCSRate Patch 3/5) rename variable HTSetConnectBwMode Patch 4/5) rename variable HTOnAssocRsp
Patch 5/5) rename variable HTInitializeHTInfo
Gary Rookard (5):
staging: rtl8192e: rename variable HTGetHighestMCSRate
staging: rtl8192e: rename variable HTFilterMCSRate
staging: rtl8192e: rename variable HTSetConnectBwMode
staging: rtl8192e: rename variable HTOnAssocRsp
staging: rtl8192e: rename variable HTInitializeHTInfo
drivers/staging/rtl8192e/rtl819x_HTProc.c | 18 +++++++++--------- drivers/staging/rtl8192e/rtllib.h | 8 ++++---- drivers/staging/rtl8192e/rtllib_module.c | 2 +- drivers/staging/rtl8192e/rtllib_softmac.c | 4 ++-- drivers/staging/rtl8192e/rtllib_wx.c | 2 +- 5 files changed, 17 insertions(+), 17 deletions(-)
Signature · 1 line
2.41.0
PATCH 1/5 staging: rtl8192e: rename variable HTGetHighestMCSRate
Coding style issue, checkpatch Avoid CamelCase, rename it. HTGetHighestMCSRate -> ht_get_highest_mcs_rate
--- drivers/staging/rtl8192e/rtl819x_HTProc.c | 4 ++-- drivers/staging/rtl8192e/rtllib.h | 2 +- drivers/staging/rtl8192e/rtllib_wx.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/rtl8192e/rtl819x_HTProc.c +2 -2
@@ -377,7 +377,7 @@ static u8 ht_pick_mcs_rate(struct rtllib_device *ieee, u8 *pOperateMCS)return true; } -u8 HTGetHighestMCSRate (struct rtllib_device *ieee,u8 *pMCSRateSet, +u8 ht_get_highest_mcs_rate (struct rtllib_device *ieee,u8 *pMCSRateSet,u8 *pMCSFilter) {u8 i, j;
@@ -545,7 +545,7 @@ void HTOnAssocRsp(struct rtllib_device *ieee) pMcsFilter =MCS_FILTER_1SS ; else pMcsFilter =MCS_FILTER_ALL ; - ieee->HTHighestOperaRate =HTGetHighestMCSRate (ieee, + ieee->HTHighestOperaRate =ht_get_highest_mcs_rate (ieee, ieee->dot11ht_oper_rate_set, pMcsFilter); ieee->HTCurrentOperaRate = ieee->HTHighestOperaRate;
drivers/staging/rtl8192e/rtllib.h +1 -1
@@ -1767,7 +1767,7 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee, struct rtllib_network *pNetwork);void HT_update_self_and_peer_setting (struct rtllib_device *ieee,struct rtllib_network *pNetwork); -u8 HTGetHighestMCSRate (struct rtllib_device *ieee,u8 *pMCSRateSet, +u8 ht_get_highest_mcs_rate (struct rtllib_device *ieee,u8 *pMCSRateSet,u8 *pMCSFilter);extern u8 MCS_FILTER_ALL [];extern u16 MCS_DATA_RATE [2 ][2 ][77 ];
drivers/staging/rtl8192e/rtllib_wx.c +1 -1
@@ -134,7 +134,7 @@ static inline char *rtl819x_translate_scan(struct rtllib_device *ieee, ((ht_cap->ShortGI40Mhz) ? 1 : 0) : ((ht_cap->ShortGI20Mhz) ?1 :0 ); - max_mcs =HTGetHighestMCSRate (ieee, ht_cap->MCS, + max_mcs =ht_get_highest_mcs_rate (ieee, ht_cap->MCS,MCS_FILTER_ALL ); rate =MCS_DATA_RATE [is40M][isShortGI][max_mcs &0x7f ];if (rate > max_rate)
Signature · 1 line
2.41.0
Re: [PATCH 1/5] staging: rtl8192e: rename variable HTGetHighestMCSRate
Quoted 24 lines · Gary Rookard
oding style issue, checkpatch Avoid CamelCase, rename it. HTGetHighestMCSRate ->
ht_get_highest_mcs_rateSigned-off-by Gary Rookard<[email protected]>--- drivers/staging/rtl8192e/rtl819x_HTProc.c | 4 ++-- drivers/staging/rtl8192e/rtllib.h | 2 +- drivers/staging/rtl8192e/rtllib_wx.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)drivers/staging/rtl8192e/rtl819x_HTProc.c +1
-1@@ -377,7 +377,7 @@ static u8 ht_pick_mcs_rate(struct rtllib_device *ieee, u8 *pOperateMCS)return true; } -u8 HTGetHighestMCSRate (struct rtllib_device *ieee,u8 *pMCSRateSet, +u8 ht_get_highest_mcs_rate (struct rtllib_device *ieee,u8 *pMCSRateSet,u8 *pMCSFilter) {u8 i, j;
drivers/staging/rtl8192e/rtl819x_HTProc.c void HTOnAssocRsp(struct rtllib_device *ieee) · line 547
Quoted 3 lines
drivers/staging/rtl8192e/rtl819x_HTProc.c +0
-0@@ -545,7 +545,7 @@ void HTOnAssocRsp(struct rtllib_device *ieee) pMcsFilter =MCS_FILTER_1SS ; else pMcsFilter =MCS_FILTER_ALL ;
kernel@matrix-ESPRIMO-P710:~/Documents/git/kernels/staging$ cat ~/Downloads/20231213-\[PATCH\ 1* | git am Applying: staging: rtl8192e: rename variable HTGetHighestMCSRate error: patch failed: drivers/staging/rtl8192e/rtl819x_HTProc.c:545 error: drivers/staging/rtl8192e/rtl819x_HTProc.c: patch does not apply Patch failed at 0001 staging: rtl8192e: rename variable HTGetHighestMCSRate hint: Use 'git am --show-current-patch=diff' to see the failed patch
PATCH 2/5 staging: rtl8192e: rename variable HTFilterMCSRate
In reply to Gary RookardCoding style issue, checkpatch Avoid CamelCase,
rename it. HTFilterMCSRate -> ht_filter_mcs_rate
--- drivers/staging/rtl8192e/rtl819x_HTProc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8192e/rtl819x_HTProc.c +2 -2
@@ -417,7 +417,7 @@ u8 ht_get_highest_mcs_rate(struct rtllib_device *ieee, u8 *pMCSRateSet,return mcsRate |0x80 ; } -static u8 HTFilterMCSRate (struct rtllib_device *ieee,u8 *pSupportMCS, +static u8 ht_filter_mcs_rate (struct rtllib_device *ieee,u8 *pSupportMCS,u8 *pOperateMCS) {u8 i;
@@ -538,7 +538,7 @@ void HTOnAssocRsp(struct rtllib_device *ieee)ht_iot_act_determine_ra_func (ieee, ((pPeerHTCap->MCS[1 ]) !=0 )); -HTFilterMCSRate (ieee, pPeerHTCap->MCS, ieee->dot11ht_oper_rate_set); +ht_filter_mcs_rate (ieee, pPeerHTCap->MCS, ieee->dot11ht_oper_rate_set); ht_info->peer_mimo_ps = pPeerHTCap->MimoPwrSave;if (ht_info->peer_mimo_ps ==MIMO_PS_STATIC )
Signature · 1 line
2.41.0
PATCH 3/5 staging: rtl8192e: rename variable HTSetConnectBwMode
In reply to Gary RookardCoding style issue, checkpatch Avoid CamelCase, rename it. HTSetConnectBwMode -> ht_set_connect_bw_mode
--- drivers/staging/rtl8192e/rtl819x_HTProc.c | 6 +++--- drivers/staging/rtl8192e/rtllib.h | 2 +- drivers/staging/rtl8192e/rtllib_softmac.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-)
drivers/staging/rtl8192e/rtl819x_HTProc.c +3 -3
@@ -437,7 +437,7 @@ static u8 ht_filter_mcs_rate(struct rtllib_device *ieee, u8 *pSupportMCS,return true; } -void HTSetConnectBwMode (struct rtllib_device *ieee, +void ht_set_connect_bw_mode (struct rtllib_device *ieee,enum ht_channel_width bandwidth,enum ht_extchnl_offset Offset);
@@ -473,7 +473,7 @@ void HTOnAssocRsp(struct rtllib_device *ieee)print_hex_dump_bytes ("%s: " , __func__,DUMP_PREFIX_NONE , pPeerHTCap,sizeof (struct ht_capab_ele ));#endif -HTSetConnectBwMode (ieee, (enum ht_channel_width )(pPeerHTCap->ChlWidth), +ht_set_connect_bw_mode (ieee, (enum ht_channel_width )(pPeerHTCap->ChlWidth), (enum ht_extchnl_offset )(pPeerHTInfo->ExtChlOffset)); ht_info->cur_tx_bw40mhz = ((pPeerHTInfo->RecommemdedTxWidth ==1 ) ? true : false);
@@ -728,7 +728,7 @@ static void HTSetConnectBwModeCallback(struct rtllib_device *ieee) ht_info->sw_bw_in_progress = false; } -void HTSetConnectBwMode (struct rtllib_device *ieee, +void ht_set_connect_bw_mode (struct rtllib_device *ieee,enum ht_channel_width bandwidth,enum ht_extchnl_offset Offset) {
drivers/staging/rtl8192e/rtllib.h +1 -1
@@ -1751,7 +1751,7 @@ int rtllib_wx_get_rts(struct rtllib_device *ieee, struct iw_request_info *info, union iwreq_data *wrqu, char *extra);#define MAX_RECEIVE_BUFFER_SIZE 9100 -void HTSetConnectBwMode (struct rtllib_device *ieee, +void ht_set_connect_bw_mode (struct rtllib_device *ieee,enum ht_channel_width bandwidth,enum ht_extchnl_offset Offset);void ht_update_default_setting (struct rtllib_device *ieee);
drivers/staging/rtl8192e/rtllib_softmac.c +1 -1
@@ -1112,7 +1112,7 @@ static void rtllib_associate_procedure_wq(void *data)mutex_lock (&ieee->wx_mutex);rtllib_stop_scan (ieee); -HTSetConnectBwMode (ieee,HT_CHANNEL_WIDTH_20 ,HT_EXTCHNL_OFFSET_NO_EXT ); +ht_set_connect_bw_mode (ieee,HT_CHANNEL_WIDTH_20 ,HT_EXTCHNL_OFFSET_NO_EXT );if (ieee->rf_power_state == rf_off) { ieee->rtllib_ips_leave_wq (ieee->dev);mutex_unlock (&ieee->wx_mutex);
Signature · 1 line
2.41.0
PATCH 4/5 staging: rtl8192e: rename variable HTOnAssocRsp
In reply to Gary RookardCoding style issue, checkpatch Avoid CamelCase,
rename it. HTOnAssocRsp -> ht_on_assoc_rsp
--- drivers/staging/rtl8192e/rtl819x_HTProc.c | 2 +- drivers/staging/rtl8192e/rtllib.h | 2 +- drivers/staging/rtl8192e/rtllib_softmac.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/rtl8192e/rtl819x_HTProc.c +1 -1
@@ -441,7 +441,7 @@ void ht_set_connect_bw_mode(struct rtllib_device *ieee,enum ht_channel_width bandwidth, enum ht_extchnl_offset Offset); -void HTOnAssocRsp (struct rtllib_device *ieee) +void ht_on_assoc_rsp (struct rtllib_device *ieee) {struct rt_hi_throughput *ht_info = ieee->ht_info;struct ht_capab_ele *pPeerHTCap =NULL ;
drivers/staging/rtl8192e/rtllib.h +1 -1
@@ -1760,7 +1760,7 @@ void ht_construct_capability_element(struct rtllib_device *ieee, u8 isEncrypt, bool bAssoc);void ht_construct_rt2rt_agg_element (struct rtllib_device *ieee,u8 *posRT2RTAgg,u8 *len); -void HTOnAssocRsp (struct rtllib_device *ieee); +void ht_on_assoc_rsp (struct rtllib_device *ieee);void HTInitializeHTInfo (struct rtllib_device *ieee);void HTInitializeBssDesc (struct bss_ht *pBssHT); void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee,
drivers/staging/rtl8192e/rtllib_softmac.c +1 -1
@@ -1067,7 +1067,7 @@ static void rtllib_associate_complete_wq(void *data) }if (ieee->ht_info->current_ht_support && ieee->ht_info->enable_ht) {netdev_info (ieee->dev,"Successfully associated, ht enabled\n" ); -HTOnAssocRsp (ieee); +ht_on_assoc_rsp (ieee); }else { netdev_info(ieee->dev, "Successfully associated, ht not enabled(%d, %d)\n",
Signature · 1 line
2.41.0
PATCH 5/5 staging: rtl8192e: rename variable HTInitializeHTInfo
In reply to Gary RookardCoding style issue, checkpatch Avoid CamelCase, rename it. HTInitializeHTInfo -> ht_initialize_ht_info
--- drivers/staging/rtl8192e/rtl819x_HTProc.c | 2 +- drivers/staging/rtl8192e/rtllib.h | 2 +- drivers/staging/rtl8192e/rtllib_module.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/rtl8192e/rtl819x_HTProc.c +1 -1
@@ -553,7 +553,7 @@ void ht_on_assoc_rsp(struct rtllib_device *ieee) ht_info->current_op_mode = pPeerHTInfo->OptMode; } -void HTInitializeHTInfo (struct rtllib_device *ieee) +void ht_initialize_ht_info (struct rtllib_device *ieee) {struct rt_hi_throughput *ht_info = ieee->ht_info;
drivers/staging/rtl8192e/rtllib.h +1 -1
@@ -1761,7 +1761,7 @@ void ht_construct_capability_element(struct rtllib_device *ieee,void ht_construct_rt2rt_agg_element (struct rtllib_device *ieee,u8 *posRT2RTAgg,u8 *len);void ht_on_assoc_rsp (struct rtllib_device *ieee); -void HTInitializeHTInfo (struct rtllib_device *ieee); +void ht_initialize_ht_info (struct rtllib_device *ieee);void HTInitializeBssDesc (struct bss_ht *pBssHT);void HTResetSelfAndSavePeerSetting (struct rtllib_device *ieee,struct rtllib_network *pNetwork);
drivers/staging/rtl8192e/rtllib_module.c +1 -1
@@ -123,7 +123,7 @@ struct net_device *alloc_rtllib(int sizeof_priv) goto free_softmac;ht_update_default_setting (ieee); -HTInitializeHTInfo (ieee); +ht_initialize_ht_info (ieee);rtllib_ts_init (ieee);for (i =0 ; i <IEEE_IBSS_MAC_HASH_SIZE ; i++)INIT_LIST_HEAD (&ieee->ibss_mac_hash[i]);
Signature · 1 line
2.41.0
Greg KH
maintainerQuoted 5 lines · Gary Rookard
Hi,
This patch series renames (5) different variables with the checkpatch coding style issue Avoid CamelCase.
Quoted 7 lines
Patch 1/5) rename variable HTGetHighestMCSRate Patch 2/5) rename variable HTFilterMCSRate Patch 3/5) rename variable HTSetConnectBwMode Patch 4/5) rename variable HTOnAssocRsp
Patch 5/5) rename variable HTInitializeHTInfoSigned-off-by Gary Rookard <[email protected]>
As was pointed out, not all of these patches will apply against my tree (same for your previous series.) Please rebase all of these and resubmit the remaining ones.
thanks,
greg k-h