rt2x00: Remove MAC80211_LEDS dependency
Implement triggers inside rt2x00 itself based on input from mac80211. This replaces the method of using the mac80211 trigger events which do not work for USB drivers due to the scheduling requirement. After this patch RT2500USB_LEDS and RT73USB_LEDS no longer need to be tagged as broken since they now support LED handling again without having to check for in_atomic(). Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
e0b005fa14
commit
a2e1d52a32
@@ -185,6 +185,8 @@ static inline void rt2x00rfkill_resume(struct rt2x00_dev *rt2x00dev)
|
||||
*/
|
||||
#ifdef CONFIG_RT2X00_LIB_LEDS
|
||||
void rt2x00leds_led_quality(struct rt2x00_dev *rt2x00dev, int rssi);
|
||||
void rt2x00leds_led_assoc(struct rt2x00_dev *rt2x00dev, bool enabled);
|
||||
void rt2x00leds_led_radio(struct rt2x00_dev *rt2x00dev, bool enabled);
|
||||
void rt2x00leds_register(struct rt2x00_dev *rt2x00dev);
|
||||
void rt2x00leds_unregister(struct rt2x00_dev *rt2x00dev);
|
||||
void rt2x00leds_suspend(struct rt2x00_dev *rt2x00dev);
|
||||
@@ -195,6 +197,16 @@ static inline void rt2x00leds_led_quality(struct rt2x00_dev *rt2x00dev,
|
||||
{
|
||||
}
|
||||
|
||||
static inline void rt2x00leds_led_assoc(struct rt2x00_dev *rt2x00dev,
|
||||
bool enabled)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void rt2x00leds_led_radio(struct rt2x00_dev *rt2x00dev,
|
||||
bool enabled)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void rt2x00leds_register(struct rt2x00_dev *rt2x00dev)
|
||||
{
|
||||
}
|
||||
|
Reference in New Issue
Block a user