From: Felix Fietkau Date: Wed, 11 Jun 2014 10:48:07 +0000 (+0530) Subject: ath9k: switch channel after sending beacon X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8eab25108e374403f759dd7de01084a1f3ba6d68;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ath9k: switch channel after sending beacon Signed-off-by: Felix Fietkau Signed-off-by: Rajkumar Manoharan Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/ath9k/channel.c b/drivers/net/wireless/ath/ath9k/channel.c index 364a55502b7d..4793de079f77 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];