Skip to contentSkip to conversation

mwifiex: notify cfg80211 about scan abort

PATCH In review Ganapathi Bhat 2 participants 2 messages Aug 30, 2017 – Sep 20, 2017 Marvell mwifiex wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mwifiex: notify cfg80211 about scan abort

Driver sends a series of scan commands to firmware to serve a user scan request. If an intermediate scan command fails, driver aborts the scan but it is not being informed to cfg80211. This will cause issues in applications performing periodic scans. Fix this by informing scan abort.

---
 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c +1 -5
index 0fba5b1..1bd4e13 100644
@@ -70,11 +70,7 @@
 		break;
 	case HostCmd_CMD_802_11_SCAN:
 	case HostCmd_CMD_802_11_SCAN_EXT:
-		mwifiex_cancel_pending_scan_cmd(adapter);
-
-		spin_lock_irqsave(&adapter->mwifiex_cmd_lock, flags);
-		adapter->scan_processing = false;
-		spin_unlock_irqrestore(&adapter->mwifiex_cmd_lock, flags);
+		mwifiex_cancel_scan(adapter);
 		break;
 
 	case HostCmd_CMD_MAC_CONTROL:
Signature · 1 line
1.9.1
#1 lore raw
Quoted 8 lines · Ganapathi Bhat

Driver sends a series of scan commands to firmware to serve a user scan request. If an intermediate scan command fails, driver aborts the scan but it is not being informed to cfg80211. This will cause issues in applications performing periodic scans. Fix this by informing scan abort.

Patch applied to wireless-drivers-next.git, thanks.

31726ff20190 mwifiex: notify cfg80211 about scan abort

Signature · 3 lines
https://patchwork.kernel.org/patch/9930689/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches