wlan: Do not honour scan_done_callback on driver unload

From Kernel-3.14 onwards pending scan request is handled
as part of NETDEV_DOWN event, by invoking the cfg80211_scan_done
callback which frees the scan request structure. To support this
do not invoke scan_done_callback if driver unload is in progress
as NETDEV_DOWN will get called during driver unload.

Change-Id: I8ee0100a08fdc84972913d462d71debc97187d23
CRs-Fixed: 1004743
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index c5a3a04..69cdb69 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -12634,8 +12634,12 @@
     ret = wlan_hdd_cfg80211_update_bss((WLAN_HDD_GET_CTX(pAdapter))->wiphy,
                                         pAdapter);
 
-    if (0 > ret)
+    if (0 > ret) {
         hddLog(VOS_TRACE_LEVEL_INFO, "%s: NO SCAN result", __func__);
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0))
+        goto allow_suspend;
+#endif
+    }
 
 
     /* If any client wait scan result through WEXT