OSDN Git Service

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)
commitd195d7aac09bddabc2c8326fb02fcec2b0a2de02
tree6f912b2c0cd46a3819cf4ba4d3b2f1c84427535f
parente3f30ab28ac866256169153157f466d90f44f122
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: 5973a2947430 ("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