Browse Source

qcacmn: Initialize id before tx MGMT frame

It use an uninitialized variable to TX (not wait ack) MGMT frame.

Change-Id: I46c96a2879a945e8284c436e5ff6b761e1c246ba
CRs-Fixed: 2254688
Wu Gao 6 years ago
parent
commit
7d5128c79b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      umac/p2p/dispatcher/src/wlan_p2p_ucfg_api.c

+ 1 - 1
umac/p2p/dispatcher/src/wlan_p2p_ucfg_api.c

@@ -273,7 +273,7 @@ QDF_STATUS ucfg_p2p_mgmt_tx(struct wlan_objmgr_psoc *soc,
 
 	/* return cookie just for ota ack frames */
 	if (mgmt_frm->dont_wait_for_ack)
-		*cookie = 0;
+		id = 0;
 	else {
 		status = qdf_idr_alloc(&p2p_soc_obj->p2p_idr,
 				       tx_action, &id);