aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'hostapd/config.c')
-rw-r--r--hostapd/config.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/hostapd/config.c b/hostapd/config.c
index 82c9336..9616a94 100644
--- a/hostapd/config.c
+++ b/hostapd/config.c
@@ -227,6 +227,8 @@ static struct hostapd_config * hostapd_config_defaults(void)
conf->send_probe_response = 1;
conf->bridge_packets = INTERNAL_BRIDGE_DO_NOT_CONTROL;
+ sprintf(conf->country, "US ");
+
for (i = 0; i < NUM_TX_QUEUES; i++)
conf->tx_queue[i].aifs = -1; /* use hw default */
@@ -1262,6 +1264,14 @@ struct hostapd_config * hostapd_config_read(const char *fname)
}
} else if (strcmp(buf, "ap_max_inactivity") == 0) {
bss->ap_max_inactivity = atoi(pos);
+ } else if (strcmp(buf, "country_code") == 0) {
+ memcpy(conf->country, pos, 2);
+ /* FIX: make this configurable */
+ conf->country[2] = ' ';
+ } else if (strcmp(buf, "ieee80211d") == 0) {
+ conf->ieee80211d = atoi(pos);
+ } else if (strcmp(buf, "ieee80211h") == 0) {
+ conf->ieee80211h = atoi(pos);
} else if (strcmp(buf, "assoc_ap_addr") == 0) {
if (hwaddr_aton(pos, bss->assoc_ap_addr)) {
printf("Line %d: invalid MAC address '%s'\n",