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>

SVN-Revision: 38687
This commit is contained in:
Gabor Juhos 2013-11-07 22:31:53 +00:00
parent ece1323ed4
commit ddcce63c78
5 changed files with 23 additions and 4 deletions

View file

@ -83,6 +83,9 @@ get_status_led() {
mynet-n600) mynet-n600)
status_led="wd:blue:power" status_led="wd:blue:power"
;; ;;
mynet-rext)
status_led="wd:blue:power"
;;
mzk-w04nu | \ mzk-w04nu | \
mzk-w300nh) mzk-w300nh)
status_led="planex:green:status" status_led="planex:green:status"

View file

@ -102,6 +102,15 @@ mynet-n600)
ucidef_set_led_switch "lan4" "LAN4" "wd:green:lan4" "switch0" "0x04" 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) mzk-w04u)
ucidef_set_led_usbdev "usb" "USB" "planex:green:usb" "1-1" ucidef_set_led_usbdev "usb" "USB" "planex:green:usb" "1-1"
;; ;;

View file

@ -231,6 +231,7 @@ tl-wa901nd |\
tl-wa901nd-v2 |\ tl-wa901nd-v2 |\
tl-wr703n |\ tl-wr703n |\
wndap360 |\ wndap360 |\
mynet-rext |\
wp543) wp543)
ucidef_set_interface_lan "eth0" ucidef_set_interface_lan "eth0"
;; ;;

View file

@ -7,10 +7,13 @@
board=$(ar71xx_board_name) board=$(ar71xx_board_name)
wrt160nl_fixtrx() { fixtrx() {
mtd -o 32 fixtrx firmware mtd -o 32 fixtrx firmware
} }
if [ "${board}" == "wrt160nl" ]; then case "$board" in
wrt160nl_fixtrx mynet-rext |\
fi wrt160nl)
fixtrx
;;
esac

View file

@ -306,6 +306,9 @@ ar71xx_board_detect() {
*"My Net N600") *"My Net N600")
name="mynet-n600" name="mynet-n600"
;; ;;
*"WD My Net Wi-Fi Range Extender")
name="mynet-rext"
;;
*MZK-W04NU) *MZK-W04NU)
name="mzk-w04nu" name="mzk-w04nu"
;; ;;