mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 21:36:52 +00:00
mt7615: use local MAC address for the second PHY
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+6
-1
@@ -405,7 +405,12 @@ int mt7615_register_ext_phy(struct mt7615_dev *dev)
|
||||
mphy->antenna_mask = BIT(hweight8(phy->chainmask)) - 1;
|
||||
mt7615_init_wiphy(mphy->hw);
|
||||
|
||||
mphy->hw->wiphy->perm_addr[5]++;
|
||||
/*
|
||||
* Make the secondary PHY MAC address local without overlapping with
|
||||
* the usual MAC address allocation scheme on multiple virtual interfaces
|
||||
*/
|
||||
mphy->hw->wiphy->perm_addr[0] |= 2;
|
||||
mphy->hw->wiphy->perm_addr[0] ^= BIT(7);
|
||||
|
||||
/* second phy can only handle 5 GHz */
|
||||
mphy->sband_2g.sband.n_channels = 0;
|
||||
|
||||
Reference in New Issue
Block a user