diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-06-11 06:47:59 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-06-19 15:49:18 -0400 |
commit | b01459e856cbe9ccf64dde251aec02eae60094ce (patch) | |
tree | bfc13d4cbed08e18f138c492d7b80bca1a43cb63 | |
parent | c4dc0d040e356efc0263e0b27181b05f9ef33e5f (diff) |
ath9k: Move caldata into channel context
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Rajkumar Manoharan <rmanohar@qti.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ath9k.h | 4 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/debug.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/mci.c | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h index 3db489824261..ffacbf6e9f52 100644 --- a/drivers/net/wireless/ath/ath9k/ath9k.h +++ b/drivers/net/wireless/ath/ath9k/ath9k.h | |||
@@ -327,6 +327,8 @@ struct ath_chanctx { | |||
327 | struct list_head vifs; | 327 | struct list_head vifs; |
328 | struct list_head acq[IEEE80211_NUM_ACS]; | 328 | struct list_head acq[IEEE80211_NUM_ACS]; |
329 | 329 | ||
330 | struct ath9k_hw_cal_data caldata; | ||
331 | |||
330 | u16 txpower; | 332 | u16 txpower; |
331 | bool offchannel; | 333 | bool offchannel; |
332 | bool stopped; | 334 | bool stopped; |
@@ -820,8 +822,6 @@ struct ath_softc { | |||
820 | struct led_classdev led_cdev; | 822 | struct led_classdev led_cdev; |
821 | #endif | 823 | #endif |
822 | 824 | ||
823 | struct ath9k_hw_cal_data caldata; | ||
824 | |||
825 | #ifdef CONFIG_ATH9K_DEBUGFS | 825 | #ifdef CONFIG_ATH9K_DEBUGFS |
826 | struct ath9k_debug debug; | 826 | struct ath9k_debug debug; |
827 | #endif | 827 | #endif |
diff --git a/drivers/net/wireless/ath/ath9k/debug.c b/drivers/net/wireless/ath/ath9k/debug.c index 6cc42be48d4e..f230e2e9824e 100644 --- a/drivers/net/wireless/ath/ath9k/debug.c +++ b/drivers/net/wireless/ath/ath9k/debug.c | |||
@@ -1080,7 +1080,7 @@ static ssize_t read_file_dump_nfcal(struct file *file, char __user *user_buf, | |||
1080 | { | 1080 | { |
1081 | struct ath_softc *sc = file->private_data; | 1081 | struct ath_softc *sc = file->private_data; |
1082 | struct ath_hw *ah = sc->sc_ah; | 1082 | struct ath_hw *ah = sc->sc_ah; |
1083 | struct ath9k_nfcal_hist *h = sc->caldata.nfCalHist; | 1083 | struct ath9k_nfcal_hist *h = sc->cur_chan->caldata.nfCalHist; |
1084 | struct ath_common *common = ath9k_hw_common(ah); | 1084 | struct ath_common *common = ath9k_hw_common(ah); |
1085 | struct ieee80211_conf *conf = &common->hw->conf; | 1085 | struct ieee80211_conf *conf = &common->hw->conf; |
1086 | u32 len = 0, size = 1500; | 1086 | u32 len = 0, size = 1500; |
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 92bf9079184f..85db24be8eec 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -279,7 +279,7 @@ int ath_reset_internal(struct ath_softc *sc, struct ath9k_channel *hchan) | |||
279 | 279 | ||
280 | if (!sc->cur_chan->offchannel) { | 280 | if (!sc->cur_chan->offchannel) { |
281 | fastcc = false; | 281 | fastcc = false; |
282 | caldata = &sc->caldata; | 282 | caldata = &sc->cur_chan->caldata; |
283 | } | 283 | } |
284 | 284 | ||
285 | if (!hchan) { | 285 | if (!hchan) { |
diff --git a/drivers/net/wireless/ath/ath9k/mci.c b/drivers/net/wireless/ath/ath9k/mci.c index 313ed995585a..3f7a11edb82a 100644 --- a/drivers/net/wireless/ath/ath9k/mci.c +++ b/drivers/net/wireless/ath/ath9k/mci.c | |||
@@ -706,7 +706,7 @@ void ath9k_mci_set_txpower(struct ath_softc *sc, bool setchannel, | |||
706 | return; | 706 | return; |
707 | 707 | ||
708 | if (setchannel) { | 708 | if (setchannel) { |
709 | struct ath9k_hw_cal_data *caldata = &sc->caldata; | 709 | struct ath9k_hw_cal_data *caldata = &sc->cur_chan->caldata; |
710 | if (IS_CHAN_HT40PLUS(ah->curchan) && | 710 | if (IS_CHAN_HT40PLUS(ah->curchan) && |
711 | (ah->curchan->channel > caldata->channel) && | 711 | (ah->curchan->channel > caldata->channel) && |
712 | (ah->curchan->channel <= caldata->channel + 20)) | 712 | (ah->curchan->channel <= caldata->channel + 20)) |