Ignore:
Timestamp:
2009-02-02T20:37:57+01:00 (7 years ago)
Author:
juhosg
Message:

[ar71xx] parse dot-separated MAC address (patch by Jonas <jmajau@…>)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/arch/mips/ar71xx/platform.c

    r14238 r14371  
    596596                        &tmp[0], &tmp[1], &tmp[2], &tmp[3], &tmp[4], &tmp[5]); 
    597597 
     598        if (t != ETH_ALEN) 
     599                t = sscanf(mac_str, "%02hhx.%02hhx.%02hhx.%02hhx.%02hhx.%02hhx", 
     600                        &tmp[0], &tmp[1], &tmp[2], &tmp[3], &tmp[4], &tmp[5]); 
     601 
    598602        if (t == ETH_ALEN) 
    599603                ar71xx_set_mac_base(tmp); 
Note: See TracChangeset for help on using the changeset viewer.