Ver Fonte

qcacld-3.0: Correct the param mis-used issue

Correct the param mis-used issue when function
wma_handle_vdev_detach invokes function
wlan_mgmt_txrx_vdev_drain.

Change-Id: Ied3118028d881c2c0d4300daa6b24515b2797781
CRs-Fixed: 3349006
Paul Zhang há 2 anos atrás
pai
commit
d5a46c0544
1 ficheiros alterados com 3 adições e 2 exclusões
  1. 3 2
      core/wma/src/wma_dev_if.c

+ 3 - 2
core/wma/src/wma_dev_if.c

@@ -508,7 +508,7 @@ static QDF_STATUS wma_handle_vdev_detach(tp_wma_handle wma_handle,
 	uint8_t vdev_id = del_vdev_req_param->vdev_id;
 	struct wma_txrx_node *iface = &wma_handle->interfaces[vdev_id];
 	void *soc = cds_get_context(QDF_MODULE_ID_SOC);
-	int i;
+	struct wmi_mgmt_params mgmt_params = {};
 
 	if (!soc) {
 		status = QDF_STATUS_E_FAILURE;
@@ -524,7 +524,8 @@ rel_ref:
 	wma_cdp_vdev_detach(soc, wma_handle, vdev_id);
 	if (qdf_is_recovering())
 		wlan_mgmt_txrx_vdev_drain(iface->vdev,
-					  wma_mgmt_frame_fill_peer_cb, &i);
+					  wma_mgmt_frame_fill_peer_cb,
+					  &mgmt_params);
 	wma_debug("Releasing wma reference for vdev:%d", vdev_id);
 	wma_release_vdev_ref(iface);
 	return status;