]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - hostapd/config_file.c
WNM: Additional BSS Transition Management capability
[thirdparty/hostap.git] / hostapd / config_file.c
index 70a114db6c7716d3fca03e1dae71e5092accc790..2ba7cc1272599fe338f678f954ebc6e9db84199a 100644 (file)
@@ -1780,6 +1780,8 @@ static int hostapd_config_fill(struct hostapd_config *conf,
                                bss->ssid.ssid_set = 1;
                        }
                        os_free(str);
+               } else if (os_strcmp(buf, "utf8_ssid") == 0) {
+                       bss->ssid.utf8_ssid = atoi(pos) > 0;
                } else if (os_strcmp(buf, "macaddr_acl") == 0) {
                        bss->macaddr_acl = atoi(pos);
                        if (bss->macaddr_acl != ACCEPT_UNLESS_DENIED &&
@@ -2311,6 +2313,8 @@ static int hostapd_config_fill(struct hostapd_config *conf,
                                conf->hw_mode = HOSTAPD_MODE_IEEE80211B;
                        else if (os_strcmp(pos, "g") == 0)
                                conf->hw_mode = HOSTAPD_MODE_IEEE80211G;
+                       else if (os_strcmp(pos, "ad") == 0)
+                               conf->hw_mode = HOSTAPD_MODE_IEEE80211AD;
                        else {
                                wpa_printf(MSG_ERROR, "Line %d: unknown "
                                           "hw_mode '%s'", line, pos);
@@ -2717,8 +2721,12 @@ static int hostapd_config_fill(struct hostapd_config *conf,
                        bss->time_zone = os_strdup(pos);
                        if (bss->time_zone == NULL)
                                errors++;
+#ifdef CONFIG_WNM
                } else if (os_strcmp(buf, "wnm_sleep_mode") == 0) {
                        bss->wnm_sleep_mode = atoi(pos);
+               } else if (os_strcmp(buf, "bss_transition") == 0) {
+                       bss->bss_transition = atoi(pos);
+#endif /* CONFIG_WNM */
 #ifdef CONFIG_INTERWORKING
                } else if (os_strcmp(buf, "interworking") == 0) {
                        bss->interworking = atoi(pos);