Changeset 24159


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

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

Location:
trunk/package/mac80211/patches
Files:
7 added
2 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 
  • trunk/package/mac80211/patches/401-ath9k-dont-register-leds-on-ar9100.patch

    r23061 r24159  
    11--- a/drivers/net/wireless/ath/ath9k/gpio.c 
    22+++ b/drivers/net/wireless/ath/ath9k/gpio.c 
    3 @@ -128,6 +128,9 @@ static void ath_unregister_led(struct at 
     3@@ -120,6 +120,9 @@ static void ath_unregister_led(struct at 
    44  
    55 void ath_deinit_leds(struct ath_softc *sc) 
     
    1111        sc->sc_flags &= ~SC_OP_LED_ASSOCIATED; 
    1212        ath_unregister_led(&sc->tx_led); 
    13 @@ -141,6 +144,9 @@ void ath_init_leds(struct ath_softc *sc) 
     13@@ -133,6 +136,9 @@ void ath_init_leds(struct ath_softc *sc) 
    1414        char *trigger; 
    1515        int ret; 
Note: See TracChangeset for help on using the changeset viewer.