mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
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
This commit is contained in:
parent
5c5ae578ee
commit
0060befaa3
1 changed files with 3 additions and 0 deletions
|
|
@ -2626,6 +2626,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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue