qcacmn: Fix vendor abort scan failure

Vendor abort scan request is cancelling all
the pdev scans instead of a specific scan command.

Modified vendor abort scan API to cancel specific
scan request.

Change-Id: I087637e44b8ee7f6cc12e9e47db04eec3f9ff93e
CRs-Fixed: 2270030
This commit is contained in:
Sandeep Puligilla
2018-06-28 18:47:40 -07:00
committed by nshrivas
parent 9e6c82e47f
commit dc89e47503

View File

@@ -1532,7 +1532,7 @@ QDF_STATUS wlan_abort_scan(struct wlan_objmgr_pdev *pdev,
req->cancel_req.vdev_id = vdev_id;
if (scan_id != INVAL_SCAN_ID)
req->cancel_req.req_type = WLAN_SCAN_CANCEL_SINGLE;
if (vdev_id == INVAL_VDEV_ID)
else if (vdev_id == INVAL_VDEV_ID)
req->cancel_req.req_type = WLAN_SCAN_CANCEL_PDEV_ALL;
else
req->cancel_req.req_type = WLAN_SCAN_CANCEL_VDEV_ALL;
@@ -1587,7 +1587,7 @@ int wlan_vendor_abort_scan(struct wlan_objmgr_pdev *pdev,
return ret;
if (ucfg_scan_get_pdev_status(pdev) !=
SCAN_NOT_IN_PROGRESS)
wlan_abort_scan(pdev, pdev_id,
wlan_abort_scan(pdev, INVAL_PDEV_ID,
INVAL_VDEV_ID, scan_id, true);
}
return 0;