ar71xx: add user-space support for the WD My Net Wi-Fi Range Extender
authorGabor Juhos <juhosg@openwrt.org>
Thu, 7 Nov 2013 22:31:53 +0000 (22:31 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Thu, 7 Nov 2013 22:31:53 +0000 (22:31 +0000)
Patchwork: http://patchwork.openwrt.org/patch/4281/
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38687

target/linux/ar71xx/base-files/etc/diag.sh
target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
target/linux/ar71xx/base-files/etc/uci-defaults/02_network
target/linux/ar71xx/base-files/etc/uci-defaults/09_fix-trx-header [new file with mode: 0644]
target/linux/ar71xx/base-files/etc/uci-defaults/09_wrt160nl [deleted file]
target/linux/ar71xx/base-files/lib/ar71xx.sh

index 1cabd1058e82ef9dca4b7892d74a850a1efefdfb..e304fac71bf44f548ea53f45ee7b1c3c06c110eb 100755 (executable)
@@ -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"
index 5566bfa82d3437c368f12dfcb986ff711c15ba69..235a47578b5c02c1a28f2f80d3fe2859d314a2b7 100755 (executable)
@@ -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"
        ;;
index d953ed7cc863b16101412708444461b07e8661e2..bdf37ee2f7e7c7a823b58afe71967a39edc4128f 100755 (executable)
@@ -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_fix-trx-header b/target/linux/ar71xx/base-files/etc/uci-defaults/09_fix-trx-header
new file mode 100644 (file)
index 0000000..1bfd525
--- /dev/null
@@ -0,0 +1,19 @@
+#!/bin/sh
+#
+# Copyright (C) 2010 OpenWrt.org
+#
+
+. /lib/ar71xx.sh
+
+board=$(ar71xx_board_name)
+
+fixtrx() {
+       mtd -o 32 fixtrx firmware
+}
+
+case "$board" in
+mynet-rext |\
+wrt160nl)
+       fixtrx
+       ;;
+esac
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/09_wrt160nl b/target/linux/ar71xx/base-files/etc/uci-defaults/09_wrt160nl
deleted file mode 100755 (executable)
index dce28dd..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-#
-# Copyright (C) 2010 OpenWrt.org
-#
-
-. /lib/ar71xx.sh
-
-board=$(ar71xx_board_name)
-
-wrt160nl_fixtrx() {
-       mtd -o 32 fixtrx firmware
-}
-
-if [ "${board}" == "wrt160nl" ]; then
-       wrt160nl_fixtrx
-fi
index cd03168857ccbf53feb64974424c5600ca971cbe..e1cedf6f06a5cba220fb844c001fd1c6017f2fbb 100755 (executable)
@@ -306,6 +306,9 @@ ar71xx_board_detect() {
        *"My Net N600")
                name="mynet-n600"
                ;;
+       *"WD My Net Wi-Fi Range Extender")
+               name="mynet-rext"
+               ;;
        *MZK-W04NU)
                name="mzk-w04nu"
                ;;