qcacmn: Make napi rely on rx_pending flag
Use the rx_pending flag to determine if there is more work.
hif_napi_poll should not rely on the amount of work done
to determine if there is more work to do.
Change-Id: Ibf83cfb8f9aed6fdc3400b6a6945156283f56485
CRs-Fixed: 998319
diff --git a/hif/src/ce/ce_tasklet.c b/hif/src/ce/ce_tasklet.c
index df87f4b..a0553ab 100644
--- a/hif/src/ce/ce_tasklet.c
+++ b/hif/src/ce/ce_tasklet.c
@@ -204,7 +204,7 @@
CE_state->lro_flush_cb(CE_state->lro_data);
}
- if (ce_check_rx_pending(scn, tasklet_entry->ce_id)) {
+ if (ce_check_rx_pending(CE_state)) {
/*
* There are frames pending, schedule tasklet to process them.
* Enable the interrupt only when there is no pending frames in