Skip to content

Commit a0667f7

Browse files
treedaviesgregkh
authored andcommitted
Staging: rtl8192e: Rename variable MPDUDensity
Rename variable MPDUDensity to mpdu_density 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 1f63060 commit a0667f7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

drivers/staging/rtl8192e/rtl819x_HT.h

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

4242
u8 max_rx_ampdu_factor:2;
43-
u8 MPDUDensity:3;
43+
u8 mpdu_density:3;
4444
u8 Rsvd2:3;
4545

4646
u8 MCS[16];

drivers/staging/rtl8192e/rtl819x_HTProc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,11 +275,11 @@ void ht_construct_capability_element(struct rtllib_device *ieee, u8 *pos_ht_cap,
275275
cap_ele->chl_width, cap_ele->max_amsdu_size, cap_ele->DssCCk);
276276

277277
if (is_encrypt) {
278-
cap_ele->MPDUDensity = 7;
278+
cap_ele->mpdu_density = 7;
279279
cap_ele->max_rx_ampdu_factor = 2;
280280
} else {
281281
cap_ele->max_rx_ampdu_factor = 3;
282-
cap_ele->MPDUDensity = 0;
282+
cap_ele->mpdu_density = 0;
283283
}
284284

285285
memcpy(cap_ele->MCS, ieee->reg_dot11ht_oper_rate_set, 16);
@@ -479,7 +479,7 @@ void ht_on_assoc_rsp(struct rtllib_device *ieee)
479479
HT_AGG_SIZE_32K);
480480
}
481481

482-
ht_info->current_mpdu_density = pPeerHTCap->MPDUDensity;
482+
ht_info->current_mpdu_density = pPeerHTCap->mpdu_density;
483483
if (ht_info->iot_action & HT_IOT_ACT_TX_USE_AMSDU_8K)
484484
ht_info->current_ampdu_enable = false;
485485

0 commit comments

Comments
 (0)