summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorService qcabuildsw <qcabuildsw@localhost>2016-12-22 09:36:31 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2016-12-22 09:36:31 -0800
commit1c59bfa74309d220902c8a24338200706dfa2546 (patch)
tree212102c1f63983731c7c8d99443ca288b795d367
parent25e4b59ee44e56d5c395137d87e49919d73327a6 (diff)
parent26edd57827baeefe99855c8e13301e439dbb29ad (diff)
Merge "qcacld-3.0: Input validation for RSSI Delta for TDLS Config" into wlan-cld3.driver.lnx.1.1-dev
-rw-r--r--core/hdd/src/wlan_hdd_tdls.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/hdd/src/wlan_hdd_tdls.c b/core/hdd/src/wlan_hdd_tdls.c
index 9244b5b3071f..f309890fd164 100644
--- a/core/hdd/src/wlan_hdd_tdls.c
+++ b/core/hdd/src/wlan_hdd_tdls.c
@@ -1525,6 +1525,14 @@ static int wlan_hdd_tdls_check_config(tdls_config_params_t *config)
CFG_TDLS_RSSI_TEARDOWN_THRESHOLD_MAX);
return -EINVAL;
}
+ if (config->rssi_delta < CFG_TDLS_RSSI_DELTA_MIN
+ || config->rssi_delta > CFG_TDLS_RSSI_DELTA_MAX) {
+ hdd_err("Invalid 11th argument %d. <%d...%d>",
+ config->rssi_delta,
+ CFG_TDLS_RSSI_DELTA_MIN,
+ CFG_TDLS_RSSI_DELTA_MAX);
+ return -EINVAL;
+ }
return 0;
}