wlan: Notify the Kernel suspend to WCNSS

Notify WCNSS when WLAN driver has suspended; so that WCNSS need not send
certain notifications to Apps. It is only required to do this when
driver is in BMPS mode.

Change-Id: I2e21a7cfcd853798ddd5c51415c8d2e91a5732a3
CR-Fixed: 418487
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c
index 5ea6d0f..b5b12b6 100644
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -4584,6 +4584,20 @@
     return TRUE;
 }
 
+/* Decides whether to send suspend notification to Riva
+ * if any adapter is in BMPS; then it is required */
+v_BOOL_t hdd_is_suspend_notify_allowed(hdd_context_t* pHddCtx)
+{
+    tPmcState pmcState = pmcGetPmcState(pHddCtx->hHal);
+    hdd_config_t *pConfig = pHddCtx->cfg_ini;
+
+    if (pConfig->fIsBmpsEnabled && (pmcState == BMPS))
+    {
+        return TRUE;
+    }
+    return FALSE;
+}
+
 void wlan_hdd_set_concurrency_mode(hdd_context_t *pHddCtx, tVOS_CON_MODE mode)
 {
    switch(mode)