From: Felix Fietkau Date: Wed, 11 Jun 2014 10:48:07 +0000 (+0530) Subject: ath9k: switch channel after sending beacon X-Git-Tag: v3.17-rc1~106^2~210^2~46^2~116 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=8eab25108e374403f759dd7de01084a1f3ba6d68;p=linux.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];