From 17f7ea9f26edfbc8c8ff5d81785d7c09c0c923ee 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 --- os_if/linux/nan/src/os_if_nan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os_if/linux/nan/src/os_if_nan.c b/os_if/linux/nan/src/os_if_nan.c index 0dd33424d19b..9b444111e5c3 100644 --- a/os_if/linux/nan/src/os_if_nan.c +++ b/os_if/linux/nan/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",