wlan: Update restart driver API to support statically linked WLAN driver

When WLAN driver is statically linked, the restart driver API will
invoke the WCNSS reset interrupt API to initiate SSR.

Change-Id: I6e3cb9cf13c3c117dbcdc4942553a7f2a52c26b3
CR-Fixed: NA
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c
index 563f85f..b369ce5 100644
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -4735,10 +4735,15 @@
 
       return VOS_STATUS_E_ALREADY;
    }
-
-   /* Restart API */
+   /* when WLAN driver is statically linked, then invoke SSR by sending
+    * the reset interrupt. If it is DLKM, then use restart API
+    */
+#ifdef MODULE
    status = wlan_hdd_framework_restart(pHddCtx);
-   
+#else
+   wcnss_reset_intr();
+#endif
+
    return status;
 }