| 17 | | WLMAC=$( ifconfig $wifi_ifname|grep HWaddr|sed -e "s/^.*HWaddr //" |sed -e "s/ //g" ) |
| | 18 | if [ "${DEVICE}" == "fonera20n" ]; then |
| | 19 | # The first few firmware versions had their MAC address |
| | 20 | # assignments swapped. This was later corrected, but a lot of |
| | 21 | # devices had been registered at fon with the "wrong" mac |
| | 22 | # address already. |
| | 23 | # To fix this, we send the eth0 (WAN) mac address instead of the |
| | 24 | # real public wifi mac address (which used to be the public wifi |
| | 25 | # mac address). |
| | 26 | wl_if=eth0.1 |
| | 27 | else |
| | 28 | wl_if=$wifi_ifname |
| | 29 | fi |
| | 30 | WLMAC=$( ifconfig $wl_if|grep HWaddr|sed -e "s/^.*HWaddr //" |sed -e "s/ //g" ) |