qualcommax: ipq807x support Netgear Orbi Pro SXK80
[openwrt/staging/pepe2k.git] / target / linux / qualcommax / ipq807x / base-files / etc / hotplug.d / ieee80211 / 11_fix_wifi_mac
index 17284a0d9ea82ba9108ef30f8f741cc0bb2b23a1..9552536ade6d68b117f97788b5fce27c293ac0f5 100644 (file)
@@ -23,6 +23,13 @@ case "$board" in
                [ "$PHYNBR" = "0" ] && macaddr_add $(get_mac_label) 2 > /sys${DEVPATH}/macaddress
                [ "$PHYNBR" = "1" ] && macaddr_add $(get_mac_label) 3 > /sys${DEVPATH}/macaddress
                ;;
+       netgear,sxr80|\
+       netgear,sxs80)
+               [ "$PHYNBR" = "0" ] && mtd_get_mac_binary boarddata1 0x0c > /sys${DEVPATH}/macaddress
+               #boarddata1 doesn't have a MAC for the 2G interface
+               [ "$PHYNBR" = "1" ] && macaddr_setbit_la $(get_mac_label) > /sys${DEVPATH}/macaddress
+               [ "$PHYNBR" = "2" ] && mtd_get_mac_binary boarddata1 0x12 > /sys${DEVPATH}/macaddress
+               ;;
        zbtlink,zbt-z800ax)
                [ "$PHYNBR" = "0" ] && macaddr_add $(get_mac_label) -1 > /sys${DEVPATH}/macaddress
                [ "$PHYNBR" = "1" ] && macaddr_add $(get_mac_label) -2 > /sys${DEVPATH}/macaddress