diff options
Diffstat (limited to 'target/linux/ath79/base-files/etc/hotplug.d')
-rw-r--r-- | target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom | 3 | ||||
-rw-r--r-- | target/linux/ath79/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom b/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom index c5cbac7514..e4d4a597a9 100644 --- a/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom +++ b/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom @@ -101,7 +101,8 @@ case "$FIRMWARE" in ath9k_eeprom_extract_reverse "urlader" 5441 1088 ;; iodata,wn-ac1167dgr|\ - iodata,wn-ac1600dgr2) + iodata,wn-ac1600dgr2|\ + iodata,wn-ag300dgr) ath9k_eeprom_extract "art" 4096 1088 ath9k_patch_fw_mac $(mtd_get_mac_ascii u-boot-env ethaddr) 2 ;; diff --git a/target/linux/ath79/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac b/target/linux/ath79/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac index fe5aa64a19..bb55b1c11c 100644 --- a/target/linux/ath79/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac +++ b/target/linux/ath79/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac @@ -13,6 +13,12 @@ PHYNBR=${DEVPATH##*/phy} board=$(board_name) case "$board" in + iodata,wn-ag300dgr) + # There is no eeprom data for 5 GHz wlan in "art" partition + # which would allow to patch the macaddress + [ "$PHYNBR" -eq 1 ] && \ + echo $(macaddr_add "$(mtd_get_mac_ascii u-boot-env ethaddr)" 1) > /sys${DEVPATH}/macaddress + ;; phicomm,k2t) # The K2T factory firmware does use LAN mac address as the 2.4G wifi mac address [ "$PHYNBR" -eq 1 ] && \ |