Przeglądaj źródła

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>
Felix Fietkau 11 lat temu
rodzic
commit
8eab25108e
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      drivers/net/wireless/ath/ath9k/channel.c

+ 2 - 1
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];