aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/base-files/etc/board.d/02_network
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2018-08-13 23:10:47 +0300
committerMathias Kresin <dev@kresin.me>2018-08-14 10:19:37 +0200
commit437e35f8a3988cadf8797354e78cce3696b90916 (patch)
tree98c67f09d8c87880f67b18ec73f71ed3bc0145ca /target/linux/ath79/base-files/etc/board.d/02_network
parentb2a33d5463e88b74b021711d7f392edeafe61041 (diff)
downloadupstream-437e35f8a3988cadf8797354e78cce3696b90916.tar.gz
upstream-437e35f8a3988cadf8797354e78cce3696b90916.tar.bz2
upstream-437e35f8a3988cadf8797354e78cce3696b90916.zip
ath79: Add wifi to WNDR3700, WNDR3700v2 and WNDR3800
Add ath9k wifi capabilities to WNDR3700 family. * use kmod-owl-loader to load firmware from "art" * add wifi to DTS * add wifi LEDs Avoid using the same MAC for eth0 LAN and wlan0 by toggling the eth0 MAC into a locally administered MAC. That is currently done by in user-space by adding a uci config item into /etc/config/network (More elegant solution might be setting it already in preinit phase.) Known issues: * wifi firmware file may not get created on the first boot after flashing on time to bring wifi normally up. Likely the overlay jffs2 is not yet ready for creating the firmware file. "wifi up" may still bring wifi up. Wifi will work normally at subsequent boots. * phy0 and phy1 may get assigned mixed, so that phy0 may be the 5GHz radio instead of the normal 2.4GHz, and vice versa for phy1. Does not happen always, but may happen. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> [fix the wifi unit address in the dts] Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ath79/base-files/etc/board.d/02_network')
-rwxr-xr-xtarget/linux/ath79/base-files/etc/board.d/02_network5
1 files changed, 5 insertions, 0 deletions
diff --git a/target/linux/ath79/base-files/etc/board.d/02_network b/target/linux/ath79/base-files/etc/board.d/02_network
index 68f9523568..da98061d08 100755
--- a/target/linux/ath79/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/base-files/etc/board.d/02_network
@@ -160,6 +160,11 @@ ath79_setup_macs()
lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
wan_mac=$(mtd_get_mac_ascii u-boot-env wanaddr)
;;
+ netgear,wndr3700|\
+ netgear,wndr3700v2|\
+ netgear,wndr3800)
+ lan_mac=$(macaddr_setbit_la "$(mtd_get_mac_binary art 0)")
+ ;;
phicomm,k2t)
lan_mac=$(k2t_get_mac "lan_mac")
wan_mac=$(k2t_get_mac "wan_mac")