diff options
Diffstat (limited to 'hostapd/config_file.c')
| -rw-r--r-- | hostapd/config_file.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c index 949a9d17..b6f1d1b9 100644 --- a/hostapd/config_file.c +++ b/hostapd/config_file.c @@ -257,6 +257,7 @@ static int hostapd_config_read_eap_user(const char *fname, if (attr == NULL) { wpa_printf(MSG_ERROR, "Invalid radius_auth_req_attr: %s", buf + 19); + user = NULL; /* already in the BSS list */ goto failed; } if (user->accept_attr == NULL) { @@ -2485,6 +2486,13 @@ static int hostapd_config_fill(struct hostapd_config *conf, conf->channel = 0; } else conf->channel = atoi(pos); + } else if (os_strcmp(buf, "chanlist") == 0) { + if (hostapd_parse_intlist(&conf->chanlist, pos)) { + wpa_printf(MSG_ERROR, + "Line %d: invalid channel list", + line); + errors++; + } } else if (os_strcmp(buf, "beacon_int") == 0) { int val = atoi(pos); /* MIB defines range as 1..65535, but very small values |
