qcacmn: Fix incorrect NDP ids in NDP end request

NDP ids copied from NDP instance id array for NDP
end request does not use nla_data to copy the ids
resulting in incorrect data getting copied.

Fix is to use nla_data for NDP instance id array to
copy the ids.

Change-Id: I74795367a5c5a57f42cb1a67ece9cebfeb259b71
CRs-Fixed: 2328245
This commit is contained in:
Yeshwanth Sriram Guntuka
2018-10-04 12:42:17 +05:30
committed by nshrivas
parent 1c9262fb98
commit 0bfde711e4

View File

@@ -672,7 +672,7 @@ static int os_if_nan_process_ndp_end_req(struct wlan_objmgr_psoc *psoc,
return -EINVAL;
}
qdf_mem_copy(req.ndp_ids,
tb[QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY],
nla_data(tb[QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY]),
req.num_ndp_instances * sizeof(uint32_t));
cfg80211_debug("sending ndp_end_req to SME, transaction_id: %d",