浏览代码

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
Yeshwanth Sriram Guntuka 6 年之前
父节点
当前提交
17f7ea9f26
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      os_if/linux/nan/src/os_if_nan.c

+ 1 - 1
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",