wifi: mt76: mt7921: add MBSSID support

Enable MBSSID support for MT7921 by setting the
appropriate capability to the firmware.

Signed-off-by: Ming Yen Hsieh <[email protected]>
Link: https://patch.msgid.link/[email protected]
This commit is contained in:
Ming Yen Hsieh
2025-08-13 14:15:39 +02:00
committed by Felix Fietkau
parent d3e7c2051a
commit 903a7e0ace
2 changed files with 27 additions and 3 deletions
+25
View File
@@ -1662,6 +1662,31 @@ int mt76_connac_mcu_uni_add_bss(struct mt76_phy *phy,
return err;
}
if (enable && vif->bss_conf.bssid_indicator) {
struct {
struct {
u8 bss_idx;
u8 pad[3];
} __packed hdr;
struct bss_info_uni_mbssid mbssid;
} mbssid_req = {
.hdr = {
.bss_idx = mvif->idx,
},
.mbssid = {
.tag = cpu_to_le16(UNI_BSS_INFO_11V_MBSSID),
.len = cpu_to_le16(sizeof(struct bss_info_uni_mbssid)),
.max_indicator = vif->bss_conf.bssid_indicator,
.mbss_idx = vif->bss_conf.bssid_index,
},
};
err = mt76_mcu_send_msg(mdev, MCU_UNI_CMD(BSS_INFO_UPDATE),
&mbssid_req, sizeof(mbssid_req), true);
if (err < 0)
return err;
}
return mt76_connac_mcu_uni_set_chctx(phy, mvif, ctx);
}
EXPORT_SYMBOL_GPL(mt76_connac_mcu_uni_add_bss);