Skip to content

Commit

Permalink
wifi: mt76: mt7915: disable 160Mhz VHT CAPs for mt7986
Browse files Browse the repository at this point in the history
Fixes buggy 802.11ax on the Redmi AX6000 when connecting to some clients.

Partially reverts https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/

Forum thread https://forum.openwrt.org/t/802-11ax-worse-than-802-11ac-with-mt76-driver

Signed-off-by: Bryan Roessler <[email protected]>
  • Loading branch information
cryobry committed Mar 14, 2023
1 parent 021ded3 commit a0f2e01
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mt7915/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,10 +424,10 @@ mt7915_init_wiphy(struct mt7915_phy *phy)
IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK;

/* mt7916 dbdc with 2g 2x2 bw40 and 5g 2x2 bw160c */
vht_cap->cap |=
IEEE80211_VHT_CAP_SHORT_GI_160 |
IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ;
}
if (is_mt7916(&dev->mt76))
vht_cap->cap |=
IEEE80211_VHT_CAP_SHORT_GI_160 |
IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ;

if (!is_mt7915(&dev->mt76) || !dev->dbdc_support)
ieee80211_hw_set(hw, SUPPORTS_VHT_EXT_NSS_BW);
Expand Down

0 comments on commit a0f2e01

Please sign in to comment.