Commit 1f630607 authored by Tree Davies's avatar Tree Davies Committed by Greg Kroah-Hartman
Browse files

Staging: rtl8192e: Rename variable MaxRxAMPDUFactor



Rename variable MaxRxAMPDUFactor to max_rx_ampdu_factor
to fix checkpatch warning Avoid CamelCase.

Signed-off-by: default avatarTree Davies <tdavies@darkphysics.net>
Tested-by: default avatarPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/20240428230106.6548-16-tdavies@darkphysics.net


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9d2953b9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;

+5 −5
Original line number Diff line number Diff line
@@ -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;
	}

@@ -471,11 +471,11 @@ 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_info->current_ampdu_factor = min_t(u32, pPeerHTCap->max_rx_ampdu_factor,
						      HT_AGG_SIZE_32K);
	}