bss_ht struct cleanups
PATCH 1/13 staging: rtl8192e: remove blank line in bss_ht struct
In reply to William DurandFixes a checkpatch CHECK issue.
--- drivers/staging/rtl8192e/rtl819x_HT.h | 1 - 1 file changed, 1 deletion(-)
drivers/staging/rtl8192e/rtl819x_HT.h +0 -1
@@ -179,7 +179,6 @@ struct rt_hi_throughput { } __packed;struct bss_ht { -u8 bdSupportHT;u8 bdHTCapBuf[32 ];
--
2.30.0
cover bss_ht struct cleanups
This patchset fixes the checkpatch issues related to the bss_ht struct defined in rtl8192e/rtl819x_HT.h (avoid camelcase). The first patch removes a blank line and the last patch reformats the struct a bit to be more consistent with the other types defined in the same file.
William Durand (13):
staging: rtl8192e: remove blank line in bss_ht struct
staging: rtl8192e: rename bdSupportHT to bd_support_ht in bss_ht struct
staging: rtl8192e: rename bdHTCapBuf to bd_ht_cap_buf in bss_ht struct
staging: rtl8192e: rename bdHTCapLen to bd_ht_cap_len in bss_ht struct
staging: rtl8192e: rename bdHTInfoBuf to bd_ht_info_buf in bss_ht struct
staging: rtl8192e: rename bdHTInfoLen to bd_ht_info_len in bss_ht struct
staging: rtl8192e: rename bdHTSpecVer to bd_ht_spec_ver in bss_ht struct
staging: rtl8192e: rename bdBandWidth to bd_bandwidth in bss_ht struct
staging: rtl8192e: rename bdRT2RTAggregation to bd_rt2rt_aggregation in bss_ht struct
staging: rtl8192e: rename bdRT2RTLongSlotTime to bd_rt2rt_long_slot_time in bss_ht struct
staging: rtl8192e: rename RT2RT_HT_Mode to rt2rt_ht_mode in bss_ht struct
staging: rtl8192e: rename bdHT1R to bd_ht_1r in bss_ht struct
staging: rtl8192e: reformat bss_ht struct
drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 5 +- drivers/staging/rtl8192e/rtl819x_HT.h | 23 +++-- drivers/staging/rtl8192e/rtl819x_HTProc.c | 58 ++++++------ drivers/staging/rtl8192e/rtllib_rx.c | 96 ++++++++++---------- drivers/staging/rtl8192e/rtllib_softmac.c | 12 +-- drivers/staging/rtl8192e/rtllib_wx.c | 6 +- 6 files changed, 100 insertions(+), 100 deletions(-)
--
2.30.0
PATCH 2/13 staging: rtl8192e: rename bdSupportHT to bd_support_ht in bss_ht struct
Fixes a checkpatch CHECK issue.
--- drivers/staging/rtl8192e/rtl819x_HT.h | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 4 ++-- drivers/staging/rtl8192e/rtllib_rx.c | 14 +++++++------- drivers/staging/rtl8192e/rtllib_softmac.c | 4 ++-- 4 files changed, 12 insertions(+), 12 deletions(-)
drivers/staging/rtl8192e/rtl819x_HT.h +1 -1
@@ -179,7 +179,7 @@ struct rt_hi_throughput { } __packed;struct bss_ht { -u8 bdSupportHT; +u8 bd_support_ht;u8 bdHTCapBuf[32 ];u16 bdHTCapLen;
drivers/staging/rtl8192e/rtl819x_HTProc.c +2 -2
@@ -689,7 +689,7 @@ void HTInitializeHTInfo(struct rtllib_device *ieee)void HTInitializeBssDesc (struct bss_ht *pBssHT) { - pBssHT->bdSupportHT = false; + pBssHT->bd_support_ht = false;memset (pBssHT->bdHTCapBuf,0 ,sizeof (pBssHT->bdHTCapBuf)); pBssHT->bdHTCapLen =0 ;memset (pBssHT->bdHTInfoBuf,0 ,sizeof (pBssHT->bdHTInfoBuf));
@@ -712,7 +712,7 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee,/* unmark bEnableHT flag here is the same reason why unmarked in * function rtllib_softmac_new_net. WB 2008.09.10 */ -if (pNetwork->bssht.bdSupportHT) { +if (pNetwork->bssht.bd_support_ht) { pHTInfo->bCurrentHTSupport = true; pHTInfo->ePeerHTSpecVer = pNetwork->bssht.bdHTSpecVer;
drivers/staging/rtl8192e/rtllib_rx.c +7 -7
@@ -1858,10 +1858,10 @@ static void rtllib_parse_mife_generic(struct rtllib_device *ieee, } }if (*tmp_htcap_len !=0 ) { - network->bssht.bdSupportHT = true; + network->bssht.bd_support_ht = true; network->bssht.bdHT1R = ((((struct ht_capab_ele *)(network->bssht.bdHTCapBuf))->MCS[1 ]) ==0 ); }else { - network->bssht.bdSupportHT = false; + network->bssht.bd_support_ht = false; network->bssht.bdHT1R = false; } }
@@ -1885,7 +1885,7 @@ static void rtllib_parse_mife_generic(struct rtllib_device *ieee, } } -if (network->bssht.bdSupportHT) { +if (network->bssht.bd_support_ht) { if (info_element->len >= 4 && info_element->data[0] == 0x00 && info_element->data[1] == 0xe0 &&
@@ -2025,7 +2025,7 @@ static void rtllib_parse_mfie_ht_cap(struct rtllib_info_element *info_element, sizeof(ht->bdHTCapBuf));memcpy (ht->bdHTCapBuf, info_element->data, ht->bdHTCapLen); - ht->bdSupportHT = true; + ht->bd_support_ht = true; ht->bdHT1R = ((((struct ht_capab_ele *) ht->bdHTCapBuf))->MCS[1 ]) ==0 ;
@@ -2033,7 +2033,7 @@ static void rtllib_parse_mfie_ht_cap(struct rtllib_info_element *info_element, (((struct ht_capab_ele *) (ht->bdHTCapBuf))->ChlWidth); }else { - ht->bdSupportHT = false; + ht->bd_support_ht = false; ht->bdHT1R = false; ht->bdBandWidth =HT_CHANNEL_WIDTH_20 ; }
@@ -2380,7 +2380,7 @@ static inline int rtllib_network_init(return 1 ; } -if (network->bssht.bdSupportHT) { +if (network->bssht.bd_support_ht) {if (network->mode ==IEEE_A ) network->mode =IEEE_N_5G ;else if (network->mode & (IEEE_G |IEEE_B ))
@@ -2456,7 +2456,7 @@ static inline void update_network(struct rtllib_device *ieee, dst->last_dtim_sta_time = src->last_dtim_sta_time;memcpy (&dst->tim, &src->tim,sizeof (struct rtllib_tim_parameters )); - dst->bssht.bdSupportHT = src->bssht.bdSupportHT; + dst->bssht.bd_support_ht = src->bssht.bd_support_ht; dst->bssht.bdRT2RTAggregation = src->bssht.bdRT2RTAggregation; dst->bssht.bdHTCapLen = src->bssht.bdHTCapLen; memcpy(dst->bssht.bdHTCapBuf, src->bssht.bdHTCapBuf,
drivers/staging/rtl8192e/rtllib_softmac.c +2 -2
@@ -1692,7 +1692,7 @@ inline void rtllib_softmac_new_net(struct rtllib_device *ieee, ieee->current_network.channel, ieee->current_network.qos_data.supported, ieee->pHTInfo->bEnableHT, - ieee->current_network.bssht.bdSupportHT, + ieee->current_network.bssht.bd_support_ht, ieee->current_network.mode, ieee->current_network.flags);
@@ -1706,7 +1706,7 @@ inline void rtllib_softmac_new_net(struct rtllib_device *ieee,/* Join the network for the first time */ ieee->AsocRetryCount =0 ;if ((ieee->current_network.qos_data.supported ==1 ) && - ieee->current_network.bssht.bdSupportHT) + ieee->current_network.bssht.bd_support_ht)HTResetSelfAndSavePeerSetting (ieee, &(ieee->current_network));else
--
2.30.0
PATCH 3/13 staging: rtl8192e: rename bdHTCapBuf to bd_ht_cap_buf in bss_ht struct
In reply to William DurandFixes a checkpatch CHECK issue.
--- drivers/staging/rtl8192e/rtl819x_HT.h | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 4 ++-- drivers/staging/rtl8192e/rtllib_rx.c | 17 +++++++++-------- drivers/staging/rtl8192e/rtllib_softmac.c | 2 +- drivers/staging/rtl8192e/rtllib_wx.c | 6 +++--- 5 files changed, 16 insertions(+), 15 deletions(-)
drivers/staging/rtl8192e/rtl819x_HT.h +1 -1
@@ -181,7 +181,7 @@ struct rt_hi_throughput {struct bss_ht {u8 bd_support_ht; -u8 bdHTCapBuf[32 ]; +u8 bd_ht_cap_buf[32 ];u16 bdHTCapLen;u8 bdHTInfoBuf[32 ];u16 bdHTInfoLen;
drivers/staging/rtl8192e/rtl819x_HTProc.c +2 -2
@@ -690,7 +690,7 @@ void HTInitializeBssDesc(struct bss_ht *pBssHT) { pBssHT->bd_support_ht = false; -memset (pBssHT->bdHTCapBuf,0 ,sizeof (pBssHT->bdHTCapBuf)); +memset (pBssHT->bd_ht_cap_buf,0 ,sizeof (pBssHT->bd_ht_cap_buf)); pBssHT->bdHTCapLen =0 ;memset (pBssHT->bdHTInfoBuf,0 ,sizeof (pBssHT->bdHTInfoBuf)); pBssHT->bdHTInfoLen =0 ;
@@ -719,7 +719,7 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee,if (pNetwork->bssht.bdHTCapLen >0 && pNetwork->bssht.bdHTCapLen <=sizeof (pHTInfo->PeerHTCapBuf))memcpy (pHTInfo->PeerHTCapBuf, - pNetwork->bssht.bdHTCapBuf, + pNetwork->bssht.bd_ht_cap_buf, pNetwork->bssht.bdHTCapLen); if (pNetwork->bssht.bdHTInfoLen > 0 &&
drivers/staging/rtl8192e/rtllib_rx.c +9 -8
@@ -1851,15 +1851,16 @@ static void rtllib_parse_mife_generic(struct rtllib_device *ieee, MAX_IE_LEN);if (*tmp_htcap_len !=0 ) { network->bssht.bdHTSpecVer =HT_SPEC_VER_EWC ; - network->bssht.bdHTCapLen =min_t (u16, *tmp_htcap_len,sizeof (network->bssht.bdHTCapBuf)); -memcpy (network->bssht.bdHTCapBuf, + network->bssht.bdHTCapLen =min_t (u16, *tmp_htcap_len, +sizeof (network->bssht.bd_ht_cap_buf)); +memcpy (network->bssht.bd_ht_cap_buf, info_element->data, network->bssht.bdHTCapLen); } }if (*tmp_htcap_len !=0 ) { network->bssht.bd_support_ht = true; - network->bssht.bdHT1R = ((((struct ht_capab_ele *)(network->bssht.bdHTCapBuf))->MCS[1 ]) ==0 ); + network->bssht.bdHT1R = ((((struct ht_capab_ele *)(network->bssht.bd_ht_cap_buf))->MCS[1 ]) ==0 ); }else { network->bssht.bd_support_ht = false; network->bssht.bdHT1R = false;
@@ -2022,16 +2023,16 @@ static void rtllib_parse_mfie_ht_cap(struct rtllib_info_element *info_element,if (*tmp_htcap_len !=0 ) { ht->bdHTSpecVer =HT_SPEC_VER_EWC ; ht->bdHTCapLen =min_t (u16, *tmp_htcap_len, -sizeof (ht->bdHTCapBuf)); -memcpy (ht->bdHTCapBuf, info_element->data, ht->bdHTCapLen); +sizeof (ht->bd_ht_cap_buf)); +memcpy (ht->bd_ht_cap_buf, info_element->data, ht->bdHTCapLen); ht->bd_support_ht = true; ht->bdHT1R = ((((struct ht_capab_ele *) - ht->bdHTCapBuf))->MCS[1 ]) ==0 ; + ht->bd_ht_cap_buf))->MCS[1 ]) ==0 ; ht->bdBandWidth = (enum ht_channel_width ) (((struct ht_capab_ele *) - (ht->bdHTCapBuf))->ChlWidth); + (ht->bd_ht_cap_buf))->ChlWidth); }else { ht->bd_support_ht = false; ht->bdHT1R = false;
@@ -2459,7 +2460,7 @@ static inline void update_network(struct rtllib_device *ieee, dst->bssht.bd_support_ht = src->bssht.bd_support_ht; dst->bssht.bdRT2RTAggregation = src->bssht.bdRT2RTAggregation; dst->bssht.bdHTCapLen = src->bssht.bdHTCapLen; -memcpy (dst->bssht.bdHTCapBuf, src->bssht.bdHTCapBuf, +memcpy (dst->bssht.bd_ht_cap_buf, src->bssht.bd_ht_cap_buf, src->bssht.bdHTCapLen); dst->bssht.bdHTInfoLen = src->bssht.bdHTInfoLen; memcpy(dst->bssht.bdHTInfoBuf, src->bssht.bdHTInfoBuf,
drivers/staging/rtl8192e/rtllib_softmac.c +1 -1
@@ -2238,7 +2238,7 @@ rtllib_rx_assoc_resp(struct rtllib_device *ieee, struct sk_buff *skb,return 1 ; }memcpy (ieee->pHTInfo->PeerHTCapBuf, - network->bssht.bdHTCapBuf, + network->bssht.bd_ht_cap_buf, network->bssht.bdHTCapLen); memcpy(ieee->pHTInfo->PeerHTInfoBuf, network->bssht.bdHTInfoBuf,
drivers/staging/rtl8192e/rtllib_wx.c +3 -3
@@ -140,12 +140,12 @@ static inline char *rtl819x_translate_scan(struct rtllib_device *ieee,bool is40M = false, isShortGI = false;u8 max_mcs =0 ; -if (!memcmp (network->bssht.bdHTCapBuf, EWC11NHTCap,4 )) +if (!memcmp (network->bssht.bd_ht_cap_buf, EWC11NHTCap,4 )) ht_cap = (struct ht_capab_ele *) - &network->bssht.bdHTCapBuf[4 ]; + &network->bssht.bd_ht_cap_buf[4 ];else ht_cap = (struct ht_capab_ele *) - &network->bssht.bdHTCapBuf[0 ]; + &network->bssht.bd_ht_cap_buf[0 ]; is40M = (ht_cap->ChlWidth) ?1 :0 ; isShortGI = (ht_cap->ChlWidth) ? ((ht_cap->ShortGI40Mhz) ? 1 : 0) :
--
2.30.0
PATCH 4/13 staging: rtl8192e: rename bdHTCapLen to bd_ht_cap_len in bss_ht struct
In reply to William DurandFixes a checkpatch CHECK issue.
--- drivers/staging/rtl8192e/rtl819x_HT.h | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 8 ++++---- drivers/staging/rtl8192e/rtllib_rx.c | 12 ++++++------ drivers/staging/rtl8192e/rtllib_softmac.c | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-)
drivers/staging/rtl8192e/rtl819x_HT.h +1 -1
@@ -182,7 +182,7 @@ struct bss_ht {u8 bd_support_ht;u8 bd_ht_cap_buf[32 ]; -u16 bdHTCapLen; +u16 bd_ht_cap_len;u8 bdHTInfoBuf[32 ];u16 bdHTInfoLen;
drivers/staging/rtl8192e/rtl819x_HTProc.c +4 -4
@@ -691,7 +691,7 @@ void HTInitializeBssDesc(struct bss_ht *pBssHT) pBssHT->bd_support_ht = false;memset (pBssHT->bd_ht_cap_buf,0 ,sizeof (pBssHT->bd_ht_cap_buf)); - pBssHT->bdHTCapLen =0 ; + pBssHT->bd_ht_cap_len =0 ;memset (pBssHT->bdHTInfoBuf,0 ,sizeof (pBssHT->bdHTInfoBuf)); pBssHT->bdHTInfoLen =0 ;
@@ -716,11 +716,11 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee, pHTInfo->bCurrentHTSupport = true; pHTInfo->ePeerHTSpecVer = pNetwork->bssht.bdHTSpecVer; -if (pNetwork->bssht.bdHTCapLen >0 && - pNetwork->bssht.bdHTCapLen <=sizeof (pHTInfo->PeerHTCapBuf)) +if (pNetwork->bssht.bd_ht_cap_len >0 && + pNetwork->bssht.bd_ht_cap_len <=sizeof (pHTInfo->PeerHTCapBuf))memcpy (pHTInfo->PeerHTCapBuf, pNetwork->bssht.bd_ht_cap_buf, - pNetwork->bssht.bdHTCapLen); + pNetwork->bssht.bd_ht_cap_len);if (pNetwork->bssht.bdHTInfoLen >0 && pNetwork->bssht.bdHTInfoLen <=
drivers/staging/rtl8192e/rtllib_rx.c +6 -6
@@ -1851,11 +1851,11 @@ static void rtllib_parse_mife_generic(struct rtllib_device *ieee, MAX_IE_LEN);if (*tmp_htcap_len !=0 ) { network->bssht.bdHTSpecVer =HT_SPEC_VER_EWC ; - network->bssht.bdHTCapLen =min_t (u16, *tmp_htcap_len, + network->bssht.bd_ht_cap_len =min_t (u16, *tmp_htcap_len,sizeof (network->bssht.bd_ht_cap_buf));memcpy (network->bssht.bd_ht_cap_buf, info_element->data, - network->bssht.bdHTCapLen); + network->bssht.bd_ht_cap_len); } }if (*tmp_htcap_len !=0 ) {
@@ -2022,9 +2022,9 @@ static void rtllib_parse_mfie_ht_cap(struct rtllib_info_element *info_element, *tmp_htcap_len =min_t (u8, info_element->len,MAX_IE_LEN );if (*tmp_htcap_len !=0 ) { ht->bdHTSpecVer =HT_SPEC_VER_EWC ; - ht->bdHTCapLen =min_t (u16, *tmp_htcap_len, + ht->bd_ht_cap_len =min_t (u16, *tmp_htcap_len,sizeof (ht->bd_ht_cap_buf)); -memcpy (ht->bd_ht_cap_buf, info_element->data, ht->bdHTCapLen); +memcpy (ht->bd_ht_cap_buf, info_element->data, ht->bd_ht_cap_len); ht->bd_support_ht = true; ht->bdHT1R = ((((struct ht_capab_ele *)
@@ -2459,9 +2459,9 @@ static inline void update_network(struct rtllib_device *ieee, dst->bssht.bd_support_ht = src->bssht.bd_support_ht; dst->bssht.bdRT2RTAggregation = src->bssht.bdRT2RTAggregation; - dst->bssht.bdHTCapLen = src->bssht.bdHTCapLen; + dst->bssht.bd_ht_cap_len = src->bssht.bd_ht_cap_len;memcpy (dst->bssht.bd_ht_cap_buf, src->bssht.bd_ht_cap_buf, - src->bssht.bdHTCapLen); + src->bssht.bd_ht_cap_len); dst->bssht.bdHTInfoLen = src->bssht.bdHTInfoLen;memcpy (dst->bssht.bdHTInfoBuf, src->bssht.bdHTInfoBuf, src->bssht.bdHTInfoLen);
drivers/staging/rtl8192e/rtllib_softmac.c +1 -1
@@ -2239,7 +2239,7 @@ rtllib_rx_assoc_resp(struct rtllib_device *ieee, struct sk_buff *skb, }memcpy (ieee->pHTInfo->PeerHTCapBuf, network->bssht.bd_ht_cap_buf, - network->bssht.bdHTCapLen); + network->bssht.bd_ht_cap_len);memcpy (ieee->pHTInfo->PeerHTInfoBuf, network->bssht.bdHTInfoBuf, network->bssht.bdHTInfoLen);
--
2.30.0
PATCH 6/13 staging: rtl8192e: rename bdHTInfoLen to bd_ht_info_len in bss_ht struct
In reply to William DurandFixes a checkpatch CHECK issue.
--- drivers/staging/rtl8192e/rtl819x_HT.h | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 10 +++++----- drivers/staging/rtl8192e/rtllib_rx.c | 14 +++++++------- drivers/staging/rtl8192e/rtllib_softmac.c | 2 +- 4 files changed, 14 insertions(+), 14 deletions(-)
drivers/staging/rtl8192e/rtl819x_HT.h +1 -1
@@ -184,7 +184,7 @@ struct bss_ht {u8 bd_ht_cap_buf[32 ];u16 bd_ht_cap_len;u8 bd_ht_info_buf[32 ]; -u16 bdHTInfoLen; +u16 bd_ht_info_len;enum ht_spec_ver bdHTSpecVer;enum ht_channel_width bdBandWidth;
drivers/staging/rtl8192e/rtl819x_HTProc.c +5 -5
@@ -693,7 +693,7 @@ void HTInitializeBssDesc(struct bss_ht *pBssHT)memset (pBssHT->bd_ht_cap_buf,0 ,sizeof (pBssHT->bd_ht_cap_buf)); pBssHT->bd_ht_cap_len =0 ;memset (pBssHT->bd_ht_info_buf,0 ,sizeof (pBssHT->bd_ht_info_buf)); - pBssHT->bdHTInfoLen =0 ; + pBssHT->bd_ht_info_len =0 ; pBssHT->bdHTSpecVer =HT_SPEC_VER_IEEE ;
@@ -722,12 +722,12 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee, pNetwork->bssht.bd_ht_cap_buf, pNetwork->bssht.bd_ht_cap_len); -if (pNetwork->bssht.bdHTInfoLen >0 && - pNetwork->bssht.bdHTInfoLen <= +if (pNetwork->bssht.bd_ht_info_len >0 && + pNetwork->bssht.bd_ht_info_len <=sizeof (pHTInfo->PeerHTInfoBuf))memcpy (pHTInfo->PeerHTInfoBuf, pNetwork->bssht.bd_ht_info_buf, - pNetwork->bssht.bdHTInfoLen); + pNetwork->bssht.bd_ht_info_len);if (pHTInfo->bRegRT2RTAggregation) { pHTInfo->bCurrentRT2RTAggregation =
@@ -786,7 +786,7 @@ void HT_update_self_and_peer_setting(struct rtllib_device *ieee, (struct ht_info_ele *)pNetwork->bssht.bd_ht_info_buf;if (pHTInfo->bCurrentHTSupport) { -if (pNetwork->bssht.bdHTInfoLen !=0 ) +if (pNetwork->bssht.bd_ht_info_len !=0 ) pHTInfo->CurrentOpMode = pPeerHTInfo->OptMode; } }
drivers/staging/rtl8192e/rtllib_rx.c +7 -7
@@ -1878,11 +1878,11 @@ static void rtllib_parse_mife_generic(struct rtllib_device *ieee, MAX_IE_LEN);if (*tmp_htinfo_len !=0 ) { network->bssht.bdHTSpecVer =HT_SPEC_VER_EWC ; - network->bssht.bdHTInfoLen =min_t (u16, *tmp_htinfo_len, -sizeof (network->bssht.bd_ht_info_buf)); + network->bssht.bd_ht_info_len =min_t (u16, *tmp_htinfo_len, +sizeof (network->bssht.bd_ht_info_buf));memcpy (network->bssht.bd_ht_info_buf, info_element->data, - network->bssht.bdHTInfoLen); + network->bssht.bd_ht_info_len); } } }
@@ -2235,13 +2235,13 @@ int rtllib_parse_info_param(struct rtllib_device *ieee, MAX_IE_LEN);if (tmp_htinfo_len) { network->bssht.bdHTSpecVer =HT_SPEC_VER_IEEE ; - network->bssht.bdHTInfoLen = tmp_htinfo_len > + network->bssht.bd_ht_info_len = tmp_htinfo_len >sizeof (network->bssht.bd_ht_info_buf) ?sizeof (network->bssht.bd_ht_info_buf) : tmp_htinfo_len;memcpy (network->bssht.bd_ht_info_buf, info_element->data, - network->bssht.bdHTInfoLen); + network->bssht.bd_ht_info_len); }break ;
@@ -2463,9 +2463,9 @@ static inline void update_network(struct rtllib_device *ieee, dst->bssht.bd_ht_cap_len = src->bssht.bd_ht_cap_len;memcpy (dst->bssht.bd_ht_cap_buf, src->bssht.bd_ht_cap_buf, src->bssht.bd_ht_cap_len); - dst->bssht.bdHTInfoLen = src->bssht.bdHTInfoLen; + dst->bssht.bd_ht_info_len = src->bssht.bd_ht_info_len;memcpy (dst->bssht.bd_ht_info_buf, src->bssht.bd_ht_info_buf, - src->bssht.bdHTInfoLen); + src->bssht.bd_ht_info_len); dst->bssht.bdHTSpecVer = src->bssht.bdHTSpecVer; dst->bssht.bdRT2RTLongSlotTime = src->bssht.bdRT2RTLongSlotTime; dst->broadcom_cap_exist = src->broadcom_cap_exist;
drivers/staging/rtl8192e/rtllib_softmac.c +1 -1
@@ -2242,7 +2242,7 @@ rtllib_rx_assoc_resp(struct rtllib_device *ieee, struct sk_buff *skb, network->bssht.bd_ht_cap_len);memcpy (ieee->pHTInfo->PeerHTInfoBuf, network->bssht.bd_ht_info_buf, - network->bssht.bdHTInfoLen); + network->bssht.bd_ht_info_len);if (ieee->handle_assoc_response !=NULL ) ieee->handle_assoc_response(ieee->dev, (struct rtllib_assoc_response_frame *)header,
--
2.30.0
PATCH 8/13 staging: rtl8192e: rename bdBandWidth to bd_bandwidth in bss_ht struct
In reply to William DurandFixes a checkpatch CHECK issue.
--- drivers/staging/rtl8192e/rtl819x_HT.h | 2 +- drivers/staging/rtl8192e/rtllib_rx.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/rtl8192e/rtl819x_HT.h +1 -1
@@ -187,7 +187,7 @@ struct bss_ht {u16 bd_ht_info_len;enum ht_spec_ver bd_ht_spec_ver; -enum ht_channel_width bdBandWidth; +enum ht_channel_width bd_bandwidth;u8 bdRT2RTAggregation;u8 bdRT2RTLongSlotTime;
drivers/staging/rtl8192e/rtllib_rx.c +2 -2
@@ -2031,13 +2031,13 @@ static void rtllib_parse_mfie_ht_cap(struct rtllib_info_element *info_element, ht->bdHT1R = ((((struct ht_capab_ele *) ht->bd_ht_cap_buf))->MCS[1 ]) ==0 ; - ht->bdBandWidth = (enum ht_channel_width ) + ht->bd_bandwidth = (enum ht_channel_width ) (((struct ht_capab_ele *) (ht->bd_ht_cap_buf))->ChlWidth); }else { ht->bd_support_ht = false; ht->bdHT1R = false; - ht->bdBandWidth =HT_CHANNEL_WIDTH_20 ; + ht->bd_bandwidth =HT_CHANNEL_WIDTH_20 ; } }
--
2.30.0
PATCH 7/13 staging: rtl8192e: rename bdHTSpecVer to bd_ht_spec_ver in bss_ht struct
In reply to William DurandFixes a checkpatch CHECK issue.
--- drivers/staging/rtl8192e/rtl819x_HT.h | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 4 ++-- drivers/staging/rtl8192e/rtllib_rx.c | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-)
drivers/staging/rtl8192e/rtl819x_HT.h +1 -1
@@ -186,7 +186,7 @@ struct bss_ht {u8 bd_ht_info_buf[32 ];u16 bd_ht_info_len; -enum ht_spec_ver bdHTSpecVer; +enum ht_spec_ver bd_ht_spec_ver;enum ht_channel_width bdBandWidth;u8 bdRT2RTAggregation;
drivers/staging/rtl8192e/rtl819x_HTProc.c +2 -2
@@ -695,7 +695,7 @@ void HTInitializeBssDesc(struct bss_ht *pBssHT)memset (pBssHT->bd_ht_info_buf,0 ,sizeof (pBssHT->bd_ht_info_buf)); pBssHT->bd_ht_info_len =0 ; - pBssHT->bdHTSpecVer =HT_SPEC_VER_IEEE ; + pBssHT->bd_ht_spec_ver =HT_SPEC_VER_IEEE ; pBssHT->bdRT2RTAggregation = false; pBssHT->bdRT2RTLongSlotTime = false;
@@ -714,7 +714,7 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee,*/ if (pNetwork->bssht.bd_support_ht) { pHTInfo->bCurrentHTSupport = true; - pHTInfo->ePeerHTSpecVer = pNetwork->bssht.bdHTSpecVer; + pHTInfo->ePeerHTSpecVer = pNetwork->bssht.bd_ht_spec_ver;if (pNetwork->bssht.bd_ht_cap_len >0 && pNetwork->bssht.bd_ht_cap_len <=sizeof (pHTInfo->PeerHTCapBuf))
drivers/staging/rtl8192e/rtllib_rx.c +5 -5
@@ -1850,7 +1850,7 @@ static void rtllib_parse_mife_generic(struct rtllib_device *ieee, *tmp_htcap_len =min_t (u8, info_element->len,MAX_IE_LEN );if (*tmp_htcap_len !=0 ) { - network->bssht.bdHTSpecVer =HT_SPEC_VER_EWC ; + network->bssht.bd_ht_spec_ver =HT_SPEC_VER_EWC ; network->bssht.bd_ht_cap_len =min_t (u16, *tmp_htcap_len,sizeof (network->bssht.bd_ht_cap_buf)); memcpy(network->bssht.bd_ht_cap_buf,
@@ -1877,7 +1877,7 @@ static void rtllib_parse_mife_generic(struct rtllib_device *ieee, *tmp_htinfo_len =min_t (u8, info_element->len,MAX_IE_LEN );if (*tmp_htinfo_len !=0 ) { - network->bssht.bdHTSpecVer =HT_SPEC_VER_EWC ; + network->bssht.bd_ht_spec_ver =HT_SPEC_VER_EWC ; network->bssht.bd_ht_info_len =min_t (u16, *tmp_htinfo_len,sizeof (network->bssht.bd_ht_info_buf)); memcpy(network->bssht.bd_ht_info_buf,
@@ -2022,7 +2022,7 @@ static void rtllib_parse_mfie_ht_cap(struct rtllib_info_element *info_element, *tmp_htcap_len =min_t (u8, info_element->len,MAX_IE_LEN );if (*tmp_htcap_len !=0 ) { - ht->bdHTSpecVer =HT_SPEC_VER_EWC ; + ht->bd_ht_spec_ver =HT_SPEC_VER_EWC ; ht->bd_ht_cap_len =min_t (u16, *tmp_htcap_len,sizeof (ht->bd_ht_cap_buf));memcpy (ht->bd_ht_cap_buf, info_element->data, ht->bd_ht_cap_len);
@@ -2234,7 +2234,7 @@ int rtllib_parse_info_param(struct rtllib_device *ieee, tmp_htinfo_len =min_t (u8, info_element->len,MAX_IE_LEN );if (tmp_htinfo_len) { - network->bssht.bdHTSpecVer =HT_SPEC_VER_IEEE ; + network->bssht.bd_ht_spec_ver =HT_SPEC_VER_IEEE ; network->bssht.bd_ht_info_len = tmp_htinfo_len >sizeof (network->bssht.bd_ht_info_buf) ? sizeof(network->bssht.bd_ht_info_buf) :
@@ -2466,7 +2466,7 @@ static inline void update_network(struct rtllib_device *ieee, dst->bssht.bd_ht_info_len = src->bssht.bd_ht_info_len;memcpy (dst->bssht.bd_ht_info_buf, src->bssht.bd_ht_info_buf, src->bssht.bd_ht_info_len); - dst->bssht.bdHTSpecVer = src->bssht.bdHTSpecVer; + dst->bssht.bd_ht_spec_ver = src->bssht.bd_ht_spec_ver; dst->bssht.bdRT2RTLongSlotTime = src->bssht.bdRT2RTLongSlotTime; dst->broadcom_cap_exist = src->broadcom_cap_exist; dst->ralink_cap_exist = src->ralink_cap_exist;
--
2.30.0
PATCH 9/13 staging: rtl8192e: rename bdRT2RTAggregation to bd_rt2rt_aggregation in bss_ht struct
In reply to William DurandFixes a checkpatch CHECK issue.
--- drivers/staging/rtl8192e/rtl819x_HT.h | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 10 +++++----- drivers/staging/rtl8192e/rtllib_rx.c | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-)
drivers/staging/rtl8192e/rtl819x_HT.h +1 -1
@@ -189,7 +189,7 @@ struct bss_ht {enum ht_spec_ver bd_ht_spec_ver;enum ht_channel_width bd_bandwidth; -u8 bdRT2RTAggregation; +u8 bd_rt2rt_aggregation;u8 bdRT2RTLongSlotTime;u8 RT2RT_HT_Mode;u8 bdHT1R;
drivers/staging/rtl8192e/rtl819x_HTProc.c +5 -5
@@ -158,7 +158,7 @@ bool IsHTHalfNmodeAPs(struct rtllib_device *ieee) !memcmp(net->bssid, LINKSYSWRT350_LINKSYSWRT150_BROADCOM, 3) || (net->broadcom_cap_exist)) retValue = true; - else if (net->bssht.bdRT2RTAggregation) + else if (net->bssht.bd_rt2rt_aggregation) retValue = true; else retValue = false;
@@ -171,7 +171,7 @@ static void HTIOTPeerDetermine(struct rtllib_device *ieee)struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;struct rtllib_network *net = &ieee->current_network; -if (net->bssht.bdRT2RTAggregation) { +if (net->bssht.bd_rt2rt_aggregation) { pHTInfo->IOTPeer =HT_IOT_PEER_REALTEK ;if (net->bssht.RT2RT_HT_Mode &RT_HT_CAP_USE_92SE ) pHTInfo->IOTPeer =HT_IOT_PEER_REALTEK_92SE ;
@@ -591,7 +591,7 @@ void HTOnAssocRsp(struct rtllib_device *ieee) pHTInfo->CurrentAMPDUFactor = pHTInfo->AMPDU_Factor; }else { -if (ieee->current_network.bssht.bdRT2RTAggregation) { +if (ieee->current_network.bssht.bd_rt2rt_aggregation) {if (ieee->pairwise_key_type !=KEY_TYPE_NA ) pHTInfo->CurrentAMPDUFactor = pPeerHTCap->MaxRxAMPDUFactor;
@@ -697,7 +697,7 @@ void HTInitializeBssDesc(struct bss_ht *pBssHT) pBssHT->bd_ht_spec_ver =HT_SPEC_VER_IEEE ; - pBssHT->bdRT2RTAggregation = false; + pBssHT->bd_rt2rt_aggregation = false; pBssHT->bdRT2RTLongSlotTime = false; pBssHT->RT2RT_HT_Mode = (enum rt_ht_capability )0 ; }
@@ -731,7 +731,7 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee,if (pHTInfo->bRegRT2RTAggregation) { pHTInfo->bCurrentRT2RTAggregation = - pNetwork->bssht.bdRT2RTAggregation; + pNetwork->bssht.bd_rt2rt_aggregation; pHTInfo->bCurrentRT2RTLongSlotTime = pNetwork->bssht.bdRT2RTLongSlotTime; pHTInfo->RT2RT_HT_Mode = pNetwork->bssht.RT2RT_HT_Mode;
drivers/staging/rtl8192e/rtllib_rx.c +3 -3
@@ -1900,7 +1900,7 @@ static void rtllib_parse_mife_generic(struct rtllib_device *ieee, }if (ht_realtek_agg_len >=5 ) { network->realtek_cap_exit = true; - network->bssht.bdRT2RTAggregation = true; + network->bssht.bd_rt2rt_aggregation = true;if ((ht_realtek_agg_buf[4 ] ==1 ) && (ht_realtek_agg_buf[5 ] &0x02 ))
@@ -2291,7 +2291,7 @@ int rtllib_parse_info_param(struct rtllib_device *ieee,if (!network->atheros_cap_exist && !network->broadcom_cap_exist && !network->cisco_cap_exist && !network->ralink_cap_exist && - !network->bssht.bdRT2RTAggregation) + !network->bssht.bd_rt2rt_aggregation) network->unknown_cap_exist = true;else network->unknown_cap_exist = false;
@@ -2459,7 +2459,7 @@ static inline void update_network(struct rtllib_device *ieee,memcpy (&dst->tim, &src->tim,sizeof (struct rtllib_tim_parameters )); dst->bssht.bd_support_ht = src->bssht.bd_support_ht; - dst->bssht.bdRT2RTAggregation = src->bssht.bdRT2RTAggregation; + dst->bssht.bd_rt2rt_aggregation = src->bssht.bd_rt2rt_aggregation; dst->bssht.bd_ht_cap_len = src->bssht.bd_ht_cap_len;memcpy (dst->bssht.bd_ht_cap_buf, src->bssht.bd_ht_cap_buf, src->bssht.bd_ht_cap_len);
--
2.30.0
PATCH 5/13 staging: rtl8192e: rename bdHTInfoBuf to bd_ht_info_buf in bss_ht struct
In reply to William DurandFixes a checkpatch CHECK issue.
--- drivers/staging/rtl8192e/rtl819x_HT.h | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 6 +++--- drivers/staging/rtl8192e/rtllib_rx.c | 13 +++++++------ drivers/staging/rtl8192e/rtllib_softmac.c | 2 +- 4 files changed, 12 insertions(+), 11 deletions(-)
drivers/staging/rtl8192e/rtl819x_HT.h +1 -1
@@ -183,7 +183,7 @@ struct bss_ht {u8 bd_ht_cap_buf[32 ];u16 bd_ht_cap_len; -u8 bdHTInfoBuf[32 ]; +u8 bd_ht_info_buf[32 ];u16 bdHTInfoLen;enum ht_spec_ver bdHTSpecVer;
drivers/staging/rtl8192e/rtl819x_HTProc.c +3 -3
@@ -692,7 +692,7 @@ void HTInitializeBssDesc(struct bss_ht *pBssHT) pBssHT->bd_support_ht = false;memset (pBssHT->bd_ht_cap_buf,0 ,sizeof (pBssHT->bd_ht_cap_buf)); pBssHT->bd_ht_cap_len =0 ; -memset (pBssHT->bdHTInfoBuf,0 ,sizeof (pBssHT->bdHTInfoBuf)); +memset (pBssHT->bd_ht_info_buf,0 ,sizeof (pBssHT->bd_ht_info_buf)); pBssHT->bdHTInfoLen =0 ; pBssHT->bdHTSpecVer =HT_SPEC_VER_IEEE ;
@@ -726,7 +726,7 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee, pNetwork->bssht.bdHTInfoLen <= sizeof(pHTInfo->PeerHTInfoBuf))memcpy (pHTInfo->PeerHTInfoBuf, - pNetwork->bssht.bdHTInfoBuf, + pNetwork->bssht.bd_ht_info_buf, pNetwork->bssht.bdHTInfoLen);if (pHTInfo->bRegRT2RTAggregation) {
@@ -783,7 +783,7 @@ void HT_update_self_and_peer_setting(struct rtllib_device *ieee, {struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;struct ht_info_ele *pPeerHTInfo = - (struct ht_info_ele *)pNetwork->bssht.bdHTInfoBuf; + (struct ht_info_ele *)pNetwork->bssht.bd_ht_info_buf;if (pHTInfo->bCurrentHTSupport) {if (pNetwork->bssht.bdHTInfoLen !=0 )
drivers/staging/rtl8192e/rtllib_rx.c +7 -6
@@ -1878,8 +1878,9 @@ static void rtllib_parse_mife_generic(struct rtllib_device *ieee, MAX_IE_LEN);if (*tmp_htinfo_len !=0 ) { network->bssht.bdHTSpecVer =HT_SPEC_VER_EWC ; - network->bssht.bdHTInfoLen =min_t (u16, *tmp_htinfo_len,sizeof (network->bssht.bdHTInfoBuf)); -memcpy (network->bssht.bdHTInfoBuf, + network->bssht.bdHTInfoLen =min_t (u16, *tmp_htinfo_len, +sizeof (network->bssht.bd_ht_info_buf)); +memcpy (network->bssht.bd_ht_info_buf, info_element->data, network->bssht.bdHTInfoLen); }
@@ -2235,10 +2236,10 @@ int rtllib_parse_info_param(struct rtllib_device *ieee,if (tmp_htinfo_len) { network->bssht.bdHTSpecVer =HT_SPEC_VER_IEEE ; network->bssht.bdHTInfoLen = tmp_htinfo_len > -sizeof (network->bssht.bdHTInfoBuf) ? -sizeof (network->bssht.bdHTInfoBuf) : +sizeof (network->bssht.bd_ht_info_buf) ? +sizeof (network->bssht.bd_ht_info_buf) : tmp_htinfo_len; -memcpy (network->bssht.bdHTInfoBuf, +memcpy (network->bssht.bd_ht_info_buf, info_element->data, network->bssht.bdHTInfoLen); }
@@ -2463,7 +2464,7 @@ static inline void update_network(struct rtllib_device *ieee,memcpy (dst->bssht.bd_ht_cap_buf, src->bssht.bd_ht_cap_buf, src->bssht.bd_ht_cap_len); dst->bssht.bdHTInfoLen = src->bssht.bdHTInfoLen; -memcpy (dst->bssht.bdHTInfoBuf, src->bssht.bdHTInfoBuf, +memcpy (dst->bssht.bd_ht_info_buf, src->bssht.bd_ht_info_buf, src->bssht.bdHTInfoLen); dst->bssht.bdHTSpecVer = src->bssht.bdHTSpecVer; dst->bssht.bdRT2RTLongSlotTime = src->bssht.bdRT2RTLongSlotTime;
drivers/staging/rtl8192e/rtllib_softmac.c +1 -1
@@ -2241,7 +2241,7 @@ rtllib_rx_assoc_resp(struct rtllib_device *ieee, struct sk_buff *skb, network->bssht.bd_ht_cap_buf, network->bssht.bd_ht_cap_len);memcpy (ieee->pHTInfo->PeerHTInfoBuf, - network->bssht.bdHTInfoBuf, + network->bssht.bd_ht_info_buf, network->bssht.bdHTInfoLen);if (ieee->handle_assoc_response !=NULL ) ieee->handle_assoc_response(ieee->dev,
--
2.30.0
PATCH 13/13 staging: rtl8192e: reformat bss_ht struct
In reply to William DurandThis change uses a space instead of tabs between the type and name of each member of the struct.
--- drivers/staging/rtl8192e/rtl819x_HT.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
drivers/staging/rtl8192e/rtl819x_HT.h +9 -9
@@ -179,20 +179,20 @@ struct rt_hi_throughput { } __packed;struct bss_ht { -u8 bd_support_ht; +u8 bd_support_ht; -u8 bd_ht_cap_buf[32 ]; -u16 bd_ht_cap_len; -u8 bd_ht_info_buf[32 ]; -u16 bd_ht_info_len; +u8 bd_ht_cap_buf[32 ]; +u16 bd_ht_cap_len; +u8 bd_ht_info_buf[32 ]; +u16 bd_ht_info_len;enum ht_spec_ver bd_ht_spec_ver;enum ht_channel_width bd_bandwidth; -u8 bd_rt2rt_aggregation; -u8 bd_rt2rt_long_slot_time; -u8 rt2rt_ht_mode; -u8 bd_ht_1r; +u8 bd_rt2rt_aggregation; +u8 bd_rt2rt_long_slot_time; +u8 rt2rt_ht_mode; +u8 bd_ht_1r; };extern u8 MCS_FILTER_ALL [16 ];
--
2.30.0
PATCH 12/13 staging: rtl8192e: rename bdHT1R to bd_ht_1r in bss_ht struct
In reply to William DurandFixes a checkpatch CHECK issue.
--- drivers/staging/rtl8192e/rtl819x_HT.h | 2 +- drivers/staging/rtl8192e/rtllib_rx.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-)
drivers/staging/rtl8192e/rtl819x_HT.h +1 -1
@@ -192,7 +192,7 @@ struct bss_ht {u8 bd_rt2rt_aggregation;u8 bd_rt2rt_long_slot_time;u8 rt2rt_ht_mode; -u8 bdHT1R; +u8 bd_ht_1r; };extern u8 MCS_FILTER_ALL [16 ];
drivers/staging/rtl8192e/rtllib_rx.c +4 -4
@@ -1860,10 +1860,10 @@ static void rtllib_parse_mife_generic(struct rtllib_device *ieee, }if (*tmp_htcap_len !=0 ) { network->bssht.bd_support_ht = true; - network->bssht.bdHT1R = ((((struct ht_capab_ele *)(network->bssht.bd_ht_cap_buf))->MCS[1 ]) ==0 ); + network->bssht.bd_ht_1r = ((((struct ht_capab_ele *)(network->bssht.bd_ht_cap_buf))->MCS[1 ]) ==0 ); }else { network->bssht.bd_support_ht = false; - network->bssht.bdHT1R = false; + network->bssht.bd_ht_1r = false; } }
@@ -2028,7 +2028,7 @@ static void rtllib_parse_mfie_ht_cap(struct rtllib_info_element *info_element,memcpy (ht->bd_ht_cap_buf, info_element->data, ht->bd_ht_cap_len); ht->bd_support_ht = true; - ht->bdHT1R = ((((struct ht_capab_ele *) + ht->bd_ht_1r = ((((struct ht_capab_ele *) ht->bd_ht_cap_buf))->MCS[1 ]) ==0 ; ht->bd_bandwidth = (enum ht_channel_width)
@@ -2036,7 +2036,7 @@ static void rtllib_parse_mfie_ht_cap(struct rtllib_info_element *info_element, (ht->bd_ht_cap_buf))->ChlWidth); }else { ht->bd_support_ht = false; - ht->bdHT1R = false; + ht->bd_ht_1r = false; ht->bd_bandwidth =HT_CHANNEL_WIDTH_20 ; } }
--
2.30.0
PATCH 10/13 staging: rtl8192e: rename bdRT2RTLongSlotTime to bd_rt2rt_long_slot_time in bss_ht struct
In reply to William DurandFixes a checkpatch CHECK issue.
--- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 3 +-- drivers/staging/rtl8192e/rtl819x_HT.h | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 4 ++-- drivers/staging/rtl8192e/rtllib_rx.c | 4 ++-- 4 files changed, 6 insertions(+), 7 deletions(-)
drivers/staging/rtl8192e/rtl8192e/rtl_core.c +1 -2
@@ -375,8 +375,7 @@ static void _rtl92e_update_beacon(void *data)if (ieee->pHTInfo->bCurrentHTSupport)HT_update_self_and_peer_setting (ieee, net); - ieee->pHTInfo->bCurrentRT2RTLongSlotTime = - net->bssht.bdRT2RTLongSlotTime; + ieee->pHTInfo->bCurrentRT2RTLongSlotTime = net->bssht.bd_rt2rt_long_slot_time; ieee->pHTInfo->RT2RT_HT_Mode = net->bssht.RT2RT_HT_Mode;_rtl92e_update_cap (dev, net->capability); }
drivers/staging/rtl8192e/rtl819x_HT.h +1 -1
@@ -190,7 +190,7 @@ struct bss_ht {enum ht_channel_width bd_bandwidth;u8 bd_rt2rt_aggregation; -u8 bdRT2RTLongSlotTime; +u8 bd_rt2rt_long_slot_time;u8 RT2RT_HT_Mode;u8 bdHT1R; };
drivers/staging/rtl8192e/rtl819x_HTProc.c +2 -2
@@ -698,7 +698,7 @@ void HTInitializeBssDesc(struct bss_ht *pBssHT) pBssHT->bd_ht_spec_ver =HT_SPEC_VER_IEEE ; pBssHT->bd_rt2rt_aggregation = false; - pBssHT->bdRT2RTLongSlotTime = false; + pBssHT->bd_rt2rt_long_slot_time = false; pBssHT->RT2RT_HT_Mode = (enum rt_ht_capability )0 ; }
@@ -733,7 +733,7 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee, pHTInfo->bCurrentRT2RTAggregation = pNetwork->bssht.bd_rt2rt_aggregation; pHTInfo->bCurrentRT2RTLongSlotTime = - pNetwork->bssht.bdRT2RTLongSlotTime; + pNetwork->bssht.bd_rt2rt_long_slot_time; pHTInfo->RT2RT_HT_Mode = pNetwork->bssht.RT2RT_HT_Mode; }else { pHTInfo->bCurrentRT2RTAggregation = false;
drivers/staging/rtl8192e/rtllib_rx.c +2 -2
@@ -1904,7 +1904,7 @@ static void rtllib_parse_mife_generic(struct rtllib_device *ieee,if ((ht_realtek_agg_buf[4 ] ==1 ) && (ht_realtek_agg_buf[5 ] &0x02 )) - network->bssht.bdRT2RTLongSlotTime = true; + network->bssht.bd_rt2rt_long_slot_time = true;if ((ht_realtek_agg_buf[4 ] ==1 ) && (ht_realtek_agg_buf[5 ] &RT_HT_CAP_USE_92SE ))
@@ -2467,7 +2467,7 @@ static inline void update_network(struct rtllib_device *ieee,memcpy (dst->bssht.bd_ht_info_buf, src->bssht.bd_ht_info_buf, src->bssht.bd_ht_info_len); dst->bssht.bd_ht_spec_ver = src->bssht.bd_ht_spec_ver; - dst->bssht.bdRT2RTLongSlotTime = src->bssht.bdRT2RTLongSlotTime; + dst->bssht.bd_rt2rt_long_slot_time = src->bssht.bd_rt2rt_long_slot_time; dst->broadcom_cap_exist = src->broadcom_cap_exist; dst->ralink_cap_exist = src->ralink_cap_exist; dst->atheros_cap_exist = src->atheros_cap_exist;
--
2.30.0
PATCH 11/13 staging: rtl8192e: rename RT2RT_HT_Mode to rt2rt_ht_mode in bss_ht struct
In reply to William DurandFixes a checkpatch CHECK issue.
--- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 2 +- drivers/staging/rtl8192e/rtl819x_HT.h | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 8 ++++---- drivers/staging/rtl8192e/rtllib_rx.c | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-)
drivers/staging/rtl8192e/rtl8192e/rtl_core.c +1 -1
@@ -376,7 +376,7 @@ static void _rtl92e_update_beacon(void *data)if (ieee->pHTInfo->bCurrentHTSupport)HT_update_self_and_peer_setting (ieee, net); ieee->pHTInfo->bCurrentRT2RTLongSlotTime = net->bssht.bd_rt2rt_long_slot_time; - ieee->pHTInfo->RT2RT_HT_Mode = net->bssht.RT2RT_HT_Mode; + ieee->pHTInfo->RT2RT_HT_Mode = net->bssht.rt2rt_ht_mode;_rtl92e_update_cap (dev, net->capability); }
drivers/staging/rtl8192e/rtl819x_HT.h +1 -1
@@ -191,7 +191,7 @@ struct bss_ht {u8 bd_rt2rt_aggregation;u8 bd_rt2rt_long_slot_time; -u8 RT2RT_HT_Mode; +u8 rt2rt_ht_mode;u8 bdHT1R; };
drivers/staging/rtl8192e/rtl819x_HTProc.c +4 -4
@@ -173,9 +173,9 @@ static void HTIOTPeerDetermine(struct rtllib_device *ieee)if (net->bssht.bd_rt2rt_aggregation) { pHTInfo->IOTPeer =HT_IOT_PEER_REALTEK ; -if (net->bssht.RT2RT_HT_Mode &RT_HT_CAP_USE_92SE ) +if (net->bssht.rt2rt_ht_mode &RT_HT_CAP_USE_92SE ) pHTInfo->IOTPeer =HT_IOT_PEER_REALTEK_92SE ; -if (net->bssht.RT2RT_HT_Mode &RT_HT_CAP_USE_SOFTAP ) +if (net->bssht.rt2rt_ht_mode &RT_HT_CAP_USE_SOFTAP ) pHTInfo->IOTPeer =HT_IOT_PEER_92U_SOFTAP ; }else if (net->broadcom_cap_exist) { pHTInfo->IOTPeer =HT_IOT_PEER_BROADCOM ;
@@ -699,7 +699,7 @@ void HTInitializeBssDesc(struct bss_ht *pBssHT) pBssHT->bd_rt2rt_aggregation = false; pBssHT->bd_rt2rt_long_slot_time = false; - pBssHT->RT2RT_HT_Mode = (enum rt_ht_capability )0 ; + pBssHT->rt2rt_ht_mode = (enum rt_ht_capability )0 ; } void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee,
@@ -734,7 +734,7 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee, pNetwork->bssht.bd_rt2rt_aggregation; pHTInfo->bCurrentRT2RTLongSlotTime = pNetwork->bssht.bd_rt2rt_long_slot_time; - pHTInfo->RT2RT_HT_Mode = pNetwork->bssht.RT2RT_HT_Mode; + pHTInfo->RT2RT_HT_Mode = pNetwork->bssht.rt2rt_ht_mode; }else { pHTInfo->bCurrentRT2RTAggregation = false; pHTInfo->bCurrentRT2RTLongSlotTime = false;
drivers/staging/rtl8192e/rtllib_rx.c +2 -2
@@ -1908,12 +1908,12 @@ static void rtllib_parse_mife_generic(struct rtllib_device *ieee,if ((ht_realtek_agg_buf[4 ] ==1 ) && (ht_realtek_agg_buf[5 ] &RT_HT_CAP_USE_92SE )) - network->bssht.RT2RT_HT_Mode |=RT_HT_CAP_USE_92SE ; + network->bssht.rt2rt_ht_mode |=RT_HT_CAP_USE_92SE ; } }if (ht_realtek_agg_len >=5 ) {if ((ht_realtek_agg_buf[5 ] &RT_HT_CAP_USE_SOFTAP )) - network->bssht.RT2RT_HT_Mode |=RT_HT_CAP_USE_SOFTAP ; + network->bssht.rt2rt_ht_mode |=RT_HT_CAP_USE_SOFTAP ; } if ((info_element->len >= 3 &&
--
2.30.0
Re: [PATCH 01/13] staging: rtl8192e: remove blank line in bss_ht struct
In reply to William DurandQuoted 2 lines · William Durand
Fixes a checkpatch CHECK issue.
All these patches have the same vague commit message. It's okay if the commit message basically restates the commit one line summary. It should say something like:
Fix a checkpatch warning about a blank line after an open curly brace.
Rename FooBar to foo_bar to silence a checkpatch warning about CamelCase.
regards,
dan carpenter
Re: [PATCH 01/13] staging: rtl8192e: remove blank line in bss_ht struct
Quoted 8 lines
All these patches have the same vague commit message. It's okay if the commit message basically restates the commit one line summary. It should say something like:
Fix a checkpatch warning about a blank line after an open curly brace.
Rename FooBar to
foo_barto silence a checkpatch warning about CamelCase.
Thanks, I'll update the patchset!