Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit 0a9445a

Browse files
Baochen Qianggregkh
Baochen Qiang
authored andcommitted
wifi: ath12k: fix invalid AMPDU factor calculation in ath12k_peer_assoc_h_he()
[ Upstream commit a66de2d ] Currently ampdu_factor is wrongly calculated in ath12k_peer_assoc_h_he(), fix it. This is found during code review. Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4 Fixes: d889913 ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices") Signed-off-by: Baochen Qiang <quic_bqiang@quicinc.com> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com> Link: https://patch.msgid.link/20240710021819.87216-1-quic_bqiang@quicinc.com Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent aafd6ad commit 0a9445a

File tree

1 file changed

+2
-3
lines changed
  • drivers/net/wireless/ath/ath12k

1 file changed

+2
-3
lines changed

drivers/net/wireless/ath/ath12k/mac.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -1681,9 +1681,8 @@ static void ath12k_peer_assoc_h_he(struct ath12k *ar,
16811681
* request, then use MAX_AMPDU_LEN_FACTOR as 16 to calculate max_ampdu
16821682
* length.
16831683
*/
1684-
ampdu_factor = (he_cap->he_cap_elem.mac_cap_info[3] &
1685-
IEEE80211_HE_MAC_CAP3_MAX_AMPDU_LEN_EXP_MASK) >>
1686-
IEEE80211_HE_MAC_CAP3_MAX_AMPDU_LEN_EXP_MASK;
1684+
ampdu_factor = u8_get_bits(he_cap->he_cap_elem.mac_cap_info[3],
1685+
IEEE80211_HE_MAC_CAP3_MAX_AMPDU_LEN_EXP_MASK);
16871686

16881687
if (ampdu_factor) {
16891688
if (sta->deflink.vht_cap.vht_supported)

0 commit comments

Comments
 (0)