Bläddra i källkod

qcacmn: Initialize the mgmt tx params

Triggering crash at firmware due to
uninitialized value sent to firmware
as part of wmi_mgmt_params.

Initialize the management tx params
at p2p_mgmt_tx before populate.

Change-Id: Iea77266ee11f5742ea6a0074e4a6612452a764b1
CRs-Fixed: 2128419
Sandeep Puligilla 7 år sedan
förälder
incheckning
fc4449c809
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      core/src/wlan_p2p_off_chan_tx.c

+ 1 - 1
core/src/wlan_p2p_off_chan_tx.c

@@ -877,7 +877,7 @@ static QDF_STATUS p2p_mgmt_tx(struct tx_action_context *tx_ctx,
 	mgmt_ota_comp_cb tx_ota_comp_cb;
 	struct wlan_frame_hdr *wh;
 	struct wlan_objmgr_peer *peer;
-	struct wmi_mgmt_params mgmt_param;
+	struct wmi_mgmt_params mgmt_param = { 0 };
 	struct wlan_objmgr_psoc *psoc;
 	void *mac_addr;