X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Fath79%2Fgeneric%2Fbase-files%2Fetc%2Fhotplug.d%2Fieee80211%2F10_fix_wifi_mac;h=42b69d2ca0c4dde9ce4e8da2791e7d46e69212c6;hb=32098554d911f092b9779e4768bf6d819d850bb5;hp=8c8b7932bc60e7cc5ccdf698d74f067965847483;hpb=0130022baec0a90c6cb039a5cbe9b9c65c01672f;p=openwrt%2Fstaging%2Fhauke.git diff --git a/target/linux/ath79/generic/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac b/target/linux/ath79/generic/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac index 8c8b7932bc..42b69d2ca0 100644 --- a/target/linux/ath79/generic/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac +++ b/target/linux/ath79/generic/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac @@ -17,6 +17,36 @@ case "$board" in adtran,bsap1840) macaddr_add "$(mtd_get_mac_binary 'Board data' 2)" $(($PHYNBR * 8 + 1)) > /sys${DEVPATH}/macaddress ;; + dlink,covr-p2500-a1) + [ "$PHYNBR" -eq 0 ] && \ + mtd_get_mac_ascii art "protest_ath1_mac" > /sys${DEVPATH}/macaddress + [ "$PHYNBR" -eq 1 ] && \ + mtd_get_mac_ascii art "protest_ath0_mac" > /sys${DEVPATH}/macaddress + ;; + dlink,dap-1330-a1|\ + dlink,dap-1365-a1|\ + dlink,dch-g020-a1) + mtd_get_mac_text "mp" 0x13 > /sys${DEVPATH}/macaddress + ;; + dlink,dap-2230-a1|\ + dlink,dap-3320-a1) + mtd_get_mac_ascii bdcfg "wlanmac" > /sys${DEVPATH}/macaddress + ;; + dlink,dap-2660-a1|\ + dlink,dap-2680-a1|\ + dlink,dap-2695-a1|\ + dlink,dap-3662-a1) + [ "$PHYNBR" -eq 0 ] && \ + mtd_get_mac_ascii bdcfg "wlanmac_a" > /sys${DEVPATH}/macaddress + [ "$PHYNBR" -eq 1 ] && \ + mtd_get_mac_ascii bdcfg "wlanmac" > /sys${DEVPATH}/macaddress + ;; + engenius,epg5000|\ + engenius,esr1200|\ + engenius,esr1750|\ + engenius,esr900) + macaddr_add "$(mtd_get_mac_ascii u-boot-env ethaddr)" "$PHYNBR" > /sys${DEVPATH}/macaddress + ;; iodata,wn-ac1600dgr) # There is no eeprom data for 5 GHz wlan in "art" partition # which would allow to patch the macaddress @@ -34,6 +64,9 @@ case "$board" in [ "$PHYNBR" -eq 1 ] && \ k2t_get_mac "lan_mac" > /sys${DEVPATH}/macaddress ;; + siemens,ws-ap3610) + mtd_get_mac_ascii cfg1 RADIOADDR${PHYNBR} > /sys${DEVPATH}/macaddress + ;; trendnet,tew-823dru) # set the 2.4G interface mac address to LAN MAC [ "$PHYNBR" -eq 1 ] && \ @@ -42,4 +75,17 @@ case "$board" in [ "$PHYNBR" -eq 0 ] && \ macaddr_add "$(mtd_get_mac_text mac 0x18)" 1 > /sys${DEVPATH}/macaddress ;; + zyxel,nbg6616) + # Set mac address for 2.4g device + [ "$PHYNBR" -eq 1 ] && \ + mtd_get_mac_ascii u-boot-env ethaddr > /sys${DEVPATH}/macaddress + ;; + zyxel,nwa1123-ac) + [ "$PHYNBR" -eq 0 ] && \ + mtd_get_mac_text mib0 0x66 > /sys${DEVPATH}/macaddress + ;; + zyxel,nwa1123-ni) + [ "$PHYNBR" -eq 1 ] && \ + mtd_get_mac_text mib0 0x66 > /sys${DEVPATH}/macaddress + ;; esac