P2P: Defer IMPS for configured gDeferIMPStime value.

Defer entering into IMPS mode for the duration of configured
gDeferIMPStime if any command is processed.

To disable deferring IMPS, configure variable gDeferIMPStime
must be set to 0. By default it is 200ms and maximum value
500ms can be configured.

Change-Id: I32ed20875954b884d637f40ea9c520538c4d5cd1
CRs-Fixed: 657916
diff --git a/CORE/HDD/inc/wlan_hdd_cfg.h b/CORE/HDD/inc/wlan_hdd_cfg.h
index 6896548..2b4fe94 100644
--- a/CORE/HDD/inc/wlan_hdd_cfg.h
+++ b/CORE/HDD/inc/wlan_hdd_cfg.h
@@ -2189,6 +2189,12 @@
 #define CFG_PMF_SA_QUERY_RETRY_INTERVAL_MAX                  ( 2000 )
 #endif
 
+#define CFG_DEFER_IMPS_FOR_TIME_NAME                         "gDeferIMPStime"
+#define CFG_DEFER_IMPS_FOR_TIME_MIN                          (0)
+#define CFG_DEFER_IMPS_FOR_TIME_MAX                          (500)
+#define CFG_DEFER_IMPS_FOR_TIME_DEFAULT                      (200)
+
+
 /*--------------------------------------------------------------------------- 
   Type declarations
   -------------------------------------------------------------------------*/ 
@@ -2645,6 +2651,7 @@
    v_U32_t                     pmfSaQueryMaxRetries;
    v_U32_t                     pmfSaQueryRetryInterval;
 #endif
+   v_U32_t                     deferImpsTime;
 } hdd_config_t;
 /*--------------------------------------------------------------------------- 
   Function declarations and documenation