Skip to content

Commit

Permalink
Staging: rtl819su: added r8192SU_led.c/.h
Browse files Browse the repository at this point in the history
added the necessary infrastructure for the leds on the device
this is a port from Realteks driver.

leds are now working partially.

Signed-off-by: Florian Schilhabel <florian.c.schilhabel@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Florian Schilhabel authored and Greg Kroah-Hartman committed May 14, 2010
1 parent 7d8e737 commit 5c2af91
Show file tree
Hide file tree
Showing 5 changed files with 2,466 additions and 26 deletions.
1 change: 1 addition & 0 deletions drivers/staging/rtl8192su/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ r8192s_usb-objs := \
r8192S_Efuse.o \
r8192U_core.o \
r8192U_pm.o \
r8192SU_led.o \
ieee80211/ieee80211_crypt.o \
ieee80211/ieee80211_crypt_tkip.o \
ieee80211/ieee80211_crypt_ccmp.o \
Expand Down
24 changes: 13 additions & 11 deletions drivers/staging/rtl8192su/ieee80211/ieee80211_r8192s.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,18 +172,20 @@ enum {
IG_Max
};

typedef enum _LED_CTL_MODE {
LED_CTL_POWER_ON = 1,
LED_CTL_LINK = 2,
LED_CTL_NO_LINK = 3,
LED_CTL_TX = 4,
LED_CTL_RX = 5,
LED_CTL_SITE_SURVEY = 6,
LED_CTL_POWER_OFF = 7,
LED_CTL_START_TO_LINK = 8,
LED_CTL_START_WPS = 9,
LED_CTL_STOP_WPS = 10,
typedef enum _LED_CTL_MODE{
LED_CTL_POWER_ON = 1,
LED_CTL_LINK = 2,
LED_CTL_NO_LINK = 3,
LED_CTL_TX = 4,
LED_CTL_RX = 5,
LED_CTL_SITE_SURVEY = 6,
LED_CTL_POWER_OFF = 7,
LED_CTL_START_TO_LINK = 8,
LED_CTL_START_WPS = 9,
LED_CTL_STOP_WPS = 10,
LED_CTL_START_WPS_BOTTON = 11,
LED_CTL_STOP_WPS_FAIL = 12,
LED_CTL_STOP_WPS_FAIL_OVERLAP = 13,
} LED_CTL_MODE;

typedef union _frameqos {
Expand Down
Loading

0 comments on commit 5c2af91

Please sign in to comment.