ath9k: Add new chanctx events
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Sun, 24 Aug 2014 15:46:10 +0000 (21:16 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 28 Aug 2014 18:49:39 +0000 (14:49 -0400)
This will be useful in handling addition/change of new
channel contexts.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ath9k.h
drivers/net/wireless/ath/ath9k/channel.c

index acbe2b7956aec544658032777d7529c606ed4f1e..7c8c6f158c91e8c2bcb7af8939f7d9659abb636e 100644 (file)
@@ -359,7 +359,9 @@ enum ath_chanctx_event {
        ATH_CHANCTX_EVENT_BEACON_RECEIVED,
        ATH_CHANCTX_EVENT_ASSOC,
        ATH_CHANCTX_EVENT_SWITCH,
+       ATH_CHANCTX_EVENT_ASSIGN,
        ATH_CHANCTX_EVENT_UNASSIGN,
+       ATH_CHANCTX_EVENT_CHANGE,
        ATH_CHANCTX_EVENT_ENABLE_MULTICHANNEL,
 };
 
index 0e64b736160eb9e55a500682f1d7e71a33f9162c..34ccfa0142cf8de0a5439e53fbceb134459b2725 100644 (file)
@@ -452,6 +452,10 @@ void ath_chanctx_event(struct ath_softc *sc, struct ieee80211_vif *vif,
                sc->next_chan = ctx;
                ieee80211_queue_work(sc->hw, &sc->chanctx_work);
                break;
+       case ATH_CHANCTX_EVENT_ASSIGN:
+               break;
+       case ATH_CHANCTX_EVENT_CHANGE:
+               break;
        }
 
        spin_unlock_bh(&sc->chan_lock);