Skip to content

Commit

Permalink
Staging: rtl8192e: Rename variable MaxRxAMPDUFactor
Browse files Browse the repository at this point in the history
Rename variable MaxRxAMPDUFactor to max_rx_ampdu_factor
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-16-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 9d2953b commit 1f63060
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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 @@ -39,7 +39,7 @@ struct ht_capab_ele {
u8 Rsvd1:1;
u8 lsig_txop_protect:1;

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

Expand Down
10 changes: 5 additions & 5 deletions drivers/staging/rtl8192e/rtl819x_HTProc.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,9 @@ void ht_construct_capability_element(struct rtllib_device *ieee, u8 *pos_ht_cap,

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

Expand Down Expand Up @@ -471,12 +471,12 @@ void ht_on_assoc_rsp(struct rtllib_device *ieee)
if (ieee->current_network.bssht.bd_rt2rt_aggregation) {
if (ieee->pairwise_key_type != KEY_TYPE_NA)
ht_info->current_ampdu_factor =
pPeerHTCap->MaxRxAMPDUFactor;
pPeerHTCap->max_rx_ampdu_factor;
else
ht_info->current_ampdu_factor = HT_AGG_SIZE_64K;
} else {
ht_info->current_ampdu_factor = min_t(u32, pPeerHTCap->MaxRxAMPDUFactor,
HT_AGG_SIZE_32K);
ht_info->current_ampdu_factor = min_t(u32, pPeerHTCap->max_rx_ampdu_factor,
HT_AGG_SIZE_32K);
}

ht_info->current_mpdu_density = pPeerHTCap->MPDUDensity;
Expand Down

0 comments on commit 1f63060

Please sign in to comment.