From 8e384ba8307742b54b2be326697a5dc2dec6880b Mon Sep 17 00:00:00 2001 From: Pramod Pancha Date: Fri, 5 Jul 2019 13:45:19 -0400 Subject: ath79: add support for Trendnet TEW-823DRU MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Trendnet TEW-823DRU is a dual-band AC1750 router. The router is based on Qualcomm/Atheros QCA9558 + QCA9880. Specification: 720 MHz CPU 256 MB of RAM 16 MB of FLASH 3T3R 2.4 GHz 3T3R 5 GHz 5x 10/100/1000 Mbps Ethernet Firmware can be flashed from the web interface. Tested on 3 routers with no issues. Signed-off-by: Pramod Pancha [whitespace fixes] Signed-off-by: Petr Štetiar --- .../ath79/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'target/linux/ath79/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac') 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 bf3e14aa9c..d9c3fe7440 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 @@ -34,6 +34,14 @@ case "$board" in [ "$PHYNBR" -eq 1 ] && \ k2t_get_mac "lan_mac" > /sys${DEVPATH}/macaddress ;; + trendnet,tew-823dru) + # set the 2.4G interface mac address to LAN MAC + [ "$PHYNBR" -eq 1 ] && \ + mtd_get_mac_text mac 4 > /sys${DEVPATH}/macaddress + # set the 5G interface mac address to WAN MAC + 1 + [ "$PHYNBR" -eq 0 ] && \ + macaddr_add "$(mtd_get_mac_text mac 24)" 1 > /sys${DEVPATH}/macaddress + ;; *) ;; esac -- cgit v1.2.3