mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-25 03:01:09 +02:00
[ar71xx] parse dot-separated MAC address (patch by Jonas <jmajau@ubnt.com>)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14371 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
629f24b39c
commit
370f0f638b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user