]> git.baikalelectronics.ru Git - kernel.git/commit
wcn36xx: Ensure finish scan is not requested before start scan
authorJoseph Gates <jgates@squareup.com>
Wed, 18 Aug 2021 11:31:43 +0000 (13:31 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 29 Aug 2021 07:10:35 +0000 (10:10 +0300)
commite52441436c2da8ca0bb7868b7fad18e644b98ee6
tree6f912b2c0cd46a3819cf4ba4d3b2f1c84427535f
parent876ccf2e279afe4631354ebb303cc25c3b9985f1
wcn36xx: Ensure finish scan is not requested before start scan

If the operating channel is the first in the scan list, it was seen that
a finish scan request would be sent before a start scan request was
sent, causing the firmware to fail all future scans. Track the current
channel being scanned to avoid requesting the scan finish before it
starts.

Cc: <stable@vger.kernel.org>
Fixes: cb36b4a027be ("wcn36xx: Fix software-driven scan")
Signed-off-by: Joseph Gates <jgates@squareup.com>
Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1629286303-13179-1-git-send-email-loic.poulain@linaro.org
drivers/net/wireless/ath/wcn36xx/main.c
drivers/net/wireless/ath/wcn36xx/wcn36xx.h