mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
qcacld-3.0: Input validation for RSSI Delta for TDLS Config
Validating input for RSSI Delta for TDLS configuration in the function wlan_hdd_tdls_check_config(). Change-Id: I74c00db19dc28f363fe4e349b2bd94440bfc9238 CRs-Fixed: 1102929
This commit is contained in:
parent
d612e4988c
commit
757435ed38
1 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue