bool ath9k_is_chanctx_enabled(void);
void ath9k_fill_chanctx_ops(void);
void ath9k_init_channel_context(struct ath_softc *sc);
+void ath9k_deinit_channel_context(struct ath_softc *sc);
int ath9k_init_p2p(struct ath_softc *sc);
void ath9k_deinit_p2p(struct ath_softc *sc);
void ath9k_p2p_remove_vif(struct ath_softc *sc,
static inline void ath9k_init_channel_context(struct ath_softc *sc)
{
}
+static inline void ath9k_deinit_channel_context(struct ath_softc *sc)
+{
+}
static inline int ath9k_init_p2p(struct ath_softc *sc)
{
return 0;
(unsigned long)sc);
}
+void ath9k_deinit_channel_context(struct ath_softc *sc)
+{
+ cancel_work_sync(&sc->chanctx_work);
+}
+
bool ath9k_is_chanctx_enabled(void)
{
return (ath9k_use_chanctx == 1);