ipq806x: Fix wireless support for Netgear Nighthawk X4S D7800
[openwrt/.git] / target / linux / ipq806x / base-files / etc / hotplug.d / ieee80211 / 10_fix_wifi_mac
index 1ae43526866c3b0adc5652c00de2f8036e3ac9f2..0da6e0be6767ebbc4ec4c59bef3180e1876bd91c 100644 (file)
@@ -15,9 +15,17 @@ case "$board" in
        c2600)
                echo $(macaddr_add $(mtd_get_mac_binary default-mac 8)  $(($PHYNBR - 1)) ) > /sys${DEVPATH}/macaddress
                ;;
+       d7800 |\
+       r7500v2 |\      
+       r7800)
+               echo $(macaddr_add $(mtd_get_mac_binary art 6)  $(($PHYNBR + 1)) ) > /sys${DEVPATH}/macaddress
+               ;;
        ea8500)
                echo $(macaddr_add $(mtd_get_mac_ascii devinfo hw_mac_addr) $(($PHYNBR + 1)) ) > /sys${DEVPATH}/macaddress
                ;;
+       vr2600v)
+               echo $(macaddr_add $(mtd_get_mac_binary default-mac 0)  $(($PHYNBR - 1)) ) > /sys${DEVPATH}/macaddress
+               ;;
        *)
                ;;
 esac