Ignore:
Timestamp:
2010-11-27T23:11:13+01:00 (6 years ago)
Author:
nbd
Message:

mac80211: add pending patches for throughput based led blinking and replace the broken ath9k blinking code with it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/mac80211/patches/008-led_default.patch

    r24017 r24159  
    3737 # Atheros 
    3838 CONFIG_ATH_COMMON=m 
    39 --- a/drivers/net/wireless/ath/ath9k/gpio.c 
    40 +++ b/drivers/net/wireless/ath/ath9k/gpio.c 
    41 @@ -54,6 +54,7 @@ static void ath_led_blink_work(struct wo 
    42                 sc->sc_flags |= SC_OP_LED_ON; 
    43  } 
    44   
    45 +#ifdef CONFIG_LEDS_CLASS 
    46  static void ath_led_brightness(struct led_classdev *led_cdev, 
    47                                enum led_brightness brightness) 
    48  { 
    49 @@ -90,10 +91,12 @@ static void ath_led_brightness(struct le 
    50                 break; 
    51         } 
    52  } 
    53 +#endif 
    54   
    55  static int ath_register_led(struct ath_softc *sc, struct ath_led *led, 
    56                             char *trigger) 
    57  { 
    58 +#ifdef CONFIG_LEDS_CLASS 
    59         int ret; 
    60   
    61         led->sc = sc; 
    62 @@ -108,14 +111,19 @@ static int ath_register_led(struct ath_s 
    63         else 
    64                 led->registered = 1; 
    65         return ret; 
    66 +#else 
    67 +       return 0; 
    68 +#endif 
    69  } 
    70   
    71  static void ath_unregister_led(struct ath_led *led) 
    72  { 
    73 +#ifdef CONFIG_LEDS_CLASS 
    74         if (led->registered) { 
    75                 led_classdev_unregister(&led->led_cdev); 
    76                 led->registered = 0; 
    77         } 
    78 +#endif 
    79  } 
    80   
    81  void ath_deinit_leds(struct ath_softc *sc) 
    8239--- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c 
    8340+++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c 
Note: See TracChangeset for help on using the changeset viewer.