developer | 1d9da7d | 2023-04-15 12:45:34 +0800 | [diff] [blame] | 1 | From e1aa3c0a4dcb136b287f95ac7cac1764f89a124b Mon Sep 17 00:00:00 2001 |
developer | 4a24b5f | 2023-04-12 16:06:02 +0800 | [diff] [blame] | 2 | From: MeiChia Chiu <meichia.chiu@mediatek.com> |
| 3 | Date: Wed, 12 Apr 2023 15:53:42 +0800 |
developer | 5bea732 | 2023-04-13 18:50:55 +0800 | [diff] [blame] | 4 | Subject: [PATCH 4/5] wifi: mt76: mt7915: fix the beamformer issue |
developer | 4a24b5f | 2023-04-12 16:06:02 +0800 | [diff] [blame] | 5 | |
| 6 | without this patch, when ap sets the tx stream number to 2, |
| 7 | ap doesn't send any beamform packets. |
| 8 | |
| 9 | Signed-off-by: MeiChia Chiu <MeiChia.Chiu@mediatek.com> |
| 10 | --- |
| 11 | mt7915/mcu.c | 4 ++-- |
| 12 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 13 | |
| 14 | diff --git a/mt7915/mcu.c b/mt7915/mcu.c |
developer | 1d9da7d | 2023-04-15 12:45:34 +0800 | [diff] [blame] | 15 | index 03ae3bc..2a5ad03 100644 |
developer | 4a24b5f | 2023-04-12 16:06:02 +0800 | [diff] [blame] | 16 | --- a/mt7915/mcu.c |
| 17 | +++ b/mt7915/mcu.c |
| 18 | @@ -1008,13 +1008,13 @@ mt7915_is_ebf_supported(struct mt7915_phy *phy, struct ieee80211_vif *vif, |
| 19 | struct ieee80211_sta *sta, bool bfee) |
| 20 | { |
| 21 | struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; |
| 22 | - int tx_ant = hweight8(phy->mt76->chainmask) - 1; |
| 23 | + int sts = hweight16(phy->mt76->chainmask); |
| 24 | |
| 25 | if (vif->type != NL80211_IFTYPE_STATION && |
| 26 | vif->type != NL80211_IFTYPE_AP) |
| 27 | return false; |
| 28 | |
| 29 | - if (!bfee && tx_ant < 2) |
| 30 | + if (!bfee && sts < 2) |
| 31 | return false; |
| 32 | |
| 33 | if (sta->deflink.he_cap.has_he) { |
| 34 | -- |
developer | 5bea732 | 2023-04-13 18:50:55 +0800 | [diff] [blame] | 35 | 2.18.0 |
developer | 4a24b5f | 2023-04-12 16:06:02 +0800 | [diff] [blame] | 36 | |