From 43db699b1ad87ad446808341b591b62b3d41948d Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 13 Jan 2020 21:49:03 +0100 Subject: [PATCH] mt76: mt7615: increment the MAC address of the secondary PHY (DBDC) 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 --- mt7615/init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mt7615/init.c b/mt7615/init.c index 58f281b0..86642866 100644 --- a/mt7615/init.c +++ b/mt7615/init.c @@ -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;