projects
/
openwrt
/
staging
/
wigyori.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d250fb
)
parse dot-separated MAC address (patch by Jonas <
[email protected]
>)
author
Gabor Juhos
<
[email protected]
>
Mon, 2 Feb 2009 19:37:57 +0000
(19:37 +0000)
committer
Gabor Juhos
<
[email protected]
>
Mon, 2 Feb 2009 19:37:57 +0000
(19:37 +0000)
SVN-Revision: 14371
target/linux/ar71xx/files/arch/mips/ar71xx/platform.c
patch
|
blob
|
history
diff --git
a/target/linux/ar71xx/files/arch/mips/ar71xx/platform.c
b/target/linux/ar71xx/files/arch/mips/ar71xx/platform.c
index d8ed28a431ad6df68148d3a6419b35d834bef9e4..6a29fc46a00429ed776b5e90bc17ba01ac8d0122 100644
(file)
--- a/
target/linux/ar71xx/files/arch/mips/ar71xx/platform.c
+++ b/
target/linux/ar71xx/files/arch/mips/ar71xx/platform.c
@@
-595,6
+595,10
@@
void __init ar71xx_parse_mac_addr(char *mac_str)
t = sscanf(mac_str, "%02hhx:%02hhx:%02hhx:%02hhx:%02hhx:%02hhx",
&tmp[0], &tmp[1], &tmp[2], &tmp[3], &tmp[4], &tmp[5]);
+ if (t != ETH_ALEN)
+ t = sscanf(mac_str, "%02hhx.%02hhx.%02hhx.%02hhx.%02hhx.%02hhx",
+ &tmp[0], &tmp[1], &tmp[2], &tmp[3], &tmp[4], &tmp[5]);
+
if (t == ETH_ALEN)
ar71xx_set_mac_base(tmp);
else