mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: move hw mac_addr in mt76_phy
This is a preliminary patch to properly support mt7915 dbdc Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
231ef27697
commit
8aa24c91b1
+3
-3
@@ -16,7 +16,7 @@ mt76x2_eeprom_get_macaddr(struct mt76x02_dev *dev)
|
||||
{
|
||||
void *src = dev->mt76.eeprom.data + MT_EE_MAC_ADDR;
|
||||
|
||||
memcpy(dev->mt76.macaddr, src, ETH_ALEN);
|
||||
memcpy(dev->mphy.macaddr, src, ETH_ALEN);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -502,8 +502,8 @@ int mt76x2_eeprom_init(struct mt76x02_dev *dev)
|
||||
|
||||
mt76x02_eeprom_parse_hw_cap(dev);
|
||||
mt76x2_eeprom_get_macaddr(dev);
|
||||
mt76_eeprom_override(&dev->mt76);
|
||||
dev->mt76.macaddr[0] &= ~BIT(1);
|
||||
mt76_eeprom_override(&dev->mphy);
|
||||
dev->mphy.macaddr[0] &= ~BIT(1);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
+1
-1
@@ -69,7 +69,7 @@ mt76x2_fixup_xtal(struct mt76x02_dev *dev)
|
||||
|
||||
int mt76x2_mac_reset(struct mt76x02_dev *dev, bool hard)
|
||||
{
|
||||
const u8 *macaddr = dev->mt76.macaddr;
|
||||
const u8 *macaddr = dev->mphy.macaddr;
|
||||
u32 val;
|
||||
int i, k;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user