prima: Defer back to back RoC request when sta is connected

If back to back listen received when sta is connected then fw is
not getting enough time to spend on home channel so it leading to
heartbeat failure.

Defering the RoC request if it is received in very less time after
previous RoC is complete.

Change-Id: I7b391b6bd5895b8f816081f96e1f3b5d4a9f5576
CRs-Fixed: 766455
diff --git a/CORE/HDD/inc/wlan_hdd_cfg.h b/CORE/HDD/inc/wlan_hdd_cfg.h
index c5cba52..d825acb 100644
--- a/CORE/HDD/inc/wlan_hdd_cfg.h
+++ b/CORE/HDD/inc/wlan_hdd_cfg.h
@@ -2394,6 +2394,10 @@
 #define CFG_BURST_MODE_BE_TXOP_VALUE_MAX       ( 12288 )
 #define CFG_BURST_MODE_BE_TXOP_VALUE_DEFAULT   ( 0 )
 
+#define CFG_P2P_LISTEN_DEFER_INTERVAL_NAME     "gP2PListenDeferInterval"
+#define CFG_P2P_LISTEN_DEFER_INTERVAL_MIN      ( 100 )
+#define CFG_P2P_LISTEN_DEFER_INTERVAL_MAX      ( 200 )
+#define CFG_P2P_LISTEN_DEFER_INTERVAL_DEFAULT  ( 100 )
 /*--------------------------------------------------------------------------- 
   Type declarations
   -------------------------------------------------------------------------*/ 
@@ -2885,6 +2889,7 @@
 #ifdef WLAN_FEATURE_AP_HT40_24G
    v_BOOL_t                    apHT40_24GEnabled;
 #endif
+   v_U16_t                     gP2PListenDeferInterval;
 } hdd_config_t;
 /*--------------------------------------------------------------------------- 
   Function declarations and documenation