projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7f1c44
)
mt76: mt7915: fix IEEE80211_HE_PHY_CAP7_MAX_NC for station mode
author
Ryder Lee
<ryder.lee@mediatek.com>
Fri, 11 Jun 2021 18:04:20 +0000
(
02:04
+0800)
committer
Felix Fietkau
<nbd@nbd.name>
Sat, 19 Jun 2021 07:22:50 +0000
(09:22 +0200)
The value of station mode is always 0.
Fixed:
00b2e16e0063
("mt76: mt7915: add TxBF capabilities")
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/init.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/mt7915/init.c
b/drivers/net/wireless/mediatek/mt76/mt7915/init.c
index 36bb7121c57f85a8dd12e2fa0510abdfb7bff09c..7af1cdbbfebdd3744ed21e4ffd7dae271d2c0235 100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/mt7915/init.c
+++ b/
drivers/net/wireless/mediatek/mt76/mt7915/init.c
@@
-568,6
+568,9
@@
mt7915_set_stream_he_txbf_caps(struct ieee80211_sta_he_cap *he_cap,
if (nss < 2)
return;
+ /* the maximum cap is 4 x 3, (Nr, Nc) = (3, 2) */
+ elem->phy_cap_info[7] |= min_t(int, nss - 1, 2) << 3;
+
if (vif != NL80211_IFTYPE_AP)
return;
@@
-581,9
+584,6
@@
mt7915_set_stream_he_txbf_caps(struct ieee80211_sta_he_cap *he_cap,
c = IEEE80211_HE_PHY_CAP6_TRIG_SU_BEAMFORMING_FB |
IEEE80211_HE_PHY_CAP6_TRIG_MU_BEAMFORMING_PARTIAL_BW_FB;
elem->phy_cap_info[6] |= c;
-
- /* the maximum cap is 4 x 3, (Nr, Nc) = (3, 2) */
- elem->phy_cap_info[7] |= min_t(int, nss - 1, 2) << 3;
}
static void