--- hostapd/config_file.c | 7 +++++++ src/ap/ap_config.c | 1 + src/ap/ap_config.h | 1 + 3 files changed, 9 insertions(+), 0 deletions(-) diff --git a/hostapd/config_file.c b/hostapd/config_file.c index f6b9926..119a4bb 100644 --- a/hostapd/config_file.c +++ b/hostapd/config_file.c @@ -1736,6 +1736,13 @@ struct hostapd_config * hostapd_config_read(const char *fname) } } else if (os_strcmp(buf, "channel") == 0) { conf->channel = atoi(pos); + } else if (os_strcmp(buf, "channel_list") == 0) { + if (hostapd_parse_int_list(&conf->channel_list, + 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 diff --git a/src/ap/ap_config.c b/src/ap/ap_config.c index 702cb76..38e70fb 100644 --- a/src/ap/ap_config.c +++ b/src/ap/ap_config.c @@ -466,6 +466,7 @@ void hostapd_config_free(struct hostapd_config *conf) os_free(conf->bss); os_free(conf->supported_rates); os_free(conf->basic_rates); + os_free(conf->channel_list); os_free(conf); } diff --git a/src/ap/ap_config.h b/src/ap/ap_config.h index 0a929d6..57c977d 100644 --- a/src/ap/ap_config.h +++ b/src/ap/ap_config.h @@ -340,6 +340,7 @@ struct hostapd_config { int fragm_threshold; u8 send_probe_response; u8 channel; + int *channel_list; enum hostapd_hw_mode hw_mode; /* HOSTAPD_MODE_IEEE80211A, .. */ enum { LONG_PREAMBLE = 0, -- 1.5.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html