WiFi-HAL: Donot initialize Lowi module for gscan calls

Lowi module initialization is causing crash and this happens
as part of gscan functionality. Since, Lowi is not processing
GSCAN functionality now do not initialize Lowi module to avoid
the crash.

Bug: 23004442
Change-Id: Ibadd2f78eb2511054c671fa7434ee3d024e45fc9
diff --git a/qcwcn/wifi_hal/common.cpp b/qcwcn/wifi_hal/common.cpp
index 884330d..0b4592d 100644
--- a/qcwcn/wifi_hal/common.cpp
+++ b/qcwcn/wifi_hal/common.cpp
@@ -391,6 +391,12 @@
     int ret = WIFI_SUCCESS;
     bool lowi_get_capabilities_support = false;
 
+    if (requested_lowi_capabilities == GSCAN_SUPPORTED) {
+        ALOGI("%s: Returning Null, GSCAN not supported by lowi",
+              __FUNCTION__);
+        return NULL;
+    }
+
     ALOGI("%s: Entry", __FUNCTION__);
     if (LowiWifiHalApi == NULL) {
         ALOGI("%s: LowiWifiHalApi Null, Initialize Lowi",