wifi: mt76: mt7925: update mt7925_mcu_bss_basic_tlv for MLO
authorSean Wang <sean.wang@mediatek.com>
Sat, 6 Jul 2024 08:28:14 +0000 (01:28 -0700)
committerFelix Fietkau <nbd@nbd.name>
Tue, 9 Jul 2024 21:02:09 +0000 (23:02 +0200)
update mt7925_mcu_bss_basic_tlv for the MLO-enabled firmware.

The change remains compatible with the non-MLO mode and the
older firmware.

Co-developed-by: Ming Yen Hsieh <mingyen.hsieh@mediatek.com>
Signed-off-by: Ming Yen Hsieh <mingyen.hsieh@mediatek.com>
Co-developed-by: Deren Wu <deren.wu@mediatek.com>
Signed-off-by: Deren Wu <deren.wu@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Link: https://patch.msgid.link/583a3ac10583cfef0028f9a0b5a4802fc4070b99.1720248331.git.sean.wang@kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c

index bc6d6d9577652d734d4e3e7ce1284defd010026d..7bfb9c51388ccaf696287d0ff347e7d6856acde6 100644 (file)
@@ -2385,6 +2385,7 @@ mt7925_mcu_bss_basic_tlv(struct sk_buff *skb,
        basic_req->bcn_interval = cpu_to_le16(link_conf->beacon_int);
        basic_req->dtim_period = link_conf->dtim_period;
        basic_req->bmc_tx_wlan_idx = cpu_to_le16(wlan_idx);
+       basic_req->link_idx = mconf->mt76.idx;
 
        if (link_sta) {
                struct mt792x_sta *msta;