Skip to content

Commit

Permalink
mt76: mt7615: increment the MAC address of the secondary PHY (DBDC)
Browse files Browse the repository at this point in the history
The hardware does not support using the same MAC address for interfaces,
even if they are on different bands.
In the future this will be made configurable via device tree

Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed Jan 13, 2020
1 parent 8f33a1e commit 43db699
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mt7615/init.c
Expand Up @@ -405,6 +405,8 @@ 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]++;

/* second phy can only handle 5 GHz */
mphy->sband_2g.sband.n_channels = 0;
mphy->hw->wiphy->bands[NL80211_BAND_2GHZ] = NULL;
Expand Down

0 comments on commit 43db699

Please sign in to comment.