Skip to content

Commit

Permalink
Staging: rtl8192e: Rename variable MPDUDensity
Browse files Browse the repository at this point in the history
Rename variable MPDUDensity to mpdu_density
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-17-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Tree Davies authored and Greg Kroah-Hartman committed May 4, 2024
1 parent 1f63060 commit a0667f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/rtl8192e/rtl819x_HT.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ struct ht_capab_ele {
u8 lsig_txop_protect:1;

u8 max_rx_ampdu_factor:2;
u8 MPDUDensity:3;
u8 mpdu_density:3;
u8 Rsvd2:3;

u8 MCS[16];
Expand Down
6 changes: 3 additions & 3 deletions drivers/staging/rtl8192e/rtl819x_HTProc.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,11 @@ void ht_construct_capability_element(struct rtllib_device *ieee, u8 *pos_ht_cap,
cap_ele->chl_width, cap_ele->max_amsdu_size, cap_ele->DssCCk);

if (is_encrypt) {
cap_ele->MPDUDensity = 7;
cap_ele->mpdu_density = 7;
cap_ele->max_rx_ampdu_factor = 2;
} else {
cap_ele->max_rx_ampdu_factor = 3;
cap_ele->MPDUDensity = 0;
cap_ele->mpdu_density = 0;
}

memcpy(cap_ele->MCS, ieee->reg_dot11ht_oper_rate_set, 16);
Expand Down Expand Up @@ -479,7 +479,7 @@ void ht_on_assoc_rsp(struct rtllib_device *ieee)
HT_AGG_SIZE_32K);
}

ht_info->current_mpdu_density = pPeerHTCap->MPDUDensity;
ht_info->current_mpdu_density = pPeerHTCap->mpdu_density;
if (ht_info->iot_action & HT_IOT_ACT_TX_USE_AMSDU_8K)
ht_info->current_ampdu_enable = false;

Expand Down

0 comments on commit a0667f7

Please sign in to comment.