diff options
| author | Sandeep Puligilla <spuligil@codeaurora.org> | 2017-03-15 19:36:55 -0700 |
|---|---|---|
| committer | Sandeep Puligilla <spuligil@codeaurora.org> | 2017-03-21 13:35:59 -0700 |
| commit | 29a675feded19cb3105e071c31c4db1b03cda295 (patch) | |
| tree | a05bb0031fed13563bbaeb6e32b311cc8526d303 | |
| parent | b8481cf3da1f2ec67fa65f2380449314ef53f552 (diff) | |
qcacld-3.0: Add more debug logs in vendor scan
Add more debug logs in vendor scan complete
callback API.
Change-Id: Id6240b17df76413ae95ae06df5511ffa9d1ada9e
CRs-Fixed: 2020143
| -rw-r--r-- | core/hdd/src/wlan_hdd_scan.c | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/core/hdd/src/wlan_hdd_scan.c b/core/hdd/src/wlan_hdd_scan.c index 40c68f32f28e..cc80dd543ac2 100644 --- a/core/hdd/src/wlan_hdd_scan.c +++ b/core/hdd/src/wlan_hdd_scan.c @@ -1056,43 +1056,53 @@ static void hdd_vendor_scan_callback(hdd_adapter_t *adapter, } cookie = (uintptr_t)req; - attr = nla_nest_start(skb, QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS); if (!attr) goto nla_put_failure; for (i = 0; i < req->n_ssids; i++) { - if (nla_put(skb, i, req->ssids[i].ssid_len, req->ssids[i].ssid)) + if (nla_put(skb, i, req->ssids[i].ssid_len, + req->ssids[i].ssid)) { + hdd_err("Failed to add ssid"); goto nla_put_failure; + } } nla_nest_end(skb, attr); - attr = nla_nest_start(skb, QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES); if (!attr) goto nla_put_failure; for (i = 0; i < req->n_channels; i++) { - if (nla_put_u32(skb, i, req->channels[i]->center_freq)) - goto nla_put_failure; + if (nla_put_u32(skb, i, req->channels[i]->center_freq)) { + hdd_err("Failed to add channel"); + goto nla_put_failure; + } } nla_nest_end(skb, attr); if (req->ie && nla_put(skb, QCA_WLAN_VENDOR_ATTR_SCAN_IE, req->ie_len, - req->ie)) + req->ie)) { + hdd_err("Failed to add scan ie"); goto nla_put_failure; - + } if (req->flags && - nla_put_u32(skb, QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS, req->flags)) + nla_put_u32(skb, QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS, req->flags)) { + hdd_err("Failed to add scan flags"); goto nla_put_failure; - - if (hdd_wlan_nla_put_u64(skb, QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE, cookie)) + } + if (hdd_wlan_nla_put_u64(skb, + QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE, + cookie)) { + hdd_err("Failed to add scan cookie"); goto nla_put_failure; - + } scan_status = (aborted == true) ? VENDOR_SCAN_STATUS_ABORTED : VENDOR_SCAN_STATUS_NEW_RESULTS; - if (nla_put_u8(skb, QCA_WLAN_VENDOR_ATTR_SCAN_STATUS, scan_status)) + if (nla_put_u8(skb, QCA_WLAN_VENDOR_ATTR_SCAN_STATUS, scan_status)) { + hdd_err("Failed to add scan staus"); goto nla_put_failure; - + } cfg80211_vendor_event(skb, GFP_KERNEL); + hdd_info("scan complete event sent to NL"); qdf_mem_free(req); return; |
