diff options
author | Pramod Pancha <pancha@vill.com> | 2019-07-05 13:45:19 -0400 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2019-07-18 00:06:55 +0200 |
commit | 8e384ba8307742b54b2be326697a5dc2dec6880b (patch) | |
tree | 4d5d2ed684c7b97fb33144a4eef2e246fc0d13f9 /target/linux/ath79/base-files/etc/hotplug.d | |
parent | 6fde0b735c455f834b1ffc10d38c24f056839b29 (diff) | |
download | upstream-8e384ba8307742b54b2be326697a5dc2dec6880b.tar.gz upstream-8e384ba8307742b54b2be326697a5dc2dec6880b.tar.bz2 upstream-8e384ba8307742b54b2be326697a5dc2dec6880b.zip |
ath79: add support for Trendnet TEW-823DRU
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 <pancha@vill.com>
[whitespace fixes]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'target/linux/ath79/base-files/etc/hotplug.d')
-rw-r--r-- | target/linux/ath79/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac | 8 |
1 files changed, 8 insertions, 0 deletions
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 |