mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
ar71xx: ag71xx: fix MAC address setup
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20092 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -415,12 +415,12 @@ static void ag71xx_hw_set_macaddr(struct ag71xx *ag, unsigned char *mac)
|
||||
{
|
||||
u32 t;
|
||||
|
||||
t = (((u32) mac[0]) << 24) | (((u32) mac[1]) << 16)
|
||||
| (((u32) mac[2]) << 8) | ((u32) mac[3]);
|
||||
t = (((u32) mac[5]) << 24) | (((u32) mac[4]) << 16)
|
||||
| (((u32) mac[3]) << 8) | ((u32) mac[2]);
|
||||
|
||||
ag71xx_wr(ag, AG71XX_REG_MAC_ADDR1, t);
|
||||
|
||||
t = (((u32) mac[4]) << 24) | (((u32) mac[5]) << 16);
|
||||
t = (((u32) mac[1]) << 24) | (((u32) mac[0]) << 16);
|
||||
ag71xx_wr(ag, AG71XX_REG_MAC_ADDR2, t);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user