ath9k: Print the event/state in ath_chanctx_event
[cascardo/linux.git] / drivers / net / wireless / ath / ath9k / ath9k.h
index 7c8c6f1..c690601 100644 (file)
@@ -410,6 +410,9 @@ struct ath_offchannel {
        int roc_duration;
        int duration;
 };
+
+#define case_rtn_string(val) case val: return #val
+
 #define ath_for_each_chanctx(_sc, _ctx)                             \
        for (ctx = &sc->chanctx[0];                                 \
             ctx <= &sc->chanctx[ARRAY_SIZE(sc->chanctx) - 1];      \