Skip to content

Commit

Permalink
wifi: mt76: mt7915: Fix buggy 802.11ax on non-mt7915 devices
Browse files Browse the repository at this point in the history
Fixes slow 802.11ax on Redmi AX6000, etc.

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

Signed-off-by: Bryan Roessler <[email protected]>
  • Loading branch information
cryobry committed Mar 12, 2023
1 parent 021ded3 commit 1f7f32c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mt7915/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -419,12 +419,12 @@ mt7915_init_wiphy(struct mt7915_phy *phy)
IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ |
FIELD_PREP(IEEE80211_VHT_CAP_EXT_NSS_BW_MASK, 1);
} else {
vht_cap->cap |=
phy->mt76->sband_5g.sband.vht_cap.cap |=
IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_11454 |
IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK;

/* mt7916 dbdc with 2g 2x2 bw40 and 5g 2x2 bw160c */
vht_cap->cap |=
phy->mt76->sband_5g.sband.vht_cap.cap |=
IEEE80211_VHT_CAP_SHORT_GI_160 |
IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ;
}
Expand Down

0 comments on commit 1f7f32c

Please sign in to comment.