ath9k: Fix wow init/deinit
Registering the card as a wakeup source needs to be done once, during initialization. When the WOW configuration changes, the card's status as wakeup source needs to be changed too and this is done via the set_wakeup() callback. Also, make sure the device is removed properly using ath9k_deinit_wow(). Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:

committed by
Kalle Valo

parent
1331f5a751
commit
661d25815e
@@ -996,6 +996,7 @@ void ath9k_deinit_device(struct ath_softc *sc)
|
||||
ath9k_ps_restore(sc);
|
||||
|
||||
ath9k_deinit_debug(sc);
|
||||
ath9k_deinit_wow(hw);
|
||||
ieee80211_unregister_hw(hw);
|
||||
ath_rx_cleanup(sc);
|
||||
ath9k_deinit_softc(sc);
|
||||
|
Reference in New Issue
Block a user