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
This commit is contained in:
Wu Gao 2018-06-11 16:09:42 +08:00 • committed by nshrivas
commit 7d5128c79b

View file

@ -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);