ath79: apply alphabetical sorting to entries in 10_fix_wifi_mac
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Thu, 5 Sep 2019 13:25:26 +0000 (15:25 +0200)
committerJohn Crispin <john@phrozen.org>
Mon, 21 Oct 2019 12:22:47 +0000 (14:22 +0200)
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ath79/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac

index 52efd8baaa22a31e1c65817d4da4f7c2ade86afd..8c8b7932bc60e7cc5ccdf698d74f067965847483 100644 (file)
@@ -17,16 +17,16 @@ case "$board" in
        adtran,bsap1840)
                macaddr_add "$(mtd_get_mac_binary 'Board data' 2)" $(($PHYNBR * 8 + 1)) > /sys${DEVPATH}/macaddress
                ;;
-       iodata,wn-ag300dgr)
+       iodata,wn-ac1600dgr)
                # There is no eeprom data for 5 GHz wlan in "art" partition
                # which would allow to patch the macaddress
-               [ "$PHYNBR" -eq 1 ] && \
+               [ "$PHYNBR" -eq 0 ] && \
                        macaddr_add "$(mtd_get_mac_ascii u-boot-env ethaddr)" 1 > /sys${DEVPATH}/macaddress
                ;;
-       iodata,wn-ac1600dgr)
+       iodata,wn-ag300dgr)
                # There is no eeprom data for 5 GHz wlan in "art" partition
                # which would allow to patch the macaddress
-               [ "$PHYNBR" -eq 0 ] && \
+               [ "$PHYNBR" -eq 1 ] && \
                        macaddr_add "$(mtd_get_mac_ascii u-boot-env ethaddr)" 1 > /sys${DEVPATH}/macaddress
                ;;
        phicomm,k2t)