From 669aba47a1459fcf7a8e5b1e091ae0fa696348f0 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 3 Apr 2024 11:34:11 +0200 Subject: [PATCH] wifi: mt76: mt7915: fix HE PHY capability regression Fix a logic error that was dropping required capabilities Signed-off-by: Felix Fietkau --- mt7915/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mt7915/init.c b/mt7915/init.c index 7b6168cf..eee18798 100644 --- a/mt7915/init.c +++ b/mt7915/init.c @@ -936,7 +936,7 @@ mt7915_set_stream_he_txbf_caps(struct mt7915_phy *phy, /* the maximum cap is 4 x 3, (Nr, Nc) = (3, 2) */ elem->phy_cap_info[7] |= min_t(int, sts - 1, 2) << 3; - if (vif != NL80211_IFTYPE_AP || vif != NL80211_IFTYPE_STATION) + if (vif != NL80211_IFTYPE_AP && vif != NL80211_IFTYPE_STATION) return; elem->phy_cap_info[3] |= IEEE80211_HE_PHY_CAP3_SU_BEAMFORMER;