From 31fe28ff5572a7d8f8e7bb5a8a2301f20be12972 Mon Sep 17 00:00:00 2001 From: Rajeev Kumar Sirasanagandla Date: Wed, 15 May 2019 19:36:52 +0530 Subject: [PATCH] qcacld-3.0: Fix incorrect type and range for LFR ini Currently LFR band specific ini attributes 5g_rssi_boost_threshold and 5g_rssi_penalize_threshold programmed with wrong type and range. This can lead to ignore user-input and always use default value. To fix this, correct min and max ini values for 5Ghz network RSSI boost/penalty preference. Change-Id: If89c09fb1343a68dfaa7241b5ec14b046d1bb758 CRs-Fixed: 2452128 --- components/mlme/dispatcher/inc/cfg_mlme_lfr.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/components/mlme/dispatcher/inc/cfg_mlme_lfr.h b/components/mlme/dispatcher/inc/cfg_mlme_lfr.h index 98ae5a5faa3e..a3405156e6e9 100644 --- a/components/mlme/dispatcher/inc/cfg_mlme_lfr.h +++ b/components/mlme/dispatcher/inc/cfg_mlme_lfr.h @@ -870,8 +870,8 @@ /* * * 5g_rssi_boost_threshold - A_band_boost_threshold above which 5G is favored. - * @Min: -55 - * @Max: -70 + * @Min: -70 + * @Max: -55 * @Default: -60 * This ini is used to set threshold for 5GHz band preference. * @@ -886,8 +886,8 @@ */ #define CFG_LFR_5G_RSSI_BOOST_THRESHOLD CFG_INI_INT( \ "5g_rssi_boost_threshold", \ - -55, \ -70, \ + -55, \ -60, \ CFG_VALUE_OR_DEFAULT, \ "A_band_boost_threshold above which 5 GHz is favored") @@ -946,8 +946,8 @@ * * 5g_rssi_penalize_threshold - A_band_penalize_threshold above which * 5 GHz is not favored. - * @Min: -65 - * @Max: -80 + * @Min: -80 + * @Max: -65 * @Default: -70 * This ini is used to set threshold for 5GHz band preference. * @@ -962,8 +962,8 @@ */ #define CFG_LFR_5G_RSSI_PENALIZE_THRESHOLD CFG_INI_INT( \ "5g_rssi_penalize_threshold", \ - -65, \ -80, \ + -65, \ -70, \ CFG_VALUE_OR_DEFAULT, \ "A_band_penalize_threshold above which 5 GHz is not favored")