aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files/etc
diff options
context:
space:
mode:
authorHenryk Heisig <hyniu@o2.pl>2016-10-30 17:57:27 +0100
committerJohn Crispin <john@phrozen.org>2016-10-31 17:13:37 +0100
commit8cc0c34ef550ac2f842fe6811d32ac01af69d19f (patch)
tree3e77004c12dff9b8324634c039016d292e13c31a /target/linux/ar71xx/base-files/etc
parent15a14cf1665ef3d8b5c77cce69b52d131340e3b3 (diff)
downloadupstream-8cc0c34ef550ac2f842fe6811d32ac01af69d19f.tar.gz
upstream-8cc0c34ef550ac2f842fe6811d32ac01af69d19f.tar.bz2
upstream-8cc0c34ef550ac2f842fe6811d32ac01af69d19f.zip
ar71xx: Add support to Powerline ac TP-Link WPA8630
Signed-off-by: Henryk Heisig <hyniu@o2.pl>
Diffstat (limited to 'target/linux/ar71xx/base-files/etc')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/01_leds5
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/02_network4
-rw-r--r--target/linux/ar71xx/base-files/etc/diag.sh3
-rw-r--r--target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata4
4 files changed, 15 insertions, 1 deletions
diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds
index a32ca9101e..01308b5f57 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -638,6 +638,11 @@ wnr612-v2)
ucidef_set_led_switch "lan1" "LAN1" "netgear:green:lan1" "switch0" "0x02" "0x0f"
ucidef_set_led_switch "lan2" "LAN2" "netgear:green:lan2" "switch0" "0x04" "0x0f"
;;
+wpa8630)
+ ucidef_set_led_netdev "wlan5" "WLAN5" "$board:green:wlan5" "wlan0"
+ ucidef_set_led_netdev "wlan" "WLAN" "$board:green:wlan" "wlan1"
+ ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0"
+ ;;
wpn824n)
ucidef_set_led_netdev "wan-amber" "WAN (amber)" "netgear:amber:wan" "eth0"
ucidef_set_led_wlan "wlan" "WLAN" "netgear:blue:wlan" "phy0tpt"
diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network
index ab7404d4f3..e6489af876 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -398,6 +398,10 @@ ar71xx_setup_interfaces()
ucidef_add_switch_port_attr "switch0" 2 led 9
ucidef_add_switch_port_attr "switch0" 5 led 2
;;
+ wpa8630)
+ ucidef_add_switch "switch0" \
+ "0@eth0" "2:lan:3" "3:lan:2" "4:lan:1" "5:lan:4"
+ ;;
wpj344)
ucidef_add_switch "switch0" \
"0@eth0" "3:lan" "2:wan"
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 475cb80397..8b038e47ee 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -43,7 +43,8 @@ get_status_led() {
ap83|\
mr12|\
mr16|\
- nbg6616)
+ nbg6616|\
+ wpa8630)
status_led="$board:green:power"
;;
ap96)
diff --git a/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
index 5a48b06a36..c95cfb9ec4 100644
--- a/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
+++ b/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
@@ -90,6 +90,10 @@ case "$FIRMWARE" in
unifiac-pro)
ath10kcal_extract "EEPROM" 20480 2116
;;
+ wpa8630)
+ ath10kcal_extract "ART" 20480 2116
+ ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) +1)
+ ;;
esac
;;
"ath10k/cal-pci-0000:01:00.0.bin")