Skip to content

Commit 781b80f

Browse files
nbd168Kalle Valo
authored and
Kalle Valo
committed
wifi: mt76: fix 5 GHz connection regression on mt76x0/mt76x2
Some users have reported being unable to connect to MT76x0 APs running mt76 after a commit enabling the VHT extneded NSS BW feature. Fix this regression by ensuring that this feature only gets enabled on drivers that support it Cc: [email protected] Fixes: d9fcfc1 ("mt76: enable the VHT extended NSS BW feature") Signed-off-by: Felix Fietkau <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent c3a510e commit 781b80f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/wireless/mediatek/mt76/mac80211.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ static void mt76_init_stream_cap(struct mt76_phy *phy,
267267
}
268268
vht_cap->vht_mcs.rx_mcs_map = cpu_to_le16(mcs_map);
269269
vht_cap->vht_mcs.tx_mcs_map = cpu_to_le16(mcs_map);
270-
vht_cap->vht_mcs.tx_highest |=
270+
if (ieee80211_hw_check(phy->hw, SUPPORTS_VHT_EXT_NSS_BW))
271+
vht_cap->vht_mcs.tx_highest |=
271272
cpu_to_le16(IEEE80211_VHT_EXT_NSS_BW_CAPABLE);
272273
}
273274

0 commit comments

Comments
 (0)