aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files/etc
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-11-07 22:31:53 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-11-07 22:31:53 +0000
commit599862efa3ccbdef88ba664c287d764efcec8a39 (patch)
treec46821cbf87ee668a65cea6bbde670f8cbeee0ab /target/linux/ar71xx/base-files/etc
parent8ffa1ad83f9c4faa25fc67e8dee5c4b9a2032c28 (diff)
downloadupstream-599862efa3ccbdef88ba664c287d764efcec8a39.tar.gz
upstream-599862efa3ccbdef88ba664c287d764efcec8a39.tar.bz2
upstream-599862efa3ccbdef88ba664c287d764efcec8a39.zip
ar71xx: add user-space support for the WD My Net Wi-Fi Range Extender
Patchwork: http://patchwork.openwrt.org/patch/4281/ Signed-off-by: Christian Lamparter <chunkeey@googlemail.com> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38687 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/base-files/etc')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/diag.sh3
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/01_leds9
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/02_network1
-rw-r--r--[-rwxr-xr-x]target/linux/ar71xx/base-files/etc/uci-defaults/09_fix-trx-header (renamed from target/linux/ar71xx/base-files/etc/uci-defaults/09_wrt160nl)11
4 files changed, 20 insertions, 4 deletions
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 1cabd1058e..e304fac71b 100755
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -83,6 +83,9 @@ get_status_led() {
mynet-n600)
status_led="wd:blue:power"
;;
+ mynet-rext)
+ status_led="wd:blue:power"
+ ;;
mzk-w04nu | \
mzk-w300nh)
status_led="planex:green:status"
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
index 5566bfa82d..235a47578b 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
@@ -102,6 +102,15 @@ mynet-n600)
ucidef_set_led_switch "lan4" "LAN4" "wd:green:lan4" "switch0" "0x04"
;;
+mynet-rext)
+ ucidef_set_led_netdev "lan" "LAN" "wd:blue:ethernet" "eth0"
+ ucidef_set_rssimon "wlan0" "40000" "1"
+ ucidef_set_led_rssi "rssilow" "RSSILOW" "wd:blue:quality1" "wlan0" "1" "40" "0" "6"
+ ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "wd:blue:quality2" "wlan0" "30" "80" "-29" "5"
+ ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "wd:blue:quality3" "wlan0" "70" "100" "-69" "8"
+ ucidef_set_led_wlan "wlan" "WLAN" "wd:blue:wireless" "phy0tpt"
+ ;;
+
mzk-w04u)
ucidef_set_led_usbdev "usb" "USB" "planex:green:usb" "1-1"
;;
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
index d953ed7cc8..bdf37ee2f7 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
@@ -231,6 +231,7 @@ tl-wa901nd |\
tl-wa901nd-v2 |\
tl-wr703n |\
wndap360 |\
+mynet-rext |\
wp543)
ucidef_set_interface_lan "eth0"
;;
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/09_wrt160nl b/target/linux/ar71xx/base-files/etc/uci-defaults/09_fix-trx-header
index dce28dde94..1bfd5253eb 100755..100644
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/09_wrt160nl
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/09_fix-trx-header
@@ -7,10 +7,13 @@
board=$(ar71xx_board_name)
-wrt160nl_fixtrx() {
+fixtrx() {
mtd -o 32 fixtrx firmware
}
-if [ "${board}" == "wrt160nl" ]; then
- wrt160nl_fixtrx
-fi
+case "$board" in
+mynet-rext |\
+wrt160nl)
+ fixtrx
+ ;;
+esac