dxe: Logging Enhancement

Added count and error message to keep track of any descriptor write
failed in the shared memory.

Change-Id: Ib342cae271d2328ede6dd35cd12c46fce061a769
CRs-Fixed: 826493
diff --git a/CORE/DXE/src/wlan_qct_dxe.c b/CORE/DXE/src/wlan_qct_dxe.c
index bd77ec6..079918d 100644
--- a/CORE/DXE/src/wlan_qct_dxe.c
+++ b/CORE/DXE/src/wlan_qct_dxe.c
@@ -2288,6 +2288,9 @@
          the descriptor. */
       if(channelEntry->extraConfig.cw_ctrl_read != currentDesc->descCtrl.ctrl)
       {
+         HDXE_MSG(eWLAN_MODULE_DAL_DATA, eWLAN_PAL_TRACE_LEVEL_ERROR,
+                  "dxeRXFrameRefillRing, Descriptor write failed");
+         ++channelEntry->desc_write_fail_count;
          //HDXE_ASSERT(0);
       }
 
diff --git a/CORE/DXE/src/wlan_qct_dxe_cfg_i.c b/CORE/DXE/src/wlan_qct_dxe_cfg_i.c
index c44d060..4a9ec3e 100644
--- a/CORE/DXE/src/wlan_qct_dxe_cfg_i.c
+++ b/CORE/DXE/src/wlan_qct_dxe_cfg_i.c
@@ -665,6 +665,7 @@
    channelEntry->assignedDMAChannel = mappedChannel->DMAChannel;
    channelEntry->numFreeDesc             = 0;
    channelEntry->numRsvdDesc             = 0;
+   channelEntry->desc_write_fail_count   = 0;
    channelEntry->numFragmentCurrentChain = 0;
    channelEntry->numTotalFrame           = 0;
    channelEntry->hitLowResource          = eWLAN_PAL_FALSE;
diff --git a/CORE/DXE/src/wlan_qct_dxe_i.h b/CORE/DXE/src/wlan_qct_dxe_i.h
index a36925c..ff9a294 100644
--- a/CORE/DXE/src/wlan_qct_dxe_i.h
+++ b/CORE/DXE/src/wlan_qct_dxe_i.h
@@ -641,6 +641,7 @@
    wpt_uint32                      numDesc;
    wpt_uint32                      numFreeDesc;
    wpt_uint32                      numRsvdDesc;
+   wpt_uint32                      desc_write_fail_count;
    wpt_uint32                      maxFrameSize;
    wpt_uint32                      numFragmentCurrentChain;
    wpt_uint32                      numFrameBeforeInt;