Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ath9k: Check multi-channel context for WOW

If CONFIG_ATH9K_CHANNEL_CONTEXT is enabled, check whether
multiple contexts are active and if so, return 1 without
enabling WOW since we don't support it in this case.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

authored by

Sujith Manoharan and committed by
Kalle Valo
1331f5a7 dc4b277d

+9
+9
drivers/net/wireless/ath/ath9k/wow.c
··· 215 215 goto fail_wow; 216 216 } 217 217 218 + if (ath9k_is_chanctx_enabled()) { 219 + if (test_bit(ATH_OP_MULTI_CHANNEL, &common->op_flags)) { 220 + ath_dbg(common, WOW, 221 + "Multi-channel WOW is not supported\n"); 222 + ret = 1; 223 + goto fail_wow; 224 + } 225 + } 226 + 218 227 if (!test_bit(ATH_OP_PRIM_STA_VIF, &common->op_flags)) { 219 228 ath_dbg(common, WOW, "None of the STA vifs are associated\n"); 220 229 ret = 1;