summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandeep Puligilla <spuligil@codeaurora.org>2017-03-29 16:10:07 -0700
committerSandeep Puligilla <spuligil@codeaurora.org>2017-03-31 17:11:04 -0700
commit4d11957d3307307c429a7862eca3d2b23c24b840 (patch)
tree530bf1fdea3d77cf826e0749d465b3a7f893080b
parent169cd6b22d9d97e1dff17bd5dd432c4cffc0dd0d (diff)
qcacld-3.0: Vendor scan returns wrong status to NL
Vendor scan request api is returning EINVAL instead of EBUSY. Update vendor scan code to send valid return status. Change-Id: I45f2e76315a508f7f3339464fad934d940411b38 CRs-Fixed: 2024110
-rw-r--r--core/hdd/src/wlan_hdd_scan.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/core/hdd/src/wlan_hdd_scan.c b/core/hdd/src/wlan_hdd_scan.c
index cc80dd543ac2..d5667312b4ec 100644
--- a/core/hdd/src/wlan_hdd_scan.c
+++ b/core/hdd/src/wlan_hdd_scan.c
@@ -2450,9 +2450,12 @@ static int __wlan_hdd_cfg80211_vendor_scan(struct wiphy *wiphy,
request->wiphy = wiphy;
request->scan_start = jiffies;
- if (0 != __wlan_hdd_cfg80211_scan(wiphy, request, VENDOR_SCAN))
- goto error;
-
+ ret = __wlan_hdd_cfg80211_scan(wiphy, request, VENDOR_SCAN);
+ if (0 != ret) {
+ hdd_err("Scan Failed. Ret = %d", ret);
+ qdf_mem_free(request);
+ return ret;
+ }
ret = wlan_hdd_send_scan_start_event(wiphy, wdev, (uintptr_t)request);
return ret;