From 94a6364efdb72624531fe786ee6186f59f48a55b Mon Sep 17 00:00:00 2001 From: "Edhar, Mahesh Kumar" Date: Fri, 20 Nov 2015 10:14:13 +0530 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_scan.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_scan.c b/core/hdd/src/wlan_hdd_scan.c index 1b73597b242f..4e155d0d2121 100644 --- a/core/hdd/src/wlan_hdd_scan.c +++ b/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);