mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 21:36:52 +00:00
mt76x2: drop wiphy->addresses
Now that the MAC address limitation is resolved, we no longer need a MAC address list Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -84,8 +84,6 @@ struct mt76x2_calibration {
|
||||
struct mt76x2_dev {
|
||||
struct mt76_dev mt76; /* must be first */
|
||||
|
||||
struct mac_address macaddr_list[8];
|
||||
|
||||
struct mutex mutex;
|
||||
|
||||
const u16 *beacon_offsets;
|
||||
|
||||
+1
-15
@@ -796,7 +796,7 @@ int mt76x2_register_device(struct mt76x2_dev *dev)
|
||||
struct wiphy *wiphy = hw->wiphy;
|
||||
void *status_fifo;
|
||||
int fifo_size;
|
||||
int i, ret;
|
||||
int ret;
|
||||
|
||||
fifo_size = roundup_pow_of_two(32 * sizeof(struct mt76x2_tx_status));
|
||||
status_fifo = devm_kzalloc(dev->mt76.dev, fifo_size, GFP_KERNEL);
|
||||
@@ -818,20 +818,6 @@ int mt76x2_register_device(struct mt76x2_dev *dev)
|
||||
hw->sta_data_size = sizeof(struct mt76x2_sta);
|
||||
hw->vif_data_size = sizeof(struct mt76x2_vif);
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(dev->macaddr_list); i++) {
|
||||
u8 *addr = dev->macaddr_list[i].addr;
|
||||
|
||||
memcpy(addr, dev->mt76.macaddr, ETH_ALEN);
|
||||
|
||||
if (!i)
|
||||
continue;
|
||||
|
||||
addr[0] |= BIT(1);
|
||||
addr[0] ^= ((i - 1) << 2);
|
||||
}
|
||||
wiphy->addresses = dev->macaddr_list;
|
||||
wiphy->n_addresses = ARRAY_SIZE(dev->macaddr_list);
|
||||
|
||||
wiphy->iface_combinations = if_comb;
|
||||
wiphy->n_iface_combinations = ARRAY_SIZE(if_comb);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user