Skip to content

Commit

Permalink
wifi: mt76: mt7996: fix EHT beamforming capability check
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Shayne Chen <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected]>
  • Loading branch information
haogroot authored and nbd168 committed Aug 16, 2024
1 parent c2c6940 commit 5cf02b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mt7996/mcu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5cf02b0

Please sign in to comment.