Skip to content

Commit

Permalink
mt7615: use local MAC address for the second PHY
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed Jan 16, 2020
1 parent 43db699 commit 161d1c7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mt7615/init.c
Expand Up @@ -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;
Expand Down

0 comments on commit 161d1c7

Please sign in to comment.