]> git.baikalelectronics.ru Git - kernel.git/commit
mt76: mt76x0: fix default mac address overwrite
authorLorenzo Bianconi <lorenzo@kernel.org>
Sat, 23 Nov 2019 22:42:22 +0000 (00:42 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 2 Dec 2019 14:49:05 +0000 (16:49 +0200)
commit693d060536abca7b16d2fb8e66aa56be2a2443a2
tree150cc5c15955c94767f42a1c9a52c16e83943f2c
parent22d0d5ae7a089967e9295a06694aa3e8a812b15e
mt76: mt76x0: fix default mac address overwrite

Current implementation always use default eeprom mac address to
configure device registers even if it is updated using
mt76_eeprom_override. Fix it initializing macaddr filed of mt76_dev data
structure with eeprom mac address and running mt76_eeprom_override
before mt76x02_mac_setaddr

Fixes: d1bc9bf2072c ("mt76: mt76x0: eeprom: add support for MAC address from OF")
Tested-by: Kevin Schmidt <kevin.patrick.schmidt@googlemail.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c