wlan: Issue HAL dump command only in full power mode.

During driver unload issue HAL dump command to flush BTQM queues
only after entering into full power mode.

Change-Id: I07621df3f7898f3987c92fd0d8e827d68004f884
CRs-Fixed: 835463
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c
index d8be59d..25b3b30 100755
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -8229,9 +8229,6 @@
 
    if (VOS_FTM_MODE != hdd_get_conparam())
    {
-      /* This will issue a dump command which will clean up
-         BTQM queues and unblock MC thread */
-      vos_fwDumpReq(274, 0, 0, 0, 0, 1);
       // Unloading, restart logic is no more required.
       wlan_hdd_restart_deinit(pHddCtx);
 
@@ -8397,6 +8394,13 @@
          /* continue -- need to clean up as much as possible */
       }
    }
+   if ((eHAL_STATUS_SUCCESS == halStatus) ||
+       (eHAL_STATUS_PMC_PENDING == halStatus && lrc > 0))
+   {
+       /* This will issue a dump command which will clean up
+          BTQM queues and unblock MC thread */
+       vos_fwDumpReq(274, 0, 0, 0, 0, 1);
+   }
 
    /* either we never sent a request, we sent a request and received a
       response or we sent a request and timed out.  if we never sent a