diff options
author | Howard Hsu <howard-yh.hsu@mediatek.com> | 2024-08-16 17:46:31 +0800 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2024-09-05 13:01:55 +0200 |
commit | 9ca65757f0a5b393a7737d37f377d5daf91716af (patch) | |
tree | 75493ed399674007048dcf9f9c77b56707908fda /drivers/net/wireless/mediatek/mt76 | |
parent | 0cca3fe7453189b983eb68baea939192b58af8f0 (diff) | |
download | linux-stable-9ca65757f0a5b393a7737d37f377d5daf91716af.tar.gz linux-stable-9ca65757f0a5b393a7737d37f377d5daf91716af.tar.bz2 linux-stable-9ca65757f0a5b393a7737d37f377d5daf91716af.zip |
wifi: mt76: mt7996: fix EHT beamforming capability check
If a VIF acts as a beamformer, it should check peer's beamformee
capability, and vice versa.
Fixes: ba01944adee9 ("wifi: mt76: mt7996: add EHT beamforming support")
Signed-off-by: Howard Hsu <howard-yh.hsu@mediatek.com>
Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
Link: https://patch.msgid.link/20240816094635.2391-7-shayne.chen@mediatek.com
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt7996/mcu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7996/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7996/mcu.c index e68724e54013..daef014954d0 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7996/mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt7996/mcu.c @@ -1429,10 +1429,10 @@ mt7996_is_ebf_supported(struct mt7996_phy *phy, struct ieee80211_vif *vif, if (bfee) return vif->bss_conf.eht_su_beamformee && - EHT_PHY(CAP0_SU_BEAMFORMEE, pe->phy_cap_info[0]); + EHT_PHY(CAP0_SU_BEAMFORMER, pe->phy_cap_info[0]); else return vif->bss_conf.eht_su_beamformer && - EHT_PHY(CAP0_SU_BEAMFORMER, pe->phy_cap_info[0]); + EHT_PHY(CAP0_SU_BEAMFORMEE, pe->phy_cap_info[0]); } if (sta->deflink.he_cap.has_he) { |