aboutsummaryrefslogtreecommitdiffstats
path: root/package/switch/src
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2009-04-20 10:27:46 +0000
committerFlorian Fainelli <florian@openwrt.org>2009-04-20 10:27:46 +0000
commit6f80c9cc7c34936b38823acbce18e101eac7dd84 (patch)
treeb74844a024a075c353e0d451f0bbec88a1a550c6 /package/switch/src
parentd9310ce132fffc43e417482df62541c0153d44b8 (diff)
downloadupstream-6f80c9cc7c34936b38823acbce18e101eac7dd84.tar.gz
upstream-6f80c9cc7c34936b38823acbce18e101eac7dd84.tar.bz2
upstream-6f80c9cc7c34936b38823acbce18e101eac7dd84.zip
fix strange LED behavior with Netgear WGT634U (#3552)
SVN-Revision: 15290
Diffstat (limited to 'package/switch/src')
-rw-r--r--package/switch/src/switch-robo.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/package/switch/src/switch-robo.c b/package/switch/src/switch-robo.c
index 5733d5024e..46abc94e90 100644
--- a/package/switch/src/switch-robo.c
+++ b/package/switch/src/switch-robo.c
@@ -68,6 +68,9 @@
#define bool int
#endif
+
+extern char *nvram_get(const char *name);
+
/* Data structure for a Roboswitch device. */
struct robo_switch {
char *device; /* The device name string (ethX) */
@@ -271,8 +274,9 @@ static int robo_switch_enable(void)
robo_write16(ROBO_CTRL_PAGE, i, 0);
}
- /* WAN port LED */
- robo_write16(ROBO_CTRL_PAGE, 0x16, 0x1F);
+ /* WAN port LED, except for Netgear WGT634U */
+ if (strcmp(nvram_get("nvram_type"), "cfe"))
+ robo_write16(ROBO_CTRL_PAGE, 0x16, 0x1F);
return 0;
}