summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArif Hussain <arifhussain@codeaurora.org>2017-02-17 13:56:34 -0800
committerqcabuildsw <qcabuildsw@localhost>2017-02-17 22:32:39 -0800
commite08a5aa0e9107667c87955f1b296bf4b3ee74437 (patch)
treee1466a661075781f9ad53feb731f05901bc838a7
parentb3bc70ed07e59d1af63c9fc7d63341cd7cd12844 (diff)
qcacld-3.0: validate session for sched scan request
Make sure to validate session id in __wlan_hdd_cfg80211_sched_scan_start before processing schedule scan request. Change-Id: I94c5699684c6e416c565f6a10ccf1c060cc91017 CRs-Fixed: 2008634
-rw-r--r--core/hdd/src/wlan_hdd_scan.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/hdd/src/wlan_hdd_scan.c b/core/hdd/src/wlan_hdd_scan.c
index 008593fd7112..20b8e290b36f 100644
--- a/core/hdd/src/wlan_hdd_scan.c
+++ b/core/hdd/src/wlan_hdd_scan.c
@@ -2787,6 +2787,9 @@ static int __wlan_hdd_cfg80211_sched_scan_start(struct wiphy *wiphy,
if (0 != ret)
return ret;
+ if (!sme_is_session_id_valid(pHddCtx->hHal, pAdapter->sessionId))
+ return -EINVAL;
+
config = pHddCtx->config;
hHal = WLAN_HDD_GET_HAL_CTX(pAdapter);
if (NULL == hHal) {