From e24e498ac388b168337ef00be6a7a981aae36f27 Mon Sep 17 00:00:00 2001 From: Abhinav Kumar Date: Tue, 1 May 2018 23:00:39 +0530 Subject: [PATCH] qcacld-3.0: Avoid possible heartbeat failure due to Hw-DTIM In case of STA + SAP, when STA connect to a new AP, the SAP initiate channel switch to the new channel of the STA. During this transition period DUT will be in MCC scenario and thus firmware changes the TBTT of SAP to get 50% channel time. Due to this peer STA connected to DUT-SAP may miss all 5 beacons containing CSA info and when it comes out of hw-dtim mode after 5 beacon misses the DUT SAP has already moved to new channel and thus as SAP is not on the old channel the peer STA will receive Heart beat failure. To avoid this Heart beat failure on peer STA, increases the default value of channel switch count (g_sap_chanswitch_beacon_cnt) to 10 to increase the probability of receiving beacons with CSA info. Change-Id: I2e5182c299f2a100c9919ffc123aa6b1290324f9 CRs-Fixed: 2227704 --- core/hdd/inc/wlan_hdd_cfg.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/hdd/inc/wlan_hdd_cfg.h b/core/hdd/inc/wlan_hdd_cfg.h index be739c4d4cdc..4670ff2e9e73 100644 --- a/core/hdd/inc/wlan_hdd_cfg.h +++ b/core/hdd/inc/wlan_hdd_cfg.h @@ -11802,8 +11802,8 @@ enum hdd_wext_control { * * g_sap_chanswitch_beacon_cnt - channel switch beacon count * @Min: 1 - * @Max: 5 - * @Default: 5 + * @Max: 10 + * @Default: 10 * * This ini is used to configure channel switch beacon count * @@ -11816,7 +11816,7 @@ enum hdd_wext_control { #define CFG_SAP_CH_SWITCH_BEACON_CNT "g_sap_chanswitch_beacon_cnt" #define CFG_SAP_CH_SWITCH_BEACON_CNT_MIN (1) #define CFG_SAP_CH_SWITCH_BEACON_CNT_MAX (10) -#define CFG_SAP_CH_SWITCH_BEACON_CNT_DEFAULT (5) +#define CFG_SAP_CH_SWITCH_BEACON_CNT_DEFAULT (10) /* *