Parcourir la source

qcacld-3.0: Don't free pkt if wma fails to tx disassoc mgmt frame

In WMA layer, if host fails to send disassoc mgmt to FW, host checks return
status of wma_tx_packet() and frees memory allocated for packet in LIM.
As host already takes care of packet freeing in wma_tx_packet(), don't free
packet in LIM if wma_tx_packet() returns failure.

Change-Id: I912a452edadf83936a9ac6120bd45efa9abde173
CRs-Fixed: 2826655
Abhishek Ambure il y a 4 ans
Parent
commit
31c43a2b51
1 fichiers modifiés avec 0 ajouts et 1 suppressions
  1. 0 1
      core/mac/src/pe/lim/lim_send_management_frames.c

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

@@ -3580,7 +3580,6 @@ lim_send_disassoc_mgmt_frame(struct mac_context *mac,
 
 		if (QDF_IS_STATUS_ERROR(qdf_status)) {
 			pe_err("Failed to send disassoc frame");
-			lim_tx_complete(mac, pPacket, true);
 			lim_send_disassoc_cnf(mac);
 			return;
 		}