mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-30 18:14:04 +02:00
fix mac handling, thanks to Kestutis Kupciunas
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6278 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
e58a0e8a07
commit
1e162b97a8
@ -296,7 +296,10 @@ int __init ar2313_probe(struct platform_device *pdev)
|
|||||||
memcpy(dev->dev_addr, def_mac, 6);
|
memcpy(dev->dev_addr, def_mac, 6);
|
||||||
} else {
|
} else {
|
||||||
memcpy(dev->dev_addr, ((u8 *)configstart)+102, 6);
|
memcpy(dev->dev_addr, ((u8 *)configstart)+102, 6);
|
||||||
}
|
/* use the other MAC slot if the first one is empty */
|
||||||
|
if (!memcmp(dev->dev_addr, "\xff\xff\xff\xff\xff\xff", 6))
|
||||||
|
memcpy(dev->dev_addr, ((u8 *)configstart)+102 + 6, 6);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sp->board_idx = BOARD_IDX_STATIC;
|
sp->board_idx = BOARD_IDX_STATIC;
|
||||||
|
Loading…
Reference in New Issue
Block a user