ath79: add support for Bluesocket BSAP1880 board
[openwrt/staging/chunkeey.git] / target / linux / ath79 / base-files / etc / hotplug.d / ieee80211 / 10_fix_wifi_mac
index bdb8b71ff72a60b013f0235a30068750c3f73640..bf3e14aa9c7da8de9e2741d6eaca1e69e3be846f 100644 (file)
@@ -13,6 +13,10 @@ PHYNBR=${DEVPATH##*/phy}
 board=$(board_name)
 
 case "$board" in
+       adtran,bsap1800-v2|\
+       adtran,bsap1840)
+               macaddr_add "$(mtd_get_mac_binary 'Board data' 2)" $(($PHYNBR * 8 + 1)) > /sys${DEVPATH}/macaddress
+               ;;
        iodata,wn-ag300dgr)
                # There is no eeprom data for 5 GHz wlan in "art" partition
                # which would allow to patch the macaddress