Browse Source

qcacld-3.0: Remove cds_pkt_free in assoc request api

In the API lim_send_assoc_req_mgmt_frame, the host
allocates memory for the assoc request packet
taking all inputs of payload and the mac header
size etc, and in case the mem allocation fails
it clears away the memory allocated to the packet
with cds packet free, which was not even allocated

Fix is to remove the packet free in case of memory not
allocated

Change-Id: I3fb75b1947dfe039605c42aa19c2d0bacc7bf55d
CRs-Fixed: 2216741
gaurank kathpalia 7 years ago
parent
commit
f29064edac
1 changed files with 0 additions and 2 deletions
  1. 0 2
      core/mac/src/pe/lim/lim_send_management_frames.c

+ 0 - 2
core/mac/src/pe/lim/lim_send_management_frames.c

@@ -2009,8 +2009,6 @@ lim_send_assoc_req_mgmt_frame(tpAniSirGlobal mac_ctx,
 
 		assoc_cnf.resultCode = eSIR_SME_RESOURCES_UNAVAILABLE;
 
-		cds_packet_free((void *)packet);
-
 		lim_post_sme_message(mac_ctx, LIM_MLM_ASSOC_CNF,
 			(uint32_t *) &assoc_cnf);