diff --git a/umac/p2p/dispatcher/src/wlan_p2p_ucfg_api.c b/umac/p2p/dispatcher/src/wlan_p2p_ucfg_api.c index 162daf91b3f6..84366e846e16 100644 --- a/umac/p2p/dispatcher/src/wlan_p2p_ucfg_api.c +++ b/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);