ath9k: Print RoC expiration
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Thu, 2 Oct 2014 01:03:12 +0000 (06:33 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 2 Oct 2014 18:26:31 +0000 (14:26 -0400)
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/channel.c

index b93f83cc0b9b4e53d5b0b5bf81198bffa563748c..d088f06df2e049c7e698da8a7ad635083ff7bc40 100644 (file)
@@ -761,6 +761,13 @@ void ath_offchannel_next(struct ath_softc *sc)
 
 void ath_roc_complete(struct ath_softc *sc, bool abort)
 {
+       struct ath_common *common = ath9k_hw_common(sc->sc_ah);
+
+       if (abort)
+               ath_dbg(common, CHAN_CTX, "RoC aborted\n");
+       else
+               ath_dbg(common, CHAN_CTX, "RoC expired\n");
+
        sc->offchannel.roc_vif = NULL;
        sc->offchannel.roc_chan = NULL;
        if (!abort)