OSDN Git Service

mt76: mt7915: initialize smps mode in mt7915_mcu_sta_rate_ctrl_tlv()
authorPeter Chiu <chui-hao.chiu@mediatek.com>
Wed, 9 Feb 2022 07:51:22 +0000 (15:51 +0800)
committerFelix Fietkau <nbd@nbd.name>
Thu, 24 Feb 2022 13:40:22 +0000 (14:40 +0100)
Initialize smps mode to prevent firmware rate adaptation issue.

Reviewed-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c

index baf63a5..66153e2 100644 (file)
@@ -1536,6 +1536,7 @@ mt7915_mcu_sta_rate_ctrl_tlv(struct sk_buff *skb, struct mt7915_dev *dev,
        ra->channel = chandef->chan->hw_value;
        ra->bw = sta->bandwidth;
        ra->phy.bw = sta->bandwidth;
+       ra->mmps_mode = mt7915_mcu_get_mmps_mode(sta->smps_mode);
 
        if (supp_rate) {
                supp_rate &= mask->control[band].legacy;