Skip to content

Commit 032a552

Browse files
LorenzoBianconiKalle Valo
authored and
Kalle Valo
committed
mt7601u: set device mac address in mt7601u_add_interface()
If mac80211 adds a vif with a different mac address respect to the eeprom one, the device will not be able to connect to the ap since the hw address has not been updated. Fix the issue updating hw mac address in mt7601u_add_interface routine BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1516935 Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
1 parent e96826b commit 032a552

File tree

1 file changed

+3
-0
lines changed
  • drivers/net/wireless/mediatek/mt7601u

1 file changed

+3
-0
lines changed

drivers/net/wireless/mediatek/mt7601u/main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ static int mt7601u_add_interface(struct ieee80211_hw *hw,
6464
*/
6565
mvif->idx = idx;
6666

67+
if (!ether_addr_equal(dev->macaddr, vif->addr))
68+
mt7601u_set_macaddr(dev, vif->addr);
69+
6770
if (dev->wcid_mask[wcid / BITS_PER_LONG] & BIT(wcid % BITS_PER_LONG))
6871
return -ENOSPC;
6972
dev->wcid_mask[wcid / BITS_PER_LONG] |= BIT(wcid % BITS_PER_LONG);

0 commit comments

Comments
 (0)