diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-06-11 16:18:07 +0530 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-06-19 15:49:19 -0400 |
commit | 8eab25108e374403f759dd7de01084a1f3ba6d68 (patch) | |
tree | a9b4948c88a1c057fb30f96face59eccfd9ef466 /drivers/net/wireless/ath/ath9k | |
parent | 3ae07d39ea81440768427e7786c5422f3af38a94 (diff) | |
download | op-kernel-dev-8eab25108e374403f759dd7de01084a1f3ba6d68.zip op-kernel-dev-8eab25108e374403f759dd7de01084a1f3ba6d68.tar.gz |
ath9k: switch channel after sending beacon
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')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/channel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/channel.c b/drivers/net/wireless/ath/ath9k/channel.c index 364a555..4793de0 100644 --- a/drivers/net/wireless/ath/ath9k/channel.c +++ b/drivers/net/wireless/ath/ath9k/channel.c @@ -365,7 +365,8 @@ struct ath_chanctx *ath_chanctx_get_oper_chan(struct ath_softc *sc, bool active) if (active && !ctx->active) continue; - return ctx; + if (ctx->switch_after_beacon) + return ctx; } return &sc->chanctx[0]; |