From 53c3a56c0674f3deb1f58e1c18eca3f87bc7a584 Mon Sep 17 00:00:00 2001 From: Fedor Date: Sat, 27 Feb 2010 02:05:18 -0500 Subject: [PATCH] Netgear WNR3500L: correct leds behavior --- release/src/router/rc/buttons.c | 1 + release/src/router/shared/led.c | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/release/src/router/rc/buttons.c b/release/src/router/rc/buttons.c index 461c82fdde..28934682c4 100644 --- a/release/src/router/rc/buttons.c +++ b/release/src/router/rc/buttons.c @@ -153,6 +153,7 @@ int buttons_main(int argc, char *argv[]) case MODEL_WNR3500L: reset_mask = 1 << 4; ses_mask = 1 << 6; + ses_led = LED_WHITE; break; default: get_btn("btn_ses", &ses_mask, &ses_pushed); diff --git a/release/src/router/shared/led.c b/release/src/router/shared/led.c index e2a15d7221..8cf2733c2f 100644 --- a/release/src/router/shared/led.c +++ b/release/src/router/shared/led.c @@ -178,18 +178,18 @@ int nvget_gpio(const char *name, int *gpio, int *inv) int led(int which, int mode) { -// WLAN DIAG WHITE AMBER DMZ AOSS BRIDG MYST -// ----- ----- ----- ----- ----- ----- ----- ----- - static int wrt54g[] = { 0, 1, 2, 3, 7, 255, 255, 255 }; - static int wrtsl[] = { 255, 1, 5, 7, 0, 255, 255, 255 }; - static int whrg54[] = { 2, 7, 255, 255, 255, 6, 1, 3 }; +// WLAN DIAG WHITE AMBER DMZ AOSS BRIDG MYST +// ----- ----- ----- ----- ----- ----- ----- ----- + static int wrt54g[] = { 0, 1, 2, 3, 7, 255, 255, 255 }; + static int wrtsl[] = { 255, 1, 5, 7, 0, 255, 255, 255 }; + static int whrg54[] = { 2, 7, 255, 255, 255, 6, 1, 3 }; static int wbr2g54[] = { 255, -1, 255, 255, 255, -6, 255, 255 }; - static int wzrg54[] = { 2, 7, 255, 255, 255, 6, 255, 255 }; + static int wzrg54[] = { 2, 7, 255, 255, 255, 6, 255, 255 }; static int wr850g1[] = { 7, 3, 255, 255, 255, 255, 255, 255 }; static int wr850g2[] = { 0, 1, 255, 255, 255, 255, 255, 255 }; static int wtr54gs[] = { 1, -1, 255, 255, 255, 255, 255, 255 }; static int dir320[] = { -99, 1, 4, 3, 255, 255, 255, -5 }; - static int wnr3500[] = { 255, 1, 3, 7, 255, 255, 255, 255 }; + static int wnr3500[] = { 255, 3, 1, 7, 255, 2, 255, 255 }; char s[16]; int n; int b; -- 2.11.4.GIT