summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChenming Huang <chenhuan@codeaurora.org>2021-04-01 15:34:29 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2021-04-18 23:57:21 -0700
commit7ca2b68a3cb706bb55f87bd3986f0c55b572fa7b (patch)
tree8a62dedb4c50ea42cdc62b1a162cfa9160787dd7
parent39b8fb96aff4ac636da990777caa8d80a649c54d (diff)
wifi: limit congestion report interval
A big interval is meaningless for congestion events report. Also, it might lead to wrong percentage. So here limit interval to no more than 30 to match driver/FW's setting CRs-Fixed: 2916668 Change-Id: I2c84f63beafcf47d38f1052bfbf5a6ea92afff98
-rw-r--r--qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c b/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c
index 04b4ad1..53e2ec3 100644
--- a/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c
+++ b/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c
@@ -106,7 +106,7 @@ static int wpa_driver_cmd_set_congestion_report(struct i802_bss *bss, char *cmd)
if (!(*endptr) ||
((threshold = strtol(endptr, &endptr, 10)) < 0 || threshold > 100) ||
!(*endptr) ||
- ((interval = strtol(endptr, &endptr, 10)) < 1 || interval > 255)) {
+ ((interval = strtol(endptr, &endptr, 10)) < 1 || interval > 30)) {
wpa_printf(MSG_ERROR, "%s: args less or invalid", __FUNCTION__);
return -EINVAL;
}