Commit c41d2a07 authored by MeiChia Chiu's avatar MeiChia Chiu Committed by Felix Fietkau

mt76: mt7915: fix the nss setting in bitrates

without this change, the fixed MCS only supports 1 Nss.

Fixes: 70fd1333 ("mt76: mt7915: rework .set_bitrate_mask() to support more options")
Reviewed-by: default avatarRyder Lee <ryder.lee@mediatek.com>
Signed-off-by: default avatarMeiChia Chiu <meichia.chiu@mediatek.com>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent be1954ff
...@@ -1427,9 +1427,12 @@ mt7915_mcu_add_rate_ctrl_fixed(struct mt7915_dev *dev, ...@@ -1427,9 +1427,12 @@ mt7915_mcu_add_rate_ctrl_fixed(struct mt7915_dev *dev,
phy.sgi |= gi << (i << (_he)); \ phy.sgi |= gi << (i << (_he)); \
phy.he_ltf |= mask->control[band].he_ltf << (i << (_he));\ phy.he_ltf |= mask->control[band].he_ltf << (i << (_he));\
} \ } \
for (i = 0; i < ARRAY_SIZE(mask->control[band]._mcs); i++) \ for (i = 0; i < ARRAY_SIZE(mask->control[band]._mcs); i++) { \
nrates += hweight16(mask->control[band]._mcs[i]); \ if (!mask->control[band]._mcs[i]) \
phy.mcs = ffs(mask->control[band]._mcs[0]) - 1; \ continue; \
nrates += hweight16(mask->control[band]._mcs[i]); \
phy.mcs = ffs(mask->control[band]._mcs[i]) - 1; \
} \
} while (0) } while (0)
if (sta->he_cap.has_he) { if (sta->he_cap.has_he) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment