61abb847d0095187581054cf8dcbbffdad43eb96
[openwrt/staging/jow.git] / package / kernel / mac80211 / patches / ath11k / 904-wifi-ath11k-restore-160MHz-support.patch
1 From e0edb3ac33694ab6a2705f7b053948a926520d81 Mon Sep 17 00:00:00 2001
2 From: Robert Marko <robimarko@gmail.com>
3 Date: Tue, 28 Mar 2023 13:30:30 +0200
4 Subject: [PATCH] wifi: ath11k: restore 160MHz support
5
6 The blamed commit started clearing 80+80 and 160MHz support flags for 5G.
7 This is preventing those modes from being advertised and thus used causing
8 a regression, so until this is properly sorted out lets remove the flag
9 clearing to restore 160MHz support.
10
11 Fixes: 38dfe775d0ab ("wifi: ath11k: push MU-MIMO params from hostapd to hardware")
12 Signed-off-by: Robert Marko <robimarko@gmail.com>
13 ---
14 drivers/net/wireless/ath/ath11k/mac.c | 4 ----
15 1 file changed, 4 deletions(-)
16
17 --- a/drivers/net/wireless/ath/ath11k/mac.c
18 +++ b/drivers/net/wireless/ath/ath11k/mac.c
19 @@ -5552,10 +5552,6 @@ static int ath11k_mac_copy_he_cap(struct
20
21 he_cap_elem->mac_cap_info[1] &=
22 IEEE80211_HE_MAC_CAP1_TF_MAC_PAD_DUR_MASK;
23 - he_cap_elem->phy_cap_info[0] &=
24 - ~IEEE80211_HE_PHY_CAP0_CHANNEL_WIDTH_SET_160MHZ_IN_5G;
25 - he_cap_elem->phy_cap_info[0] &=
26 - ~IEEE80211_HE_PHY_CAP0_CHANNEL_WIDTH_SET_80PLUS80_MHZ_IN_5G;
27
28 he_cap_elem->phy_cap_info[5] &=
29 ~IEEE80211_HE_PHY_CAP5_BEAMFORMEE_NUM_SND_DIM_UNDER_80MHZ_MASK;