From 0bfde711e4e71dab8cc05ed5a3d315f19c0e0c9a Mon Sep 17 00:00:00 2001 From: Yeshwanth Sriram Guntuka Date: Thu, 4 Oct 2018 12:42:17 +0530 Subject: [PATCH] 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 --- src/os_if_nan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os_if_nan.c b/src/os_if_nan.c index 0dd33424d1..9b444111e5 100644 --- a/src/os_if_nan.c +++ b/src/os_if_nan.c @@ -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",