qcacmn: Free ce fastpath buffer even if handler not installed
Durring a driver load failure, the fastpath buffer is allocated
before the fastpath handler is installed. Change the free logic
to match the allocation logic.
Change-Id: Ib9731b3d06d7ac728e0f23bb32e2b74c35b9a8de
CRs-Fixed: 1089933
diff --git a/hif/src/ce/ce_main.c b/hif/src/ce/ce_main.c
index 1d8b143..d0a4d94 100644
--- a/hif/src/ce/ce_main.c
+++ b/hif/src/ce/ce_main.c
@@ -1055,8 +1055,12 @@
qdf_nbuf_t nbuf;
int i;
- if (!ce_state->fastpath_handler)
+ if (ce_state->scn->fastpath_mode_on == false)
return;
+
+ if (!ce_state->htt_rx_data)
+ return;
+
/*
* when fastpath_mode is on and for datapath CEs. Unlike other CE's,
* this CE is completely full: does not leave one blank space, to