Bladeren bron

qcacld-3.0: Honor NL80211_SCAN_FLAG_FLUSH scan flag

qcacld-2.0 to qcacld-3.0 propagation

Honor NL80211_SCAN_FLAG_FLUSH scan flag by flushing
sme and lim scan cache entries.

Change-Id: I1ff59e583f815bfec2df458c58a40b30b7bffa00
CRs-Fixed: 934979
Edhar, Mahesh Kumar 9 jaren geleden
bovenliggende
commit
6a50152d98
1 gewijzigde bestanden met toevoegingen van 4 en 1 verwijderingen
  1. 4 1
      core/hdd/src/wlan_hdd_scan.c

+ 4 - 1
core/hdd/src/wlan_hdd_scan.c

@@ -1550,7 +1550,10 @@ static int __wlan_hdd_cfg80211_scan(struct wiphy *wiphy,
 	       scan_req.requestType, scan_req.scanType,
 	       scan_req.minChnTime, scan_req.maxChnTime,
 	       scan_req.p2pSearch, scan_req.skipDfsChnlInP2pSearch);
-
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(3, 7, 0))
+	if (request->flags & NL80211_SCAN_FLAG_FLUSH)
+		sme_scan_flush_result(WLAN_HDD_GET_HAL_CTX(pAdapter));
+#endif
 	status = sme_scan_request(WLAN_HDD_GET_HAL_CTX(pAdapter),
 				pAdapter->sessionId, &scan_req,
 				&hdd_cfg80211_scan_done_callback, dev);