wifi: mt76: introduce mt792x_config_mac_addr_list routine

Add mt792x_config_mac_addr_list routine in order to set
the mac address list supported by the driver. Initialize
wiphy->addresses/n_addresses for mt792x driver

Signed-off-by: Hao Zhang <[email protected]>
Signed-off-by: Leon Yen <[email protected]>
Signed-off-by: Allan Wang <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Allan Wang
2024-12-30 19:36:08 +01:00
committed by Felix Fietkau
parent eb85bb3fd5
commit 83e4d4a82e
4 changed files with 27 additions and 0 deletions
+3
View File
@@ -206,6 +206,8 @@ struct mt792x_dev {
struct mt76_phy mphy;
};
struct mac_address macaddr_list[8];
const struct mt76_bus_ops *bus_ops;
struct mt792x_phy phy;
@@ -414,6 +416,7 @@ int mt792x_mcu_fw_pmctrl(struct mt792x_dev *dev);
void mt792x_mac_link_bss_remove(struct mt792x_dev *dev,
struct mt792x_bss_conf *mconf,
struct mt792x_link_sta *mlink);
void mt792x_config_mac_addr_list(struct mt792x_dev *dev);
static inline char *mt792x_ram_name(struct mt792x_dev *dev)
{