From 6e6c26b06e303a4447fef575f8e09786363acb91 Mon Sep 17 00:00:00 2001 From: Kapil Gupta Date: Fri, 20 Jan 2017 18:59:43 +0530 Subject: [PATCH] qcacld-3.0: Disable PER based roaming by default Add changes to disable PER based roam by default. CRs-Fixed: 1114094 Change-Id: I52768029d3ccf007b7d9999e796de3366ac0ae35 --- core/hdd/inc/wlan_hdd_cfg.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/core/hdd/inc/wlan_hdd_cfg.h b/core/hdd/inc/wlan_hdd_cfg.h index a28f85f68a56..32dcf43ab93f 100644 --- a/core/hdd/inc/wlan_hdd_cfg.h +++ b/core/hdd/inc/wlan_hdd_cfg.h @@ -8894,13 +8894,19 @@ enum hdd_wext_control { * * gper_roam_enabled - To enabled/disable PER based roaming in FW * @Min: 0 - * @Max: 1 - * @Default: 1 + * @Max: 3 + * @Default: 0 * * This ini is used to enable/disable Packet error based roaming, enabling this * will cause DUT to monitor Tx and Rx traffic and roam to a better candidate * if current is not good enough. * + * Values supported: + * 0: disabled + * 1: enabled for Rx traffic + * 2: enabled for Tx traffic + * 3: enabled for Tx and Rx traffic + * * Related: gper_roam_high_rate_th, gper_roam_low_rate_th, * gper_roam_th_percent, gper_roam_rest_time * @@ -8912,8 +8918,8 @@ enum hdd_wext_control { */ #define CFG_PER_ROAM_ENABLE_NAME "gper_roam_enabled" #define CFG_PER_ROAM_ENABLE_MIN (0) -#define CFG_PER_ROAM_ENABLE_MAX (1) -#define CFG_PER_ROAM_ENABLE_DEFAULT (CFG_PER_ROAM_ENABLE_MAX) +#define CFG_PER_ROAM_ENABLE_MAX (3) +#define CFG_PER_ROAM_ENABLE_DEFAULT (0) /* * @@ -9720,7 +9726,7 @@ struct hdd_config { enum hdd_wext_control standard_wext_control; enum hdd_wext_control private_wext_control; bool sap_internal_restart; - bool is_per_roam_enabled; + uint8_t is_per_roam_enabled; uint32_t per_roam_high_rate_threshold; uint32_t per_roam_low_rate_threshold; uint32_t per_roam_th_percent;