Skip to content

Commit 1f63060

Browse files
treedaviesgregkh
authored andcommitted
Staging: rtl8192e: Rename variable MaxRxAMPDUFactor
Rename variable MaxRxAMPDUFactor to max_rx_ampdu_factor to fix checkpatch warning Avoid CamelCase. Signed-off-by: Tree Davies <[email protected]> Tested-by: Philipp Hortmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 9d2953b commit 1f63060

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

drivers/staging/rtl8192e/rtl819x_HT.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ struct ht_capab_ele {
3939
u8 Rsvd1:1;
4040
u8 lsig_txop_protect:1;
4141

42-
u8 MaxRxAMPDUFactor:2;
42+
u8 max_rx_ampdu_factor:2;
4343
u8 MPDUDensity:3;
4444
u8 Rsvd2:3;
4545

drivers/staging/rtl8192e/rtl819x_HTProc.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,9 @@ void ht_construct_capability_element(struct rtllib_device *ieee, u8 *pos_ht_cap,
276276

277277
if (is_encrypt) {
278278
cap_ele->MPDUDensity = 7;
279-
cap_ele->MaxRxAMPDUFactor = 2;
279+
cap_ele->max_rx_ampdu_factor = 2;
280280
} else {
281-
cap_ele->MaxRxAMPDUFactor = 3;
281+
cap_ele->max_rx_ampdu_factor = 3;
282282
cap_ele->MPDUDensity = 0;
283283
}
284284

@@ -471,12 +471,12 @@ void ht_on_assoc_rsp(struct rtllib_device *ieee)
471471
if (ieee->current_network.bssht.bd_rt2rt_aggregation) {
472472
if (ieee->pairwise_key_type != KEY_TYPE_NA)
473473
ht_info->current_ampdu_factor =
474-
pPeerHTCap->MaxRxAMPDUFactor;
474+
pPeerHTCap->max_rx_ampdu_factor;
475475
else
476476
ht_info->current_ampdu_factor = HT_AGG_SIZE_64K;
477477
} else {
478-
ht_info->current_ampdu_factor = min_t(u32, pPeerHTCap->MaxRxAMPDUFactor,
479-
HT_AGG_SIZE_32K);
478+
ht_info->current_ampdu_factor = min_t(u32, pPeerHTCap->max_rx_ampdu_factor,
479+
HT_AGG_SIZE_32K);
480480
}
481481

482482
ht_info->current_mpdu_density = pPeerHTCap->MPDUDensity;

0 commit comments

Comments
 (0)