diff options
author | Felix Fietkau | 2014-06-11 12:47:51 +0200 |
---|---|---|
committer | John W. Linville | 2014-06-19 21:49:16 +0200 |
commit | 0453531e2eae61c5c0a2af7b67cdafd19c0dce68 (patch) | |
tree | 47e1997836b90775ce3ccafa6c2e36d0cac18827 /drivers/net/wireless/ath/ath9k/channel.c | |
parent | ath9k: Move txpower limit to channel context (diff) | |
download | kernel-qcow2-linux-0453531e2eae61c5c0a2af7b67cdafd19c0dce68.tar.gz kernel-qcow2-linux-0453531e2eae61c5c0a2af7b67cdafd19c0dce68.tar.xz kernel-qcow2-linux-0453531e2eae61c5c0a2af7b67cdafd19c0dce68.zip |
ath9k: Move acq to channel context
Add support to maintain per-channel ACs list.
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>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/channel.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/channel.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/channel.c b/drivers/net/wireless/ath/ath9k/channel.c index 1b40cf5aa955..c8d91dfcb3b9 100644 --- a/drivers/net/wireless/ath/ath9k/channel.c +++ b/drivers/net/wireless/ath/ath9k/channel.c @@ -107,7 +107,7 @@ void ath_chanctx_init(struct ath_softc *sc) struct ath_common *common = ath9k_hw_common(sc->sc_ah); struct ieee80211_supported_band *sband; struct ieee80211_channel *chan; - int i; + int i, j; sband = &common->sbands[IEEE80211_BAND_2GHZ]; if (!sband->n_channels) @@ -119,6 +119,8 @@ void ath_chanctx_init(struct ath_softc *sc) cfg80211_chandef_create(&ctx->chandef, chan, NL80211_CHAN_HT20); INIT_LIST_HEAD(&ctx->vifs); ctx->txpower = ATH_TXPOWER_MAX; + for (j = 0; j < ARRAY_SIZE(ctx->acq); j++) + INIT_LIST_HEAD(&ctx->acq[j]); } sc->cur_chan = &sc->chanctx[0]; } |