Commit ebfe373c authored by Tomasz Wlostowski's avatar Tomasz Wlostowski

userspace/wrsw_hal/hal_ports.c: fixed interface name parsing bug causing…

userspace/wrsw_hal/hal_ports.c: fixed interface name parsing bug causing assignment of identical MAC addresses to all ports
parent 2ef26616
......@@ -120,8 +120,7 @@ static int get_mac_address(const char *if_name, uint8_t *mac_addr)
int idx;
int uniq_num;
idx = (if_name[2] == 'u' ? 32 : 0) + (if_name[3] - '0');
sscanf(if_name, "wr%d", &idx);
strncpy(ifr.ifr_name, "eth0", sizeof(ifr.ifr_name));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment