ramips: add support for YunCore AX820/HWAP-AX820
[openwrt/staging/nbd.git] / target / linux / ramips / mt7621 / base-files / etc / hotplug.d / ieee80211 / 10_fix_wifi_mac
index 711af4e3afb0362b6dbaa27cb2c9944950e5b50c..06d0500037febd3cf39693f5aa0f1f7f5188af00 100644 (file)
@@ -25,9 +25,12 @@ case "$board" in
                [ "$PHYNBR" = "1" ] && \
                        macaddr_add "$(mtd_get_mac_binary factory 0x4)" 1 > /sys${DEVPATH}/macaddress
                ;;
-       jcg,q20)
-               [ "$PHYNBR" = "1" ] && \
-                       macaddr_setbit_la "$(mtd_get_mac_binary Factory 0x4)" > /sys${DEVPATH}/macaddress
+       jcg,q20|\
+       yuncore,ax820)
+               if [ "$PHYNBR" = "1" ]; then
+                       base_mac=$(macaddr_add "$(mtd_get_mac_binary Factory 0x4)" 1)
+                       macaddr_setbit_la "$base_mac" > /sys${DEVPATH}/macaddress
+               fi
                ;;
        linksys,e5600|\
        linksys,ea7300-v1|\