mt76: mt76x0: eeprom: add support for MAC address from OF
mt76x0e driver only supports MAC addresses from calibration data eeprom. Many routers however do not have a valid stock address set in this field. This patch makes it possible to take a MAC address from OF (e.g. from mtd). Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com> [adjusted for kernel submission] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
3e0705acd4
commit
d1bc9bf207
@ -343,6 +343,7 @@ int mt76x0_eeprom_init(struct mt76x02_dev *dev)
|
||||
version, fae);
|
||||
|
||||
mt76x02_mac_setaddr(dev, dev->mt76.eeprom.data + MT_EE_MAC_ADDR);
|
||||
mt76_eeprom_override(&dev->mt76);
|
||||
mt76x0_set_chip_cap(dev);
|
||||
mt76x0_set_freq_offset(dev);
|
||||
mt76x0_set_temp_offset(dev);
|
||||
|
Loading…
Reference in New Issue
Block a user