Modify

Opened 11 years ago

Closed 10 years ago

#235 closed defect (duplicate)

WAP54G v1.0 diag

Reported by: anonymous Owned by: florian
Priority: normal Milestone:
Component: base system Version:
Keywords: Cc: vanekt@…

Description

Index: target/linux/package/diag/diag_led.c
===================================================================
--- target/linux/package/diag/diag_led.c        (revision 3032)
+++ target/linux/package/diag/diag_led.c        (working copy)
@@ -79,6 +79,13 @@
        }
 }

+static void wap1_set_diag(u8 state) {
+       set_gpio(1<<3,state);
+}
+static void wap1_set_dmz(u8 state) {
+       set_gpio(1<<4,state);
+}
+
 // - - - - -
 static void ignore(u8 ignored) {};

@@ -182,6 +189,15 @@
                                set_dmz=v1_set_dmz;
                                reset_gpio=(1<<6);
                        }
+                       if (simple_strtoul(buf, NULL, 0) == 2) {
+                               // wap54g v1.0
+                               // do not use strcmp as PMON v5.3.22 has some built-in nvram defaults
+                               // with trailing \r
+                               set_diag=wap1_set_diag;
+                               // no dmz led on wap54g, used green led labeled "WLAN Link" instead
+                               set_dmz=wap1_set_dmz;
+                               reset_gpio=(1<<0);
+                       }
                        if (!strcmp(buf,"asusX")) {
                                //asus wl-500g
                                reset_gpio=(1<<6);

Attachments (0)

Change History (2)

comment:1 Changed 10 years ago by florian

  • Owner changed from developers to florian

comment:2 Changed 10 years ago by florian

  • Resolution set to duplicate
  • Status changed from new to closed

Same as #293

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.