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
This commit is contained in:
Edhar, Mahesh Kumar 2015-11-20 10:14:13 +05:30 • committed by Satish Singh
commit 94a6364efd

View file

@ -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);