int mt7996_mcu_get_chip_config(struct mt7996_dev *dev, u32 *cap)
{
-#define NIC_CAP 3
#define UNI_EVENT_CHIP_CONFIG_EFUSE_VERSION 0x21
struct {
u8 _rsv[4];
__le16 tag;
__le16 len;
} __packed req = {
- .tag = cpu_to_le16(NIC_CAP),
+ .tag = cpu_to_le16(UNI_CHIP_CONFIG_NIC_CAPA),
.len = cpu_to_le16(sizeof(req) - 4),
};
struct sk_buff *skb;
return mt76_mcu_send_msg(&dev->mt76, MCU_WA_EXT_CMD(CP_SUPPORT),
&cp_mode, sizeof(cp_mode), true);
}
+
+int mt7996_mcu_set_dup_wtbl(struct mt7996_dev *dev)
+{
+#define DUP_WTBL_NUM 80
+ struct {
+ u8 _rsv[4];
+
+ __le16 tag;
+ __le16 len;
+ __le16 base;
+ __le16 num;
+ u8 _rsv2[4];
+ } __packed req = {
+ .tag = cpu_to_le16(UNI_CHIP_CONFIG_DUP_WTBL),
+ .len = cpu_to_le16(sizeof(req) - 4),
+ .base = cpu_to_le16(MT7996_WTBL_STA - DUP_WTBL_NUM + 1),
+ .num = cpu_to_le16(DUP_WTBL_NUM),
+ };
+
+ return mt76_mcu_send_msg(&dev->mt76, MCU_WM_UNI_CMD(CHIP_CONFIG), &req,
+ sizeof(req), true);
+}
UNI_CHANNEL_RX_PATH,
};
+enum {
+ UNI_CHIP_CONFIG_NIC_CAPA = 3,
+ UNI_CHIP_CONFIG_DUP_WTBL = 4,
+};
+
#define MT7996_BSS_UPDATE_MAX_SIZE (sizeof(struct bss_req_hdr) + \
sizeof(struct mt76_connac_bss_basic_tlv) + \
sizeof(struct bss_rlm_tlv) + \
int mt7996_mcu_get_all_sta_info(struct mt7996_phy *phy, u16 tag);
int mt7996_mcu_wed_rro_reset_sessions(struct mt7996_dev *dev, u16 id);
int mt7996_mcu_set_sniffer_mode(struct mt7996_phy *phy, bool enabled);
+int mt7996_mcu_set_dup_wtbl(struct mt7996_dev *dev);
static inline bool mt7996_has_hwrro(struct mt7996_dev *dev)
{