wlan: Invalid reload driver fix

If firmware could not power collapse whatever reason,
DXE interrupt could not be cleared if ISR is scheduled when IMPS mode.
Then next firmware power restore,
Empty interrupt will be issued when host power state change.
Incase, IMPS mode received empty interrupt,
and firmware could not power collapse,
host will detect this situation as successive empty interrupt.
Then issue SSR.
To prevent this invalid SSR, if interrupt happen with IMPS mode,
set dummy frame count to DXE channel control context.

Change-Id: I033d8a0cc4101aaa2d2954217dfa34cfd15e6562
CRs-fixed: 599833
diff --git a/CORE/DXE/src/wlan_qct_dxe.c b/CORE/DXE/src/wlan_qct_dxe.c
index bb5da39..a62b256 100644
--- a/CORE/DXE/src/wlan_qct_dxe.c
+++ b/CORE/DXE/src/wlan_qct_dxe.c
@@ -2770,6 +2770,13 @@
          HDXE_MSG(eWLAN_MODULE_DAL_DATA, eWLAN_PAL_TRACE_LEVEL_ERROR,
                   "dxeRXEventHandler Pull from RX high channel fail");        
       }
+      /* In case FW could not power collapse in IMPS mode
+       * Next power restore might have empty interrupt
+       * If IMPS mode has empty interrupt since RX thread race,
+       * Invalid re-load driver might happen
+       * To prevent invalid re-load driver,
+       * IMPS event handler set dummpy frame count */
+      channelCb->numFragmentCurrentChain = 1;
 
        /* Second low priority */
       channelCb = &dxeCtxt->dxeChannel[WDTS_CHANNEL_RX_LOW_PRI];
@@ -2781,6 +2788,8 @@
          HDXE_MSG(eWLAN_MODULE_DAL_DATA, eWLAN_PAL_TRACE_LEVEL_ERROR,
                   "dxeRXEventHandler Pull from RX low channel fail");        
       }
+      /* LOW Priority CH same above */
+      channelCb->numFragmentCurrentChain = 1;
 
       /* Interrupt will not enabled at here, it will be enabled at PS mode change */
       tempDxeCtrlBlk->rxIntDisabledByIMPS = eWLAN_PAL_TRUE;