Changeset 15290


Ignore:
Timestamp:
2009-04-20T12:27:46+02:00 (9 years ago)
Author:
florian
Message:

[package] fix strange LED behavior with Netgear WGT634U (#3552)

Location:
trunk/package/switch
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/switch/Makefile

    r15245 r15290  
    1010 
    1111PKG_NAME:=kmod-switch 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414include $(INCLUDE_DIR)/package.mk 
  • trunk/package/switch/src/switch-robo.c

    r14825 r15290  
    6969#endif 
    7070 
     71 
     72extern char *nvram_get(const char *name); 
     73 
    7174/* Data structure for a Roboswitch device. */ 
    7275struct robo_switch { 
     
    272275        } 
    273276 
    274         /* WAN port LED */ 
    275         robo_write16(ROBO_CTRL_PAGE, 0x16, 0x1F); 
     277        /* WAN port LED, except for Netgear WGT634U */ 
     278        if (strcmp(nvram_get("nvram_type"), "cfe")) 
     279                robo_write16(ROBO_CTRL_PAGE, 0x16, 0x1F); 
    276280 
    277281        return 0; 
Note: See TracChangeset for help on using the changeset viewer.