void ath5k_rfkill_hw_stop(struct ath5k_hw *ah) { /* disable interrupt for rfkill switch */ if (AR5K_EEPROM_HDR_RFKILL(ah->ah_capabilities.cap_eeprom.ee_header)) ath5k_rfkill_set_intr(ah, false); tasklet_kill(&ah->rf_kill.toggleq); /* enable RFKILL when stopping HW so Wifi LED is turned off */ ath5k_rfkill_enable(ah); }
void ath5k_rfkill_hw_stop(struct ath5k_hw *ah) { struct ath5k_softc *sc = ah->ah_sc; if (AR5K_EEPROM_HDR_RFKILL(ah->ah_capabilities.cap_eeprom.ee_header)) ath5k_rfkill_set_intr(sc, false); tasklet_kill(&sc->rf_kill.toggleq); ath5k_rfkill_enable(sc); }