diff options
author | Sujith Manoharan <c_manoha@qca.qualcomm.com> | 2014-08-23 03:59:23 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-08-28 14:49:38 -0400 |
commit | 77843167a926a1b11dff812f027fc56930948c1b (patch) | |
tree | 1f380c193582ed6734a59f6c2281b007e83301d4 | |
parent | 4b93fd297fe9914e41099d37194f7acc6a1ccb48 (diff) |
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: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ath9k.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h index 8767aa7360ca..02664b3c7c52 100644 --- a/drivers/net/wireless/ath/ath9k/ath9k.h +++ b/drivers/net/wireless/ath/ath9k/ath9k.h | |||
@@ -925,6 +925,7 @@ struct ath_softc { | |||
925 | struct ath_gen_timer *p2p_ps_timer; | 925 | struct ath_gen_timer *p2p_ps_timer; |
926 | struct ath_vif *p2p_ps_vif; | 926 | struct ath_vif *p2p_ps_vif; |
927 | struct ath_chanctx_sched sched; | 927 | struct ath_chanctx_sched sched; |
928 | struct ath_offchannel offchannel; | ||
928 | #endif | 929 | #endif |
929 | 930 | ||
930 | unsigned long driver_data; | 931 | unsigned long driver_data; |
@@ -948,7 +949,6 @@ struct ath_softc { | |||
948 | struct ath_chanctx *cur_chan; | 949 | struct ath_chanctx *cur_chan; |
949 | struct ath_chanctx *next_chan; | 950 | struct ath_chanctx *next_chan; |
950 | spinlock_t chan_lock; | 951 | spinlock_t chan_lock; |
951 | struct ath_offchannel offchannel; | ||
952 | 952 | ||
953 | #ifdef CONFIG_MAC80211_LEDS | 953 | #ifdef CONFIG_MAC80211_LEDS |
954 | bool led_registered; | 954 | bool led_registered; |
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index bc7a780a2400..da63487279df 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -958,6 +958,7 @@ void ath9k_calculate_iter_data(struct ath_softc *sc, | |||
958 | list_for_each_entry(avp, &ctx->vifs, list) | 958 | list_for_each_entry(avp, &ctx->vifs, list) |
959 | ath9k_vif_iter(iter_data, avp->vif->addr, avp->vif); | 959 | ath9k_vif_iter(iter_data, avp->vif->addr, avp->vif); |
960 | 960 | ||
961 | #ifdef CONFIG_ATH9K_CHANNEL_CONTEXT | ||
961 | if (ctx == &sc->offchannel.chan) { | 962 | if (ctx == &sc->offchannel.chan) { |
962 | struct ieee80211_vif *vif; | 963 | struct ieee80211_vif *vif; |
963 | 964 | ||
@@ -970,6 +971,7 @@ void ath9k_calculate_iter_data(struct ath_softc *sc, | |||
970 | ath9k_vif_iter(iter_data, vif->addr, vif); | 971 | ath9k_vif_iter(iter_data, vif->addr, vif); |
971 | iter_data->beacons = false; | 972 | iter_data->beacons = false; |
972 | } | 973 | } |
974 | #endif | ||
973 | } | 975 | } |
974 | 976 | ||
975 | static void ath9k_set_assoc_state(struct ath_softc *sc, | 977 | static void ath9k_set_assoc_state(struct ath_softc *sc, |