Skip to content

Commit 93235f6

Browse files
garyrookardgregkh
authored andcommitted
staging: rtl8192e: rename variable ePeerHTSpecVer
Coding style issue, checkpatch Avoid CamelCase, rename it. ePeerHTSpecVer -> peer_ht_spec_ver Signed-off-by: Gary Rookard <garyrookard@fastmail.org> Link: https://lore.kernel.org/r/20231221183413.8349-6-garyrookard@fastmail.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 3535089 commit 93235f6

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

drivers/staging/rtl8192e/rtl819x_HT.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ struct rt_hi_throughput {
9797
u8 cur_bw_40mhz;
9898
u8 cur_short_gi_40mhz;
9999
u8 cur_short_gi_20mhz;
100-
enum ht_spec_ver ePeerHTSpecVer;
100+
enum ht_spec_ver peer_ht_spec_ver;
101101
struct ht_capab_ele SelfHTCap;
102102
u8 PeerHTCapBuf[32];
103103
u8 PeerHTInfoBuf[32];

drivers/staging/rtl8192e/rtl819x_HTProc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ void ht_construct_capability_element(struct rtllib_device *ieee, u8 *pos_ht_cap,
240240
}
241241
memset(pos_ht_cap, 0, *len);
242242

243-
if ((assoc) && (ht->ePeerHTSpecVer == HT_SPEC_VER_EWC)) {
243+
if ((assoc) && (ht->peer_ht_spec_ver == HT_SPEC_VER_EWC)) {
244244
static const u8 EWC11NHTCap[] = { 0x00, 0x90, 0x4c, 0x33 };
245245

246246
memcpy(pos_ht_cap, EWC11NHTCap, sizeof(EWC11NHTCap));
@@ -525,7 +525,7 @@ void ht_initialize_ht_info(struct rtllib_device *ieee)
525525

526526
ht_info->sw_bw_in_progress = false;
527527

528-
ht_info->ePeerHTSpecVer = HT_SPEC_VER_IEEE;
528+
ht_info->peer_ht_spec_ver = HT_SPEC_VER_IEEE;
529529

530530
ht_info->current_rt2rt_aggregation = false;
531531
ht_info->current_rt2rt_long_slot_time = false;
@@ -569,7 +569,7 @@ void ht_reset_self_and_save_peer_setting(struct rtllib_device *ieee,
569569
*/
570570
if (pNetwork->bssht.bd_support_ht) {
571571
ht_info->current_ht_support = true;
572-
ht_info->ePeerHTSpecVer = pNetwork->bssht.bd_ht_spec_ver;
572+
ht_info->peer_ht_spec_ver = pNetwork->bssht.bd_ht_spec_ver;
573573

574574
if (pNetwork->bssht.bd_ht_cap_len > 0 &&
575575
pNetwork->bssht.bd_ht_cap_len <= sizeof(ht_info->PeerHTCapBuf))

drivers/staging/rtl8192e/rtllib_softmac.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ rtllib_association_req(struct rtllib_network *beacon,
866866
tag += osCcxVerNum.Length;
867867
}
868868
if (ieee->ht_info->current_ht_support && ieee->ht_info->enable_ht) {
869-
if (ieee->ht_info->ePeerHTSpecVer != HT_SPEC_VER_EWC) {
869+
if (ieee->ht_info->peer_ht_spec_ver != HT_SPEC_VER_EWC) {
870870
tag = skb_put(skb, ht_cap_len);
871871
*tag++ = MFIE_TYPE_HT_CAP;
872872
*tag++ = ht_cap_len - 2;
@@ -900,7 +900,7 @@ rtllib_association_req(struct rtllib_network *beacon,
900900
}
901901

902902
if (ieee->ht_info->current_ht_support && ieee->ht_info->enable_ht) {
903-
if (ieee->ht_info->ePeerHTSpecVer == HT_SPEC_VER_EWC) {
903+
if (ieee->ht_info->peer_ht_spec_ver == HT_SPEC_VER_EWC) {
904904
tag = skb_put(skb, ht_cap_len);
905905
*tag++ = MFIE_TYPE_GENERIC;
906906
*tag++ = ht_cap_len - 2;

0 commit comments

Comments
 (0)