Commit 77843167 authored by Sujith Manoharan's avatar Sujith Manoharan Committed by John W. Linville

ath9k: Fix 'offchannel' in ath_softc

Finally move the 'offchannel' instance in ath_softc
inside a CONFIG_ATH9K_CHANNEL_CONTEXT cage. The offchannel
usage in ath9k_calculate_iter_data() is closed off with
an ifdef for now, since the state/opmode calculation is
common for both the channel context mode and the normal mode.
Signed-off-by: default avatarSujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 4b93fd29
...@@ -925,6 +925,7 @@ struct ath_softc { ...@@ -925,6 +925,7 @@ struct ath_softc {
struct ath_gen_timer *p2p_ps_timer; struct ath_gen_timer *p2p_ps_timer;
struct ath_vif *p2p_ps_vif; struct ath_vif *p2p_ps_vif;
struct ath_chanctx_sched sched; struct ath_chanctx_sched sched;
struct ath_offchannel offchannel;
#endif #endif
unsigned long driver_data; unsigned long driver_data;
...@@ -948,7 +949,6 @@ struct ath_softc { ...@@ -948,7 +949,6 @@ struct ath_softc {
struct ath_chanctx *cur_chan; struct ath_chanctx *cur_chan;
struct ath_chanctx *next_chan; struct ath_chanctx *next_chan;
spinlock_t chan_lock; spinlock_t chan_lock;
struct ath_offchannel offchannel;
#ifdef CONFIG_MAC80211_LEDS #ifdef CONFIG_MAC80211_LEDS
bool led_registered; bool led_registered;
......
...@@ -958,6 +958,7 @@ void ath9k_calculate_iter_data(struct ath_softc *sc, ...@@ -958,6 +958,7 @@ void ath9k_calculate_iter_data(struct ath_softc *sc,
list_for_each_entry(avp, &ctx->vifs, list) list_for_each_entry(avp, &ctx->vifs, list)
ath9k_vif_iter(iter_data, avp->vif->addr, avp->vif); ath9k_vif_iter(iter_data, avp->vif->addr, avp->vif);
#ifdef CONFIG_ATH9K_CHANNEL_CONTEXT
if (ctx == &sc->offchannel.chan) { if (ctx == &sc->offchannel.chan) {
struct ieee80211_vif *vif; struct ieee80211_vif *vif;
...@@ -970,6 +971,7 @@ void ath9k_calculate_iter_data(struct ath_softc *sc, ...@@ -970,6 +971,7 @@ void ath9k_calculate_iter_data(struct ath_softc *sc,
ath9k_vif_iter(iter_data, vif->addr, vif); ath9k_vif_iter(iter_data, vif->addr, vif);
iter_data->beacons = false; iter_data->beacons = false;
} }
#endif
} }
static void ath9k_set_assoc_state(struct ath_softc *sc, static void ath9k_set_assoc_state(struct ath_softc *sc,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment