Skip to content

Commit b55af8b

Browse files
treedaviesgregkh
authored andcommitted
Staging: rtl8192e: Rename variable ShortGI20Mhz
Rename variable ShortGI20Mhz to short_gi_20mhz to fix checkpatch warning Avoid CamelCase. Signed-off-by: Tree Davies <tdavies@darkphysics.net> Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/20240428230106.6548-10-tdavies@darkphysics.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent d4a0d94 commit b55af8b

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/staging/rtl8192e/rtl819x_HT.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ struct ht_capab_ele {
2828
u8 chl_width:1;
2929
u8 mimo_pwr_save:2;
3030
u8 GreenField:1;
31-
u8 ShortGI20Mhz:1;
31+
u8 short_gi_20mhz:1;
3232
u8 short_gi_40mhz:1;
3333
u8 TxSTBC:1;
3434
u8 RxSTBC:2;

drivers/staging/rtl8192e/rtl819x_HTProc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ void ht_construct_capability_element(struct rtllib_device *ieee, u8 *pos_ht_cap,
259259

260260
cap_ele->mimo_pwr_save = 3;
261261
cap_ele->GreenField = 0;
262-
cap_ele->ShortGI20Mhz = 1;
262+
cap_ele->short_gi_20mhz = 1;
263263
cap_ele->short_gi_40mhz = 1;
264264

265265
cap_ele->TxSTBC = 1;
@@ -457,7 +457,7 @@ void ht_on_assoc_rsp(struct rtllib_device *ieee)
457457
ht_info->cur_tx_bw40mhz = ((pPeerHTInfo->RecommemdedTxWidth == 1) ?
458458
true : false);
459459

460-
ht_info->cur_short_gi_20mhz = ((pPeerHTCap->ShortGI20Mhz == 1) ? true : false);
460+
ht_info->cur_short_gi_20mhz = ((pPeerHTCap->short_gi_20mhz == 1) ? true : false);
461461
ht_info->cur_short_gi_40mhz = ((pPeerHTCap->short_gi_40mhz == 1) ? true : false);
462462

463463
ht_info->current_ampdu_enable = ht_info->ampdu_enable;

drivers/staging/rtl8192e/rtllib_wx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ static inline char *rtl819x_translate_scan(struct rtllib_device *ieee,
132132
is40M = (ht_cap->chl_width) ? 1 : 0;
133133
isShortGI = (ht_cap->chl_width) ?
134134
((ht_cap->short_gi_40mhz) ? 1 : 0) :
135-
((ht_cap->ShortGI20Mhz) ? 1 : 0);
135+
((ht_cap->short_gi_20mhz) ? 1 : 0);
136136

137137
max_mcs = ht_get_highest_mcs_rate(ieee, ht_cap->MCS,
138138
MCS_FILTER_ALL);

0 commit comments

Comments
 (0)