Skip to content
  • Sujith's avatar
    ath9k: Fix RFKILL bugs · e31f7b96
    Sujith authored
    
    
    This patch fixes 2 issues in RFKILL:
    
    * Calling wiphy_rfkill_stop_polling() in ath9k_stop
      would mean that the driver cannot report HW status
      when the radio is re-enabled. Move this to ath_detach().
    
    * Calling ath_radio_{enable/disable} without checking the current
      state results in ath_radio_enable() being called repeatedly
      for every invocation of rfkill_poll(). This is not needed
      in any case since wiphy_rfkill_set_hw_state() would call
      ->stop() if the radio has been disabled.
    
    Signed-off-by: default avatarSujith <Sujith.Manoharan@atheros.com>
    Signed-off-by: default avatarVasanthakumar Thiagarajan <vasanth@atheros.com>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    e31f7b96