aboutsummaryrefslogtreecommitdiff
path: root/contrib/wpa/hostapd/config_file.c
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2022-01-06 18:28:57 +0000
committerCy Schubert <cy@FreeBSD.org>2022-01-06 18:30:51 +0000
commit32a95656b51ebefcdf3e0b02c110825f59abd26f (patch)
treeff3ed42c804186752200489b19a5582e70a89b70 /contrib/wpa/hostapd/config_file.c
parentf567fcb2ffc4180319e644796d6dbc51b51a4e04 (diff)
Diffstat (limited to 'contrib/wpa/hostapd/config_file.c')
-rw-r--r--contrib/wpa/hostapd/config_file.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/wpa/hostapd/config_file.c b/contrib/wpa/hostapd/config_file.c
index daf3f37ad99e..b14728d1b507 100644
--- a/contrib/wpa/hostapd/config_file.c
+++ b/contrib/wpa/hostapd/config_file.c
@@ -3193,6 +3193,16 @@ static int hostapd_config_fill(struct hostapd_config *conf,
conf->acs_freq_list_present = 1;
} else if (os_strcmp(buf, "acs_exclude_6ghz_non_psc") == 0) {
conf->acs_exclude_6ghz_non_psc = atoi(pos);
+ } else if (os_strcmp(buf, "min_tx_power") == 0) {
+ int val = atoi(pos);
+
+ if (val < 0 || val > 255) {
+ wpa_printf(MSG_ERROR,
+ "Line %d: invalid min_tx_power %d (expected 0..255)",
+ line, val);
+ return 1;
+ }
+ conf->min_tx_power = val;
} else if (os_strcmp(buf, "beacon_int") == 0) {
int val = atoi(pos);
/* MIB defines range as 1..65535, but very small values