Wlan: In power state change cb set ignore dtim if modulated DTIM is set

If the driver was not in BMPS during early suspend ignore_dtim_enabled
is not set.
Once driver change power state to BMPS dtim is set to modulated
dtim (3) value. Power state changed callback sets variable
ignore_dtim_enabled only if dynamic dtim is enabled.
By default dynamic dtim is disabled.

Now during resume the driver checks ignore_dtim_enabled, to reset the
dtim value to 1. But as this value is not set dtim value remains 3.

To avoid this add check to set ignore_dtim_enabled if modulated dtim
is enabled.

Change-Id: I501f67e50b2c628d89d35865adb7dde9a52ff0cc
CRs-Fixed: 964417
diff --git a/CORE/HDD/src/wlan_hdd_early_suspend.c b/CORE/HDD/src/wlan_hdd_early_suspend.c
index 906aa37..ee589d1 100644
--- a/CORE/HDD/src/wlan_hdd_early_suspend.c
+++ b/CORE/HDD/src/wlan_hdd_early_suspend.c
@@ -1548,7 +1548,8 @@
    /* if the driver was not in BMPS during early suspend,
     * the dynamic DTIM is now updated at Riva */
    if ((newState == BMPS) && pHddCtx->hdd_wlan_suspended
-           && pHddCtx->cfg_ini->enableDynamicDTIM
+           && (pHddCtx->cfg_ini->enableDynamicDTIM ||
+               pHddCtx->cfg_ini->enableModulatedDTIM)
            && (pHddCtx->hdd_ignore_dtim_enabled == FALSE))
    {
        pHddCtx->hdd_ignore_dtim_enabled = TRUE;