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
This commit is contained in:

committed by
snandini

orang tua
5be8fc8860
melakukan
75992053b9
@@ -1075,43 +1075,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;
|
||||
|
||||
|
Reference in New Issue
Block a user