mt76: mt7915: fix DRR sta bss group index
authorFelix Fietkau <nbd@nbd.name>
Mon, 28 Sep 2020 13:14:50 +0000 (15:14 +0200)
committerFelix Fietkau <nbd@nbd.name>
Fri, 4 Dec 2020 12:46:14 +0000 (13:46 +0100)
The firmware/hardware supports only 16 entries. Trying to use more can lead
to timeouts on some firmware versions

Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c

index ca198c4..b50f5b0 100644 (file)
@@ -2307,7 +2307,7 @@ mt7915_mcu_add_group(struct mt7915_dev *dev, struct ieee80211_vif *vif,
                .action = cpu_to_le32(MT_STA_BSS_GROUP),
                .wlan_idx_lo = to_wcid_lo(msta->wcid.idx),
                .wlan_idx_hi = to_wcid_hi(msta->wcid.idx),
-               .val = cpu_to_le32(mvif->idx),
+               .val = cpu_to_le32(mvif->idx % 16),
        };
 
        return __mt76_mcu_send_msg(&dev->mt76, MCU_EXT_CMD_SET_DRR_CTRL,