Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f080bd5c authored by Yeshwanth Sriram Guntuka's avatar Yeshwanth Sriram Guntuka Committed by Gerrit - the friendly Code Review server
Browse files

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
parent 2c1c6e0b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -672,7 +672,7 @@ static int os_if_nan_process_ndp_end_req(struct wlan_objmgr_psoc *psoc,
		return -EINVAL;
		return -EINVAL;
	}
	}
	qdf_mem_copy(req.ndp_ids,
	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));
		     req.num_ndp_instances * sizeof(uint32_t));


	cfg80211_debug("sending ndp_end_req to SME, transaction_id: %d",
	cfg80211_debug("sending ndp_end_req to SME, transaction_id: %d",