fix strange LED behavior with Netgear WGT634U (#3552)
SVN-Revision: 15290
This commit is contained in:
parent
d9310ce132
commit
6f80c9cc7c
2 changed files with 7 additions and 3 deletions
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
include $(INCLUDE_DIR)/kernel.mk
|
include $(INCLUDE_DIR)/kernel.mk
|
||||||
|
|
||||||
PKG_NAME:=kmod-switch
|
PKG_NAME:=kmod-switch
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
|
|
@ -68,6 +68,9 @@
|
||||||
#define bool int
|
#define bool int
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
extern char *nvram_get(const char *name);
|
||||||
|
|
||||||
/* Data structure for a Roboswitch device. */
|
/* Data structure for a Roboswitch device. */
|
||||||
struct robo_switch {
|
struct robo_switch {
|
||||||
char *device; /* The device name string (ethX) */
|
char *device; /* The device name string (ethX) */
|
||||||
|
@ -271,8 +274,9 @@ static int robo_switch_enable(void)
|
||||||
robo_write16(ROBO_CTRL_PAGE, i, 0);
|
robo_write16(ROBO_CTRL_PAGE, i, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* WAN port LED */
|
/* WAN port LED, except for Netgear WGT634U */
|
||||||
robo_write16(ROBO_CTRL_PAGE, 0x16, 0x1F);
|
if (strcmp(nvram_get("nvram_type"), "cfe"))
|
||||||
|
robo_write16(ROBO_CTRL_PAGE, 0x16, 0x1F);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue