Ver Fonte

qcacmn: Add vdev id in NDP end req TLV

Currently, NDP_END_REQ TLV does not requires vdev id to send to
firmware as firmware maps the NDP session with instance id.
But in some cases, (such as testcase to valid NDP end request on
the vdev id), host needs to send vdev id also in NDP_END_Req.
So, to fix this, in NDP end req TLV, add vdev id with validity
flag to check vdev id is valid or not.  

Change-Id: I23e7b1d4ce01ae87c37567f6f01adda38bf18fb6
CRs-Fixed: 3454796
Rahul Gusain há 2 anos atrás
pai
commit
ce7ef84e72
1 ficheiros alterados com 10 adições e 0 exclusões
  1. 10 0
      wmi/src/wmi_unified_nan_tlv.c

+ 10 - 0
wmi/src/wmi_unified_nan_tlv.c

@@ -632,6 +632,16 @@ static QDF_STATUS nan_ndp_end_req_tlv(wmi_unified_t wmi_handle,
 			       (sizeof(*ndp_end_req_lst) - WMI_TLV_HDR_SIZE));
 
 		ndp_end_req_lst[i].ndp_instance_id = req->ndp_ids[i];
+
+		/*
+		 * vdev_id is added in NDP END TLV to facilitate fw to give it
+		 * back in the NDP END indication.
+		 */
+		if (req->vdev) {
+			ndp_end_req_lst[i].vdev_id =
+						wlan_vdev_get_id(req->vdev);
+			ndp_end_req_lst[i].vdev_id_valid = 1;
+		}
 	}
 
 	wmi_mtrace(WMI_NDP_END_REQ_CMDID, NO_SESSION, 0);