projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ar71xx: change PHY select logic, and update phy_masks
[openwrt.git]
/
target
/
linux
/
ar71xx
/
files
/
drivers
/
net
/
ag71xx
/
ag71xx_main.c
diff --git
a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c
b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c
index
06a1f67
..
4519ec8
100644
(file)
--- a/
target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c
+++ b/
target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c
@@
-415,12
+415,12
@@
static void ag71xx_hw_set_macaddr(struct ag71xx *ag, unsigned char *mac)
{
u32 t;
{
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);
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);
}
ag71xx_wr(ag, AG71XX_REG_MAC_ADDR2, t);
}
This page took
0.021039 seconds
and
4
git commands to generate.