Lines Matching full:if
39 if (!f) { in hostapd_config_read_vlan_file()
47 if (buf[0] == '#') in hostapd_config_read_vlan_file()
51 if (*pos == '\n') { in hostapd_config_read_vlan_file()
57 if (buf[0] == '\0') in hostapd_config_read_vlan_file()
60 if (buf[0] == '*') { in hostapd_config_read_vlan_file()
65 if (buf == pos || vlan_id < 1 || in hostapd_config_read_vlan_file()
80 if (*pos2 != '\0') in hostapd_config_read_vlan_file()
83 if (*pos == '\0' || os_strlen(pos) > IFNAMSIZ) { in hostapd_config_read_vlan_file()
98 if (vlan == NULL) { in hostapd_config_read_vlan_file()
131 if (!f) { in hostapd_config_read_maclist()
141 if (buf[0] == '#') in hostapd_config_read_maclist()
145 if (*pos == '\n') { in hostapd_config_read_maclist()
151 if (buf[0] == '\0') in hostapd_config_read_maclist()
154 if (buf[0] == '-') { in hostapd_config_read_maclist()
159 if (hwaddr_aton(pos, addr)) { in hostapd_config_read_maclist()
166 if (rem) { in hostapd_config_read_maclist()
176 if (*pos != '\0') in hostapd_config_read_maclist()
179 if (hostapd_add_acl_maclist(acl, num, vlan_id, addr) < 0) { in hostapd_config_read_maclist()
187 if (*acl) in hostapd_config_read_maclist()
206 if (pos2 - *pos < (int) (2 * (len + 1))) { /* at least 1 byte of salt */ in hostapd_config_eap_user_salted()
214 if (!user->password) { in hostapd_config_eap_user_salted()
221 if (hexstr2bin(*pos, user->password, len) < 0) { in hostapd_config_eap_user_salted()
232 if (!user->salt) { in hostapd_config_eap_user_salted()
239 if (hexstr2bin(*pos, user->salt, user->salt_len) < 0) { in hostapd_config_eap_user_salted()
259 if (os_strncmp(fname, "sqlite:", 7) == 0) { in hostapd_config_read_eap_user()
272 if (!f) { in hostapd_config_read_eap_user()
281 if (buf[0] == '#') in hostapd_config_read_eap_user()
285 if (*pos == '\n') { in hostapd_config_read_eap_user()
291 if (buf[0] == '\0') in hostapd_config_read_eap_user()
295 if (user && os_strncmp(buf, "radius_accept_attr=", 19) == 0) { in hostapd_config_read_eap_user()
298 if (attr == NULL) { in hostapd_config_read_eap_user()
304 if (user->accept_attr == NULL) { in hostapd_config_read_eap_user()
318 if (buf[0] != '"' && buf[0] != '*') { in hostapd_config_read_eap_user()
325 if (user == NULL) { in hostapd_config_read_eap_user()
331 if (buf[0] == '*') { in hostapd_config_read_eap_user()
338 if (*pos == '\0') { in hostapd_config_read_eap_user()
346 if (user->identity == NULL) { in hostapd_config_read_eap_user()
353 if (pos[0] == '"' && pos[1] == '*') { in hostapd_config_read_eap_user()
362 if (*pos == '\0') { in hostapd_config_read_eap_user()
371 if (*pos == '\0') { in hostapd_config_read_eap_user()
380 if (pos3) { in hostapd_config_read_eap_user()
387 if (user->methods[num_methods].vendor == in hostapd_config_read_eap_user()
391 if (os_strcmp(start, "TTLS-PAP") == 0) { in hostapd_config_read_eap_user()
395 if (os_strcmp(start, "TTLS-CHAP") == 0) { in hostapd_config_read_eap_user()
399 if (os_strcmp(start, "TTLS-MSCHAP") == 0) { in hostapd_config_read_eap_user()
404 if (os_strcmp(start, "TTLS-MSCHAPV2") == 0) { in hostapd_config_read_eap_user()
409 if (os_strcmp(start, "MACACL") == 0) { in hostapd_config_read_eap_user()
420 if (num_methods >= EAP_MAX_METHODS) in hostapd_config_read_eap_user()
423 if (pos3 == NULL) in hostapd_config_read_eap_user()
427 if (num_methods == 0 && user->ttls_auth == 0 && !user->macacl) { in hostapd_config_read_eap_user()
433 if (pos == NULL) in hostapd_config_read_eap_user()
438 if (*pos == '\0') in hostapd_config_read_eap_user()
441 if (os_strncmp(pos, "[ver=0]", 7) == 0) { in hostapd_config_read_eap_user()
446 if (os_strncmp(pos, "[ver=1]", 7) == 0) { in hostapd_config_read_eap_user()
451 if (os_strncmp(pos, "[2]", 3) == 0) { in hostapd_config_read_eap_user()
456 if (*pos == '"') { in hostapd_config_read_eap_user()
461 if (*pos == '\0') { in hostapd_config_read_eap_user()
469 if (user->password == NULL) { in hostapd_config_read_eap_user()
477 } else if (os_strncmp(pos, "hash:", 5) == 0) { in hostapd_config_read_eap_user()
483 if (pos2 - pos != 32) { in hostapd_config_read_eap_user()
489 if (user->password == NULL) { in hostapd_config_read_eap_user()
494 if (hexstr2bin(pos, user->password, 16) < 0) { in hostapd_config_read_eap_user()
502 } else if (os_strncmp(pos, "ssha1:", 6) == 0) { in hostapd_config_read_eap_user()
504 if (hostapd_config_eap_user_salted(user, "sha1", 20, in hostapd_config_read_eap_user()
508 } else if (os_strncmp(pos, "ssha256:", 8) == 0) { in hostapd_config_read_eap_user()
510 if (hostapd_config_eap_user_salted(user, "sha256", 32, in hostapd_config_read_eap_user()
514 } else if (os_strncmp(pos, "ssha512:", 8) == 0) { in hostapd_config_read_eap_user()
516 if (hostapd_config_eap_user_salted(user, "sha512", 64, in hostapd_config_read_eap_user()
525 if ((pos2 - pos) & 1) { in hostapd_config_read_eap_user()
531 if (user->password == NULL) { in hostapd_config_read_eap_user()
536 if (hexstr2bin(pos, user->password, in hostapd_config_read_eap_user()
548 if (os_strncmp(pos, "[2]", 3) == 0) { in hostapd_config_read_eap_user()
553 if (tail == NULL) { in hostapd_config_read_eap_user()
562 if (user) in hostapd_config_read_eap_user()
570 if (ret == 0) { in hostapd_config_read_eap_user()
594 if (nserv == NULL) in hostapd_config_read_radius_addr()
617 if (secret == NULL) in hostapd_parse_das_client()
622 if (hostapd_parse_ip_addr(val, &bss->radius_das_client_addr)) in hostapd_parse_das_client()
627 if (bss->radius_das_shared_secret == NULL) in hostapd_parse_das_client()
642 if (buf == NULL) in hostapd_config_parse_key_mgmt()
649 if (*start == '\0') in hostapd_config_parse_key_mgmt()
656 if (os_strcmp(start, "WPA-PSK") == 0) in hostapd_config_parse_key_mgmt()
658 else if (os_strcmp(start, "WPA-EAP") == 0) in hostapd_config_parse_key_mgmt()
661 else if (os_strcmp(start, "FT-PSK") == 0) in hostapd_config_parse_key_mgmt()
663 else if (os_strcmp(start, "FT-EAP") == 0) in hostapd_config_parse_key_mgmt()
666 else if (os_strcmp(start, "FT-EAP-SHA384") == 0) in hostapd_config_parse_key_mgmt()
671 else if (os_strcmp(start, "WPA-EAP-SHA384") == 0) in hostapd_config_parse_key_mgmt()
674 else if (os_strcmp(start, "WPA-PSK-SHA256") == 0) in hostapd_config_parse_key_mgmt()
676 else if (os_strcmp(start, "WPA-EAP-SHA256") == 0) in hostapd_config_parse_key_mgmt()
679 else if (os_strcmp(start, "SAE") == 0) in hostapd_config_parse_key_mgmt()
681 else if (os_strcmp(start, "SAE-EXT-KEY") == 0) in hostapd_config_parse_key_mgmt()
683 else if (os_strcmp(start, "FT-SAE") == 0) in hostapd_config_parse_key_mgmt()
685 else if (os_strcmp(start, "FT-SAE-EXT-KEY") == 0) in hostapd_config_parse_key_mgmt()
689 else if (os_strcmp(start, "WPA-EAP-SUITE-B") == 0) in hostapd_config_parse_key_mgmt()
693 else if (os_strcmp(start, "WPA-EAP-SUITE-B-192") == 0) in hostapd_config_parse_key_mgmt()
697 else if (os_strcmp(start, "FILS-SHA256") == 0) in hostapd_config_parse_key_mgmt()
699 else if (os_strcmp(start, "FILS-SHA384") == 0) in hostapd_config_parse_key_mgmt()
702 else if (os_strcmp(start, "FT-FILS-SHA256") == 0) in hostapd_config_parse_key_mgmt()
704 else if (os_strcmp(start, "FT-FILS-SHA384") == 0) in hostapd_config_parse_key_mgmt()
709 else if (os_strcmp(start, "OWE") == 0) in hostapd_config_parse_key_mgmt()
713 else if (os_strcmp(start, "DPP") == 0) in hostapd_config_parse_key_mgmt()
717 else if (os_strcmp(start, "OSEN") == 0) in hostapd_config_parse_key_mgmt()
721 else if (os_strcmp(start, "PASN") == 0) in hostapd_config_parse_key_mgmt()
731 if (last) in hostapd_config_parse_key_mgmt()
737 if (val == 0) { in hostapd_config_parse_key_mgmt()
750 if (val < 0) { in hostapd_config_parse_cipher()
755 if (val == 0) { in hostapd_config_parse_cipher()
770 if (keyidx < 0 || keyidx > 3) in hostapd_config_read_wep()
773 if (len == 0) { in hostapd_config_read_wep()
780 if (wep->key[i]) in hostapd_config_read_wep()
783 if (!set) in hostapd_config_read_wep()
788 if (wep->key[keyidx] != NULL) in hostapd_config_read_wep()
791 if (val[0] == '"') { in hostapd_config_read_wep()
792 if (len < 2 || val[len - 1] != '"') in hostapd_config_read_wep()
796 if (wep->key[keyidx] == NULL) in hostapd_config_read_wep()
800 if (len & 1) in hostapd_config_read_wep()
804 if (wep->key[keyidx] == NULL) in hostapd_config_read_wep()
807 if (hexstr2bin(val, wep->key[keyidx], len) < 0) in hostapd_config_read_wep()
826 if (pos) in hostapd_parse_chanlist()
829 if (freq_range_list_parse(&conf->acs_ch_list, val)) in hostapd_parse_chanlist()
848 if (*pos == ' ') in hostapd_parse_intlist()
854 if (list == NULL) in hostapd_parse_intlist()
860 if (end) in hostapd_parse_intlist()
864 if (!end) in hostapd_parse_intlist()
879 if (*ifname == '\0') in hostapd_config_bss()
884 if (all == NULL) { in hostapd_config_bss()
892 if (bss == NULL) in hostapd_config_bss()
895 if (bss->radius == NULL) { in hostapd_config_bss()
920 if (!hexstr2bin(pos, key, key_len)) in rkh_derive_key()
924 if (hexstr2bin(pos, oldkey, sizeof(oldkey))) in rkh_derive_key()
940 if (r0kh == NULL) in add_r0kh()
946 if (next) in add_r0kh()
948 if (next == NULL || hwaddr_aton(pos, r0kh->addr)) { in add_r0kh()
956 if (next) in add_r0kh()
958 if (next == NULL || next - pos > FT_R0KH_ID_MAX_LEN) { in add_r0kh()
967 if (rkh_derive_key(pos, r0kh->key, sizeof(r0kh->key)) < 0) { in add_r0kh()
986 if (r1kh == NULL) in add_r1kh()
993 if (next) in add_r1kh()
995 if (next == NULL || hwaddr_aton(pos, r1kh->addr)) { in add_r1kh()
1003 if (next) in add_r1kh()
1005 if (next == NULL || hwaddr_aton(pos, r1kh->id)) { in add_r1kh()
1012 if (rkh_derive_key(pos, r1kh->key, sizeof(r1kh->key)) < 0) { in add_r1kh()
1032 if (!fname) in hostapd_config_read_rxkh_file()
1036 if (!f) { in hostapd_config_read_rxkh_file()
1044 if (buf[0] == '#') in hostapd_config_read_rxkh_file()
1048 if (*pos == '\n') { in hostapd_config_read_rxkh_file()
1054 if (buf[0] == '\0') in hostapd_config_read_rxkh_file()
1058 if (!pos) { in hostapd_config_read_rxkh_file()
1067 if (os_strcmp(buf, "r0kh") == 0) { in hostapd_config_read_rxkh_file()
1068 if (add_r0kh(conf, pos) < 0) { in hostapd_config_read_rxkh_file()
1074 } else if (os_strcmp(buf, "r1kh") == 0) { in hostapd_config_read_rxkh_file()
1075 if (add_r1kh(conf, pos) < 0) { in hostapd_config_read_rxkh_file()
1086 if (errors) { in hostapd_config_read_rxkh_file()
1101 if (os_strstr(capab, "[LDPC]")) in hostapd_config_ht_capab()
1103 if (os_strstr(capab, "[HT40-]")) { in hostapd_config_ht_capab()
1107 if (os_strstr(capab, "[HT40+]")) { in hostapd_config_ht_capab()
1111 if (os_strstr(capab, "[HT40+]") && os_strstr(capab, "[HT40-]")) { in hostapd_config_ht_capab()
1115 if (!os_strstr(capab, "[HT40+]") && !os_strstr(capab, "[HT40-]")) in hostapd_config_ht_capab()
1117 if (os_strstr(capab, "[GF]")) in hostapd_config_ht_capab()
1119 if (os_strstr(capab, "[SHORT-GI-20]")) in hostapd_config_ht_capab()
1121 if (os_strstr(capab, "[SHORT-GI-40]")) in hostapd_config_ht_capab()
1123 if (os_strstr(capab, "[TX-STBC]")) in hostapd_config_ht_capab()
1125 if (os_strstr(capab, "[RX-STBC1]")) { in hostapd_config_ht_capab()
1129 if (os_strstr(capab, "[RX-STBC12]")) { in hostapd_config_ht_capab()
1133 if (os_strstr(capab, "[RX-STBC123]")) { in hostapd_config_ht_capab()
1137 if (os_strstr(capab, "[DELAYED-BA]")) in hostapd_config_ht_capab()
1139 if (os_strstr(capab, "[MAX-AMSDU-7935]")) in hostapd_config_ht_capab()
1141 if (os_strstr(capab, "[DSSS_CCK-40]")) in hostapd_config_ht_capab()
1143 if (os_strstr(capab, "[40-INTOLERANT]")) in hostapd_config_ht_capab()
1145 if (os_strstr(capab, "[LSIG-TXOP-PROT]")) in hostapd_config_ht_capab()
1156 if (os_strstr(capab, "[MAX-MPDU-7991]")) in hostapd_config_vht_capab()
1158 if (os_strstr(capab, "[MAX-MPDU-11454]")) in hostapd_config_vht_capab()
1160 if (os_strstr(capab, "[VHT160]")) in hostapd_config_vht_capab()
1162 if (os_strstr(capab, "[VHT160-80PLUS80]")) in hostapd_config_vht_capab()
1164 if (os_strstr(capab, "[RXLDPC]")) in hostapd_config_vht_capab()
1166 if (os_strstr(capab, "[SHORT-GI-80]")) in hostapd_config_vht_capab()
1168 if (os_strstr(capab, "[SHORT-GI-160]")) in hostapd_config_vht_capab()
1170 if (os_strstr(capab, "[TX-STBC-2BY1]")) in hostapd_config_vht_capab()
1172 if (os_strstr(capab, "[RX-STBC-1]")) in hostapd_config_vht_capab()
1174 if (os_strstr(capab, "[RX-STBC-12]")) in hostapd_config_vht_capab()
1176 if (os_strstr(capab, "[RX-STBC-123]")) in hostapd_config_vht_capab()
1178 if (os_strstr(capab, "[RX-STBC-1234]")) in hostapd_config_vht_capab()
1180 if (os_strstr(capab, "[SU-BEAMFORMER]")) in hostapd_config_vht_capab()
1182 if (os_strstr(capab, "[SU-BEAMFORMEE]")) in hostapd_config_vht_capab()
1184 if (os_strstr(capab, "[BF-ANTENNA-2]") && in hostapd_config_vht_capab()
1187 if (os_strstr(capab, "[BF-ANTENNA-3]") && in hostapd_config_vht_capab()
1190 if (os_strstr(capab, "[BF-ANTENNA-4]") && in hostapd_config_vht_capab()
1193 if (os_strstr(capab, "[SOUNDING-DIMENSION-2]") && in hostapd_config_vht_capab()
1196 if (os_strstr(capab, "[SOUNDING-DIMENSION-3]") && in hostapd_config_vht_capab()
1199 if (os_strstr(capab, "[SOUNDING-DIMENSION-4]") && in hostapd_config_vht_capab()
1202 if (os_strstr(capab, "[MU-BEAMFORMER]")) in hostapd_config_vht_capab()
1204 if (os_strstr(capab, "[VHT-TXOP-PS]")) in hostapd_config_vht_capab()
1206 if (os_strstr(capab, "[HTC-VHT]")) in hostapd_config_vht_capab()
1208 if (os_strstr(capab, "[MAX-A-MPDU-LEN-EXP7]")) in hostapd_config_vht_capab()
1210 else if (os_strstr(capab, "[MAX-A-MPDU-LEN-EXP6]")) in hostapd_config_vht_capab()
1212 else if (os_strstr(capab, "[MAX-A-MPDU-LEN-EXP5]")) in hostapd_config_vht_capab()
1214 else if (os_strstr(capab, "[MAX-A-MPDU-LEN-EXP4]")) in hostapd_config_vht_capab()
1216 else if (os_strstr(capab, "[MAX-A-MPDU-LEN-EXP3]")) in hostapd_config_vht_capab()
1218 else if (os_strstr(capab, "[MAX-A-MPDU-LEN-EXP2]")) in hostapd_config_vht_capab()
1220 else if (os_strstr(capab, "[MAX-A-MPDU-LEN-EXP1]")) in hostapd_config_vht_capab()
1222 if (os_strstr(capab, "[VHT-LINK-ADAPT2]") && in hostapd_config_vht_capab()
1225 if (os_strstr(capab, "[VHT-LINK-ADAPT3]") && in hostapd_config_vht_capab()
1228 if (os_strstr(capab, "[RX-ANTENNA-PATTERN]")) in hostapd_config_vht_capab()
1230 if (os_strstr(capab, "[TX-ANTENNA-PATTERN]")) in hostapd_config_vht_capab()
1244 if (val & 1) in find_bit_offset()
1268 if (end) in hostapd_parse_he_srg_bitmap()
1272 if (bitpos < 0 || bitpos > 64) in hostapd_parse_he_srg_bitmap()
1276 if (!end) in hostapd_parse_he_srg_bitmap()
1296 if ((len & 1) || len < 2 * 3 || len / 2 > MAX_ROAMING_CONSORTIUM_LEN || in parse_roaming_consortium()
1307 if (rc == NULL) in parse_roaming_consortium()
1328 if (*pos == '"' || (*pos == 'P' && pos[1] == '"')) { in parse_lang_string()
1330 if (!str) in parse_lang_string()
1336 if (sep == NULL) in parse_lang_string()
1341 if (clen < 2 || clen > sizeof(ls->lang)) in parse_lang_string()
1344 if (nlen > 252) in parse_lang_string()
1349 if (ls == NULL) in parse_lang_string()
1371 if (parse_lang_string(&bss->venue_name, &bss->venue_name_count, pos)) { in parse_venue_name()
1389 if (!sep) in parse_venue_url()
1394 if (nlen > 254) in parse_venue_url()
1399 if (!url) in parse_venue_url()
1411 if (ret) in parse_venue_url()
1429 if ((*pos < '0' || *pos > '9') && *pos != ';' && *pos != ',') in parse_3gpp_cell_net()
1431 if (*pos == ';') in parse_3gpp_cell_net()
1434 if (1 + count * 3 > 0x7f) in parse_3gpp_cell_net()
1438 if (info == NULL) in parse_3gpp_cell_net()
1456 if (mnc == NULL) in parse_3gpp_cell_net()
1460 if (pos) in parse_3gpp_cell_net()
1464 if (os_strlen(mcc) != 3 || (mnc_len != 2 && mnc_len != 3)) in parse_3gpp_cell_net()
1502 if (offsets == NULL) in parse_nai_realm()
1516 if (realm == NULL) { in parse_nai_realm()
1527 if (offs >= 0) in parse_nai_realm()
1541 if (pos == NULL) in parse_nai_realm()
1546 if (end) { in parse_nai_realm()
1553 if (len > MAX_NAI_REALMLEN) { in parse_nai_realm()
1560 if (end) in parse_nai_realm()
1568 if (realm->eap_method_count >= MAX_NAI_EAP_METHODS) { in parse_nai_realm()
1577 if (end == NULL) in parse_nai_realm()
1583 if (pos == NULL || pos > end) in parse_nai_realm()
1586 if (eap->num_auths >= MAX_NAI_AUTH_TYPES) { in parse_nai_realm()
1592 if (pos == NULL || pos > end) in parse_nai_realm()
1597 if (pos == NULL || pos > end) in parse_nai_realm()
1603 if (*end != ',') in parse_nai_realm()
1613 if (i >= MAX_NAI_REALMS) { in parse_nai_realm()
1619 if (rpos == NULL) in parse_nai_realm()
1643 if (!delim) in parse_anqp_elem()
1648 if (len & 1) in parse_anqp_elem()
1652 if (!payload) in parse_anqp_elem()
1654 if (hexstr2bin(delim, wpabuf_put(payload, len), len) < 0) { in parse_anqp_elem()
1660 if (elem->infoid == infoid) { in parse_anqp_elem()
1670 if (!elem) { in parse_anqp_elem()
1692 if (count == sizeof(qos_map_set)) { in parse_qos_map_set()
1699 if (val > 255 || val < 0) { in parse_qos_map_set()
1707 if (!pos) in parse_qos_map_set()
1712 if (count < 16 || count & 1) { in parse_qos_map_set()
1732 if (bss->hs20_connection_capability_len >= 0xfff0) in hs20_parse_conn_capab()
1737 if (conn_cap == NULL) in hs20_parse_conn_capab()
1745 if (pos == NULL) in hs20_parse_conn_capab()
1750 if (pos == NULL) in hs20_parse_conn_capab()
1769 if (wan_metrics == NULL) in hs20_parse_wan_metrics()
1774 if (hexstr2bin(pos, wan_metrics, 1) < 0) in hs20_parse_wan_metrics()
1777 if (*pos != ':') in hs20_parse_wan_metrics()
1784 if (pos == NULL) in hs20_parse_wan_metrics()
1791 if (pos == NULL) in hs20_parse_wan_metrics()
1798 if (pos == NULL) in hs20_parse_wan_metrics()
1805 if (pos == NULL) in hs20_parse_wan_metrics()
1828 if (parse_lang_string(&bss->hs20_oper_friendly_name, in hs20_parse_oper_friendly_name()
1845 if (icon == NULL) in hs20_parse_icon()
1853 if (pos == NULL) in hs20_parse_icon()
1859 if (pos == NULL) in hs20_parse_icon()
1864 if (end == NULL || end - pos > 3) in hs20_parse_icon()
1870 if (end == NULL || end - pos > 255) in hs20_parse_icon()
1876 if (end == NULL || end - pos > 255) in hs20_parse_icon()
1881 if (os_strlen(pos) > 255) in hs20_parse_icon()
1898 if (str == NULL || slen < 1 || slen > SSID_MAX_LEN) { in hs20_parse_osu_ssid()
1919 if (p == NULL) in hs20_parse_osu_server_uri()
1935 if (bss->last_osu == NULL) { in hs20_parse_osu_friendly_name()
1940 if (parse_lang_string(&bss->last_osu->friendly_name, in hs20_parse_osu_friendly_name()
1954 if (bss->last_osu == NULL) { in hs20_parse_osu_nai()
1961 if (bss->last_osu->osu_nai == NULL) in hs20_parse_osu_nai()
1971 if (bss->last_osu == NULL) { in hs20_parse_osu_nai2()
1978 if (bss->last_osu->osu_nai2 == NULL) in hs20_parse_osu_nai2()
1989 if (bss->last_osu == NULL) { in hs20_parse_osu_method_list()
1994 if (hostapd_parse_intlist(&bss->last_osu->method_list, pos)) { in hs20_parse_osu_method_list()
2009 if (p == NULL) { in hs20_parse_osu_icon()
2015 if (n == NULL) in hs20_parse_osu_icon()
2019 if (p->icons[p->icons_count] == NULL) in hs20_parse_osu_icon()
2030 if (bss->last_osu == NULL) { in hs20_parse_osu_service_desc()
2035 if (parse_lang_string(&bss->last_osu->service_desc, in hs20_parse_osu_service_desc()
2053 if (!n) in hs20_parse_operator_icon()
2057 if (!bss->hs20_operator_icon[bss->hs20_operator_icon_count]) in hs20_parse_operator_icon()
2077 if (!tmp) in hostapd_config_parse_acs_chan_bias()
2082 if (bias[num].channel <= 0) in hostapd_config_parse_acs_chan_bias()
2085 if (!pos) in hostapd_config_parse_acs_chan_bias()
2089 if (end == pos || bias[num].bias < 0.0) in hostapd_config_parse_acs_chan_bias()
2092 if (*pos != ' ' && *pos != '\0') in hostapd_config_parse_acs_chan_bias()
2114 if (val[0] == '\0') { in parse_wpabuf_hex()
2121 if (!elems) { in parse_wpabuf_hex()
2142 if (!realm) in parse_fils_realm()
2146 if (fils_domain_name_hash(val, realm->hash) < 0) { in parse_fils_realm()
2167 if (os_strstr(val, "[ALLOW-SIGN-RSA-MD5]")) in parse_tls_flags()
2169 if (os_strstr(val, "[DISABLE-TIME-CHECKS]")) in parse_tls_flags()
2171 if (os_strstr(val, "[DISABLE-TLSv1.0]")) in parse_tls_flags()
2173 if (os_strstr(val, "[ENABLE-TLSv1.0]")) in parse_tls_flags()
2175 if (os_strstr(val, "[DISABLE-TLSv1.1]")) in parse_tls_flags()
2177 if (os_strstr(val, "[ENABLE-TLSv1.1]")) in parse_tls_flags()
2179 if (os_strstr(val, "[DISABLE-TLSv1.2]")) in parse_tls_flags()
2181 if (os_strstr(val, "[ENABLE-TLSv1.2]")) in parse_tls_flags()
2183 if (os_strstr(val, "[DISABLE-TLSv1.3]")) in parse_tls_flags()
2185 if (os_strstr(val, "[ENABLE-TLSv1.3]")) in parse_tls_flags()
2187 if (os_strstr(val, "[SUITEB]")) in parse_tls_flags()
2189 if (os_strstr(val, "[SUITEB-NO-ECDH]")) in parse_tls_flags()
2204 if (!wt) in add_airtime_weight()
2210 if (next) in add_airtime_weight()
2212 if (!next || hwaddr_aton(pos, wt->addr)) { in add_airtime_weight()
2220 if (!wt->weight) { in add_airtime_weight()
2241 if (!pw) in parse_sae_password()
2246 if (pos2) { in parse_sae_password()
2249 if (hwaddr_aton(pos2, pw->peer_addr) < 0) in parse_sae_password()
2255 if (pos2) { in parse_sae_password()
2256 if (!end) in parse_sae_password()
2264 if (pos2) { in parse_sae_password()
2268 if (!end) in parse_sae_password()
2272 if (epos) { in parse_sae_password()
2274 if (!tmp) in parse_sae_password()
2280 if (!tmp) in parse_sae_password()
2286 if (!pw->pk) in parse_sae_password()
2292 if (pos2) { in parse_sae_password()
2293 if (!end) in parse_sae_password()
2297 if (!pw->identifier) in parse_sae_password()
2301 if (!end) { in parse_sae_password()
2303 if (!pw->password) in parse_sae_password()
2307 if (!pw->password) in parse_sae_password()
2314 if (pw->pk && in parse_sae_password()
2348 if (!f) { in parse_sae_password_file()
2356 if (pos) in parse_sae_password_file()
2359 if (parse_sae_password(bss, buf)) { in parse_sae_password_file()
2383 if (!conf) in hostapd_dpp_controller_parse()
2386 if (!val || hostapd_parse_ip_addr(val, &conf->ipaddr)) in hostapd_dpp_controller_parse()
2390 if (!val || os_strlen(val) != 2 * SHA256_MAC_LEN || in hostapd_dpp_controller_parse()
2412 if (hlen & 1 || len > EXT_CAPA_MAX_LEN || hexstr2bin(val, tmp, len)) { in get_hex_config()
2427 if (*end || val < 0 || val > 0xffff) { in get_u16()
2443 if (os_strcmp(buf, "interface") == 0) { in hostapd_config_fill()
2446 } else if (os_strcmp(buf, "bridge") == 0) { in hostapd_config_fill()
2448 } else if (os_strcmp(buf, "bridge_hairpin") == 0) { in hostapd_config_fill()
2450 } else if (os_strcmp(buf, "vlan_bridge") == 0) { in hostapd_config_fill()
2452 } else if (os_strcmp(buf, "wds_bridge") == 0) { in hostapd_config_fill()
2454 } else if (os_strcmp(buf, "driver") == 0) { in hostapd_config_fill()
2459 if (os_strcmp(pos, wpa_drivers[j]->name) == 0) { in hostapd_config_fill()
2464 if (!driver) { in hostapd_config_fill()
2471 } else if (os_strcmp(buf, "driver_params") == 0) { in hostapd_config_fill()
2474 } else if (os_strcmp(buf, "debug") == 0) { in hostapd_config_fill()
2477 } else if (os_strcmp(buf, "logger_syslog_level") == 0) { in hostapd_config_fill()
2479 } else if (os_strcmp(buf, "logger_stdout_level") == 0) { in hostapd_config_fill()
2481 } else if (os_strcmp(buf, "logger_syslog") == 0) { in hostapd_config_fill()
2483 } else if (os_strcmp(buf, "logger_stdout") == 0) { in hostapd_config_fill()
2485 } else if (os_strcmp(buf, "dump_file") == 0) { in hostapd_config_fill()
2488 } else if (os_strcmp(buf, "ssid") == 0) { in hostapd_config_fill()
2492 if (ssid->ssid_len > SSID_MAX_LEN || ssid->ssid_len < 1) { in hostapd_config_fill()
2500 } else if (os_strcmp(buf, "ssid2") == 0) { in hostapd_config_fill()
2504 if (str == NULL || slen < 1 || slen > SSID_MAX_LEN) { in hostapd_config_fill()
2515 } else if (os_strcmp(buf, "utf8_ssid") == 0) { in hostapd_config_fill()
2517 } else if (os_strcmp(buf, "macaddr_acl") == 0) { in hostapd_config_fill()
2520 if (acl != ACCEPT_UNLESS_DENIED && in hostapd_config_fill()
2528 } else if (os_strcmp(buf, "accept_mac_file") == 0) { in hostapd_config_fill()
2529 if (hostapd_config_read_maclist(pos, &bss->accept_mac, in hostapd_config_fill()
2535 } else if (os_strcmp(buf, "deny_mac_file") == 0) { in hostapd_config_fill()
2536 if (hostapd_config_read_maclist(pos, &bss->deny_mac, in hostapd_config_fill()
2542 } else if (os_strcmp(buf, "wds_sta") == 0) { in hostapd_config_fill()
2544 } else if (os_strcmp(buf, "start_disabled") == 0) { in hostapd_config_fill()
2546 } else if (os_strcmp(buf, "ap_isolate") == 0) { in hostapd_config_fill()
2548 } else if (os_strcmp(buf, "ap_max_inactivity") == 0) { in hostapd_config_fill()
2550 } else if (os_strcmp(buf, "skip_inactivity_poll") == 0) { in hostapd_config_fill()
2552 } else if (os_strcmp(buf, "bss_max_idle") == 0) { in hostapd_config_fill()
2555 if (val < 0 || val > 2) { in hostapd_config_fill()
2561 } else if (os_strcmp(buf, "max_acceptable_idle_period") == 0) { in hostapd_config_fill()
2563 } else if (os_strcmp(buf, "no_disconnect_on_group_keyerror") == 0) { in hostapd_config_fill()
2566 if (val < 0 || val > 1) { in hostapd_config_fill()
2573 } else if (os_strcmp(buf, "config_id") == 0) { in hostapd_config_fill()
2576 } else if (os_strcmp(buf, "country_code") == 0) { in hostapd_config_fill()
2577 if (pos[0] < 'A' || pos[0] > 'Z' || in hostapd_config_fill()
2585 } else if (os_strcmp(buf, "country3") == 0) { in hostapd_config_fill()
2587 } else if (os_strcmp(buf, "ieee80211d") == 0) { in hostapd_config_fill()
2589 } else if (os_strcmp(buf, "ieee80211h") == 0) { in hostapd_config_fill()
2591 } else if (os_strcmp(buf, "ieee8021x") == 0) { in hostapd_config_fill()
2593 } else if (os_strcmp(buf, "eapol_version") == 0) { in hostapd_config_fill()
2601 if (eapol_version < 1 || eapol_version > max_ver) { in hostapd_config_fill()
2610 } else if (os_strcmp(buf, "eap_authenticator") == 0) { in hostapd_config_fill()
2613 } else if (os_strcmp(buf, "eap_server") == 0) { in hostapd_config_fill()
2615 } else if (os_strcmp(buf, "eap_user_file") == 0) { in hostapd_config_fill()
2616 if (hostapd_config_read_eap_user(pos, bss)) in hostapd_config_fill()
2618 } else if (os_strcmp(buf, "ca_cert") == 0) { in hostapd_config_fill()
2621 } else if (os_strcmp(buf, "server_cert") == 0) { in hostapd_config_fill()
2624 } else if (os_strcmp(buf, "server_cert2") == 0) { in hostapd_config_fill()
2627 } else if (os_strcmp(buf, "private_key") == 0) { in hostapd_config_fill()
2630 } else if (os_strcmp(buf, "private_key2") == 0) { in hostapd_config_fill()
2633 } else if (os_strcmp(buf, "private_key_passwd") == 0) { in hostapd_config_fill()
2636 } else if (os_strcmp(buf, "private_key_passwd2") == 0) { in hostapd_config_fill()
2639 } else if (os_strcmp(buf, "check_cert_subject") == 0) { in hostapd_config_fill()
2640 if (!pos[0]) { in hostapd_config_fill()
2647 if (!bss->check_cert_subject) in hostapd_config_fill()
2649 } else if (os_strcmp(buf, "check_crl") == 0) { in hostapd_config_fill()
2651 } else if (os_strcmp(buf, "check_crl_strict") == 0) { in hostapd_config_fill()
2653 } else if (os_strcmp(buf, "crl_reload_interval") == 0) { in hostapd_config_fill()
2655 } else if (os_strcmp(buf, "tls_session_lifetime") == 0) { in hostapd_config_fill()
2657 } else if (os_strcmp(buf, "tls_flags") == 0) { in hostapd_config_fill()
2659 } else if (os_strcmp(buf, "max_auth_rounds") == 0) { in hostapd_config_fill()
2661 } else if (os_strcmp(buf, "max_auth_rounds_short") == 0) { in hostapd_config_fill()
2663 } else if (os_strcmp(buf, "ocsp_stapling_response") == 0) { in hostapd_config_fill()
2666 } else if (os_strcmp(buf, "ocsp_stapling_response_multi") == 0) { in hostapd_config_fill()
2669 } else if (os_strcmp(buf, "dh_file") == 0) { in hostapd_config_fill()
2672 } else if (os_strcmp(buf, "openssl_ciphers") == 0) { in hostapd_config_fill()
2675 } else if (os_strcmp(buf, "openssl_ecdh_curves") == 0) { in hostapd_config_fill()
2678 } else if (os_strcmp(buf, "fragment_size") == 0) { in hostapd_config_fill()
2681 } else if (os_strcmp(buf, "pac_opaque_encr_key") == 0) { in hostapd_config_fill()
2684 if (bss->pac_opaque_encr_key == NULL) { in hostapd_config_fill()
2689 } else if (hexstr2bin(pos, bss->pac_opaque_encr_key, 16)) { in hostapd_config_fill()
2694 } else if (os_strcmp(buf, "eap_fast_a_id") == 0) { in hostapd_config_fill()
2696 if (idlen & 1) { in hostapd_config_fill()
2703 if (bss->eap_fast_a_id == NULL || in hostapd_config_fill()
2713 } else if (os_strcmp(buf, "eap_fast_a_id_info") == 0) { in hostapd_config_fill()
2716 } else if (os_strcmp(buf, "eap_fast_prov") == 0) { in hostapd_config_fill()
2718 } else if (os_strcmp(buf, "pac_key_lifetime") == 0) { in hostapd_config_fill()
2720 } else if (os_strcmp(buf, "pac_key_refresh_time") == 0) { in hostapd_config_fill()
2724 } else if (os_strcmp(buf, "eap_teap_auth") == 0) { in hostapd_config_fill()
2727 if (val < 0 || val > 2) { in hostapd_config_fill()
2734 } else if (os_strcmp(buf, "eap_teap_pac_no_inner") == 0) { in hostapd_config_fill()
2736 } else if (os_strcmp(buf, "eap_teap_separate_result") == 0) { in hostapd_config_fill()
2738 } else if (os_strcmp(buf, "eap_teap_id") == 0) { in hostapd_config_fill()
2740 } else if (os_strcmp(buf, "eap_teap_method_sequence") == 0) { in hostapd_config_fill()
2744 } else if (os_strcmp(buf, "eap_sim_db") == 0) { in hostapd_config_fill()
2747 } else if (os_strcmp(buf, "eap_sim_db_timeout") == 0) { in hostapd_config_fill()
2749 } else if (os_strcmp(buf, "eap_sim_aka_result_ind") == 0) { in hostapd_config_fill()
2751 } else if (os_strcmp(buf, "eap_sim_id") == 0) { in hostapd_config_fill()
2753 } else if (os_strcmp(buf, "imsi_privacy_key") == 0) { in hostapd_config_fill()
2756 } else if (os_strcmp(buf, "eap_sim_aka_fast_reauth_limit") == 0) { in hostapd_config_fill()
2760 } else if (os_strcmp(buf, "tnc") == 0) { in hostapd_config_fill()
2764 } else if (os_strcmp(buf, "pwd_group") == 0) { in hostapd_config_fill()
2768 } else if (os_strcmp(buf, "eap_server_erp") == 0) { in hostapd_config_fill()
2772 } else if (os_strcmp(buf, "eap_message") == 0) { in hostapd_config_fill()
2776 if (bss->eap_req_id_text == NULL) { in hostapd_config_fill()
2783 if (term) { in hostapd_config_fill()
2790 } else if (os_strcmp(buf, "erp_send_reauth_start") == 0) { in hostapd_config_fill()
2792 } else if (os_strcmp(buf, "erp_domain") == 0) { in hostapd_config_fill()
2796 } else if (os_strcmp(buf, "wep_key_len_broadcast") == 0) { in hostapd_config_fill()
2799 if (val < 0 || val > 13) { in hostapd_config_fill()
2806 } else if (os_strcmp(buf, "wep_key_len_unicast") == 0) { in hostapd_config_fill()
2809 if (val < 0 || val > 13) { in hostapd_config_fill()
2816 } else if (os_strcmp(buf, "wep_rekey_period") == 0) { in hostapd_config_fill()
2818 if (bss->wep_rekeying_period < 0) { in hostapd_config_fill()
2824 } else if (os_strcmp(buf, "eap_reauth_period") == 0) { in hostapd_config_fill()
2826 if (bss->eap_reauth_period < 0) { in hostapd_config_fill()
2831 } else if (os_strcmp(buf, "eapol_key_index_workaround") == 0) { in hostapd_config_fill()
2834 } else if (os_strcmp(buf, "iapp_interface") == 0) { in hostapd_config_fill()
2837 } else if (os_strcmp(buf, "own_ip_addr") == 0) { in hostapd_config_fill()
2838 if (hostapd_parse_ip_addr(pos, &bss->own_ip_addr)) { in hostapd_config_fill()
2844 } else if (os_strcmp(buf, "nas_identifier") == 0) { in hostapd_config_fill()
2848 } else if (os_strcmp(buf, "radius_client_addr") == 0) { in hostapd_config_fill()
2849 if (hostapd_parse_ip_addr(pos, &bss->radius->client_addr)) { in hostapd_config_fill()
2856 } else if (os_strcmp(buf, "radius_client_dev") == 0) { in hostapd_config_fill()
2859 } else if (os_strcmp(buf, "auth_server_addr") == 0) { in hostapd_config_fill()
2860 if (hostapd_config_read_radius_addr( in hostapd_config_fill()
2869 } else if (bss->radius->auth_server && in hostapd_config_fill()
2871 if (hostapd_parse_ip_addr(pos, in hostapd_config_fill()
2878 } else if (bss->radius->auth_server && in hostapd_config_fill()
2881 } else if (bss->radius->auth_server && in hostapd_config_fill()
2884 if (len == 0) { in hostapd_config_fill()
2893 } else if (bss->radius->auth_server && in hostapd_config_fill()
2895 if (os_strcmp(pos, "UDP") == 0) { in hostapd_config_fill()
2898 } else if (os_strcmp(pos, "TLS") == 0) { in hostapd_config_fill()
2907 } else if (bss->radius->auth_server && in hostapd_config_fill()
2911 } else if (bss->radius->auth_server && in hostapd_config_fill()
2915 } else if (bss->radius->auth_server && in hostapd_config_fill()
2919 } else if (bss->radius->auth_server && in hostapd_config_fill()
2924 } else if (os_strcmp(buf, "acct_server_addr") == 0) { in hostapd_config_fill()
2925 if (hostapd_config_read_radius_addr( in hostapd_config_fill()
2934 } else if (bss->radius->acct_server && in hostapd_config_fill()
2936 if (hostapd_parse_ip_addr(pos, in hostapd_config_fill()
2943 } else if (bss->radius->acct_server && in hostapd_config_fill()
2946 } else if (bss->radius->acct_server && in hostapd_config_fill()
2949 if (len == 0) { in hostapd_config_fill()
2958 } else if (bss->radius->acct_server && in hostapd_config_fill()
2960 if (os_strcmp(pos, "UDP") == 0) { in hostapd_config_fill()
2963 } else if (os_strcmp(pos, "TLS") == 0) { in hostapd_config_fill()
2972 } else if (bss->radius->acct_server && in hostapd_config_fill()
2976 } else if (bss->radius->acct_server && in hostapd_config_fill()
2980 } else if (bss->radius->acct_server && in hostapd_config_fill()
2984 } else if (bss->radius->acct_server && in hostapd_config_fill()
2989 } else if (os_strcmp(buf, "radius_retry_primary_interval") == 0) { in hostapd_config_fill()
2991 } else if (os_strcmp(buf, in hostapd_config_fill()
2994 } else if (os_strcmp(buf, "radius_acct_interim_interval") == 0) { in hostapd_config_fill()
2996 } else if (os_strcmp(buf, "radius_request_cui") == 0) { in hostapd_config_fill()
2998 } else if (os_strcmp(buf, "radius_auth_req_attr") == 0) { in hostapd_config_fill()
3001 if (attr == NULL) { in hostapd_config_fill()
3006 } else if (bss->radius_auth_req_attr == NULL) { in hostapd_config_fill()
3014 } else if (os_strcmp(buf, "radius_acct_req_attr") == 0) { in hostapd_config_fill()
3017 if (attr == NULL) { in hostapd_config_fill()
3022 } else if (bss->radius_acct_req_attr == NULL) { in hostapd_config_fill()
3030 } else if (os_strcmp(buf, "radius_req_attr_sqlite") == 0) { in hostapd_config_fill()
3033 } else if (os_strcmp(buf, "radius_das_port") == 0) { in hostapd_config_fill()
3035 } else if (os_strcmp(buf, "radius_das_client") == 0) { in hostapd_config_fill()
3036 if (hostapd_parse_das_client(bss, pos) < 0) { in hostapd_config_fill()
3041 } else if (os_strcmp(buf, "radius_das_time_window") == 0) { in hostapd_config_fill()
3043 } else if (os_strcmp(buf, "radius_das_require_event_timestamp") == 0) { in hostapd_config_fill()
3045 } else if (os_strcmp(buf, "radius_das_require_message_authenticator") == in hostapd_config_fill()
3049 } else if (os_strcmp(buf, "auth_algs") == 0) { in hostapd_config_fill()
3051 if (bss->auth_algs == 0) { in hostapd_config_fill()
3056 } else if (os_strcmp(buf, "max_num_sta") == 0) { in hostapd_config_fill()
3058 if (bss->max_num_sta < 0 || in hostapd_config_fill()
3064 } else if (os_strcmp(buf, "wpa") == 0) { in hostapd_config_fill()
3066 } else if (os_strcmp(buf, "extended_key_id") == 0) { in hostapd_config_fill()
3069 if (val < 0 || val > 2) { in hostapd_config_fill()
3076 } else if (os_strcmp(buf, "wpa_group_rekey") == 0) { in hostapd_config_fill()
3079 } else if (os_strcmp(buf, "wpa_strict_rekey") == 0) { in hostapd_config_fill()
3081 } else if (os_strcmp(buf, "wpa_gmk_rekey") == 0) { in hostapd_config_fill()
3083 } else if (os_strcmp(buf, "wpa_ptk_rekey") == 0) { in hostapd_config_fill()
3085 } else if (os_strcmp(buf, "wpa_deny_ptk0_rekey") == 0) { in hostapd_config_fill()
3087 if (bss->wpa_deny_ptk0_rekey < 0 || in hostapd_config_fill()
3094 } else if (os_strcmp(buf, "wpa_group_update_count") == 0) { in hostapd_config_fill()
3098 if (*endp || val < 1 || val > (u32) -1) { in hostapd_config_fill()
3105 } else if (os_strcmp(buf, "wpa_pairwise_update_count") == 0) { in hostapd_config_fill()
3109 if (*endp || val < 1 || val > (u32) -1) { in hostapd_config_fill()
3116 } else if (os_strcmp(buf, "wpa_disable_eapol_key_retries") == 0) { in hostapd_config_fill()
3118 } else if (os_strcmp(buf, "wpa_passphrase") == 0) { in hostapd_config_fill()
3120 if (len < 8 || len > 63) { in hostapd_config_fill()
3127 if (bss->ssid.wpa_passphrase) { in hostapd_config_fill()
3131 } else if (os_strcmp(buf, "wpa_psk") == 0) { in hostapd_config_fill()
3134 if (bss->ssid.wpa_psk == NULL) in hostapd_config_fill()
3136 if (hexstr2bin(pos, bss->ssid.wpa_psk->psk, PMK_LEN) || in hostapd_config_fill()
3147 } else if (os_strcmp(buf, "wpa_psk_file") == 0) { in hostapd_config_fill()
3150 if (!bss->ssid.wpa_psk_file) { in hostapd_config_fill()
3155 } else if (os_strcmp(buf, "wpa_key_mgmt") == 0) { in hostapd_config_fill()
3157 if (bss->wpa_key_mgmt == -1) in hostapd_config_fill()
3159 } else if (os_strcmp(buf, "wpa_psk_radius") == 0) { in hostapd_config_fill()
3161 if (bss->wpa_psk_radius != PSK_RADIUS_IGNORED && in hostapd_config_fill()
3170 } else if (os_strcmp(buf, "wpa_pairwise") == 0) { in hostapd_config_fill()
3172 if (bss->wpa_pairwise == -1 || bss->wpa_pairwise == 0) in hostapd_config_fill()
3174 if (bss->wpa_pairwise & in hostapd_config_fill()
3180 } else if (os_strcmp(buf, "rsn_pairwise") == 0) { in hostapd_config_fill()
3182 if (bss->rsn_pairwise == -1 || bss->rsn_pairwise == 0) in hostapd_config_fill()
3184 if (bss->rsn_pairwise & in hostapd_config_fill()
3190 } else if (os_strcmp(buf, "group_cipher") == 0) { in hostapd_config_fill()
3192 if (bss->group_cipher == -1 || bss->group_cipher == 0) in hostapd_config_fill()
3194 if (bss->group_cipher != WPA_CIPHER_TKIP && in hostapd_config_fill()
3205 } else if (os_strcmp(buf, "rsn_preauth") == 0) { in hostapd_config_fill()
3207 } else if (os_strcmp(buf, "rsn_preauth_interfaces") == 0) { in hostapd_config_fill()
3211 } else if (os_strcmp(buf, "peerkey") == 0) { in hostapd_config_fill()
3215 } else if (os_strcmp(buf, "mobility_domain") == 0) { in hostapd_config_fill()
3216 if (os_strlen(pos) != 2 * MOBILITY_DOMAIN_ID_LEN || in hostapd_config_fill()
3224 } else if (os_strcmp(buf, "r1_key_holder") == 0) { in hostapd_config_fill()
3225 if (os_strlen(pos) != 2 * FT_R1KH_ID_LEN || in hostapd_config_fill()
3232 } else if (os_strcmp(buf, "r0_key_lifetime") == 0) { in hostapd_config_fill()
3235 } else if (os_strcmp(buf, "ft_r0_key_lifetime") == 0) { in hostapd_config_fill()
3237 } else if (os_strcmp(buf, "r1_max_key_lifetime") == 0) { in hostapd_config_fill()
3239 } else if (os_strcmp(buf, "reassociation_deadline") == 0) { in hostapd_config_fill()
3241 } else if (os_strcmp(buf, "rkh_pos_timeout") == 0) { in hostapd_config_fill()
3243 } else if (os_strcmp(buf, "rkh_neg_timeout") == 0) { in hostapd_config_fill()
3245 } else if (os_strcmp(buf, "rkh_pull_timeout") == 0) { in hostapd_config_fill()
3247 } else if (os_strcmp(buf, "rkh_pull_retries") == 0) { in hostapd_config_fill()
3249 } else if (os_strcmp(buf, "r0kh") == 0) { in hostapd_config_fill()
3250 if (add_r0kh(bss, pos) < 0) { in hostapd_config_fill()
3255 } else if (os_strcmp(buf, "r1kh") == 0) { in hostapd_config_fill()
3256 if (add_r1kh(bss, pos) < 0) { in hostapd_config_fill()
3261 } else if (os_strcmp(buf, "rxkh_file") == 0) { in hostapd_config_fill()
3264 if (!bss->rxkh_file) { in hostapd_config_fill()
3269 if (hostapd_config_read_rxkh_file(bss, pos)) { in hostapd_config_fill()
3276 } else if (os_strcmp(buf, "pmk_r1_push") == 0) { in hostapd_config_fill()
3278 } else if (os_strcmp(buf, "ft_over_ds") == 0) { in hostapd_config_fill()
3280 } else if (os_strcmp(buf, "ft_psk_generate_local") == 0) { in hostapd_config_fill()
3284 } else if (os_strcmp(buf, "ctrl_interface") == 0) { in hostapd_config_fill()
3287 } else if (os_strcmp(buf, "ctrl_interface_group") == 0) { in hostapd_config_fill()
3294 if (grp) { in hostapd_config_fill()
3304 if (*group == '\0' || *endp != '\0') { in hostapd_config_fill()
3315 } else if (os_strcmp(buf, "radius_server_clients") == 0) { in hostapd_config_fill()
3318 } else if (os_strcmp(buf, "radius_server_auth_port") == 0) { in hostapd_config_fill()
3320 } else if (os_strcmp(buf, "radius_server_acct_port") == 0) { in hostapd_config_fill()
3322 } else if (os_strcmp(buf, "radius_server_ipv6") == 0) { in hostapd_config_fill()
3325 } else if (os_strcmp(buf, "use_pae_group_addr") == 0) { in hostapd_config_fill()
3327 } else if (os_strcmp(buf, "hw_mode") == 0) { in hostapd_config_fill()
3328 if (os_strcmp(pos, "a") == 0) in hostapd_config_fill()
3330 else if (os_strcmp(pos, "b") == 0) in hostapd_config_fill()
3332 else if (os_strcmp(pos, "g") == 0) in hostapd_config_fill()
3334 else if (os_strcmp(pos, "ad") == 0) in hostapd_config_fill()
3336 else if (os_strcmp(pos, "any") == 0) in hostapd_config_fill()
3344 } else if (os_strcmp(buf, "wps_rf_bands") == 0) { in hostapd_config_fill()
3345 if (os_strcmp(pos, "ad") == 0) in hostapd_config_fill()
3347 else if (os_strcmp(pos, "a") == 0) in hostapd_config_fill()
3349 else if (os_strcmp(pos, "g") == 0 || in hostapd_config_fill()
3352 else if (os_strcmp(pos, "ag") == 0 || in hostapd_config_fill()
3361 } else if (os_strcmp(buf, "acs_exclude_dfs") == 0) { in hostapd_config_fill()
3363 } else if (os_strcmp(buf, "op_class") == 0) { in hostapd_config_fill()
3365 } else if (os_strcmp(buf, "channel") == 0) { in hostapd_config_fill()
3366 if (os_strcmp(pos, "acs_survey") == 0) { in hostapd_config_fill()
3379 } else if (os_strcmp(buf, "edmg_channel") == 0) { in hostapd_config_fill()
3381 } else if (os_strcmp(buf, "enable_edmg") == 0) { in hostapd_config_fill()
3383 } else if (os_strcmp(buf, "chanlist") == 0) { in hostapd_config_fill()
3384 if (hostapd_parse_chanlist(conf, pos)) { in hostapd_config_fill()
3389 } else if (os_strcmp(buf, "freqlist") == 0) { in hostapd_config_fill()
3390 if (freq_range_list_parse(&conf->acs_freq_list, pos)) { in hostapd_config_fill()
3396 } else if (os_strcmp(buf, "acs_exclude_6ghz_non_psc") == 0) { in hostapd_config_fill()
3398 } else if (os_strcmp(buf, "enable_background_radar") == 0) { in hostapd_config_fill()
3400 } else if (os_strcmp(buf, "min_tx_power") == 0) { in hostapd_config_fill()
3403 if (val < 0 || val > 255) { in hostapd_config_fill()
3410 } else if (os_strcmp(buf, "beacon_int") == 0) { in hostapd_config_fill()
3417 if (val < 10 || val > 65535) { in hostapd_config_fill()
3425 } else if (os_strcmp(buf, "acs_num_scans") == 0) { in hostapd_config_fill()
3427 if (val <= 0 || val > 100) { in hostapd_config_fill()
3433 } else if (os_strcmp(buf, "acs_chan_bias") == 0) { in hostapd_config_fill()
3434 if (hostapd_config_parse_acs_chan_bias(conf, pos)) { in hostapd_config_fill()
3440 } else if (os_strcmp(buf, "dtim_period") == 0) { in hostapd_config_fill()
3443 if (val < 1 || val > 255) { in hostapd_config_fill()
3449 } else if (os_strcmp(buf, "bss_load_update_period") == 0) { in hostapd_config_fill()
3452 if (val < 0 || val > 100) { in hostapd_config_fill()
3459 } else if (os_strcmp(buf, "chan_util_avg_period") == 0) { in hostapd_config_fill()
3462 if (val < 0) { in hostapd_config_fill()
3469 } else if (os_strcmp(buf, "rts_threshold") == 0) { in hostapd_config_fill()
3471 if (conf->rts_threshold < -1 || conf->rts_threshold > 65535) { in hostapd_config_fill()
3477 } else if (os_strcmp(buf, "fragm_threshold") == 0) { in hostapd_config_fill()
3479 if (conf->fragm_threshold == -1) { in hostapd_config_fill()
3481 } else if (conf->fragm_threshold < 256 || in hostapd_config_fill()
3488 } else if (os_strcmp(buf, "send_probe_response") == 0) { in hostapd_config_fill()
3490 if (val != 0 && val != 1) { in hostapd_config_fill()
3496 } else if (os_strcmp(buf, "supported_rates") == 0) { in hostapd_config_fill()
3497 if (hostapd_parse_intlist(&conf->supported_rates, pos)) { in hostapd_config_fill()
3502 } else if (os_strcmp(buf, "basic_rates") == 0) { in hostapd_config_fill()
3503 if (hostapd_parse_intlist(&conf->basic_rates, pos)) { in hostapd_config_fill()
3508 } else if (os_strcmp(buf, "beacon_rate") == 0) { in hostapd_config_fill()
3511 if (os_strncmp(pos, "ht:", 3) == 0) { in hostapd_config_fill()
3513 if (val < 0 || val > 31) { in hostapd_config_fill()
3521 } else if (os_strncmp(pos, "vht:", 4) == 0) { in hostapd_config_fill()
3523 if (val < 0 || val > 9) { in hostapd_config_fill()
3531 } else if (os_strncmp(pos, "he:", 3) == 0) { in hostapd_config_fill()
3533 if (val < 0 || val > 11) { in hostapd_config_fill()
3543 if (val < 10 || val > 10000) { in hostapd_config_fill()
3552 } else if (os_strcmp(buf, "preamble") == 0) { in hostapd_config_fill()
3553 if (atoi(pos)) in hostapd_config_fill()
3557 } else if (os_strcmp(buf, "ignore_broadcast_ssid") == 0) { in hostapd_config_fill()
3559 } else if (os_strcmp(buf, "no_probe_resp_if_max_sta") == 0) { in hostapd_config_fill()
3562 } else if (os_strcmp(buf, "wep_default_key") == 0) { in hostapd_config_fill()
3564 if (bss->ssid.wep.idx > 3) { in hostapd_config_fill()
3570 } else if (os_strcmp(buf, "wep_key0") == 0 || in hostapd_config_fill()
3574 if (hostapd_config_read_wep(&bss->ssid.wep, in hostapd_config_fill()
3582 } else if (os_strcmp(buf, "dynamic_vlan") == 0) { in hostapd_config_fill()
3584 } else if (os_strcmp(buf, "per_sta_vif") == 0) { in hostapd_config_fill()
3586 } else if (os_strcmp(buf, "vlan_file") == 0) { in hostapd_config_fill()
3587 if (hostapd_config_read_vlan_file(bss, pos)) { in hostapd_config_fill()
3592 } else if (os_strcmp(buf, "vlan_naming") == 0) { in hostapd_config_fill()
3594 if (bss->ssid.vlan_naming >= DYNAMIC_VLAN_NAMING_END || in hostapd_config_fill()
3602 } else if (os_strcmp(buf, "vlan_tagged_interface") == 0) { in hostapd_config_fill()
3607 } else if (os_strcmp(buf, "ap_table_max_size") == 0) { in hostapd_config_fill()
3609 } else if (os_strcmp(buf, "ap_table_expiration_time") == 0) { in hostapd_config_fill()
3611 } else if (os_strncmp(buf, "tx_queue_", 9) == 0) { in hostapd_config_fill()
3612 if (hostapd_config_tx_queue(conf->tx_queue, buf, pos)) { in hostapd_config_fill()
3617 } else if (os_strcmp(buf, "wme_enabled") == 0 || in hostapd_config_fill()
3620 } else if (os_strcmp(buf, "uapsd_advertisement_enabled") == 0) { in hostapd_config_fill()
3622 } else if (os_strncmp(buf, "wme_ac_", 7) == 0 || in hostapd_config_fill()
3624 if (hostapd_config_wmm_ac(conf->wmm_ac_params, buf, pos)) { in hostapd_config_fill()
3629 } else if (os_strcmp(buf, "bss") == 0) { in hostapd_config_fill()
3630 if (hostapd_config_bss(conf, pos)) { in hostapd_config_fill()
3635 } else if (os_strcmp(buf, "bssid") == 0) { in hostapd_config_fill()
3636 if (hwaddr_aton(pos, bss->bssid)) { in hostapd_config_fill()
3641 } else if (os_strcmp(buf, "use_driver_iface_addr") == 0) { in hostapd_config_fill()
3643 } else if (os_strcmp(buf, "ieee80211w") == 0) { in hostapd_config_fill()
3645 } else if (os_strcmp(buf, "group_mgmt_cipher") == 0) { in hostapd_config_fill()
3646 if (os_strcmp(pos, "AES-128-CMAC") == 0) { in hostapd_config_fill()
3648 } else if (os_strcmp(pos, "BIP-GMAC-128") == 0) { in hostapd_config_fill()
3650 } else if (os_strcmp(pos, "BIP-GMAC-256") == 0) { in hostapd_config_fill()
3652 } else if (os_strcmp(pos, "BIP-CMAC-256") == 0) { in hostapd_config_fill()
3659 } else if (os_strcmp(buf, "beacon_prot") == 0) { in hostapd_config_fill()
3661 } else if (os_strcmp(buf, "assoc_sa_query_max_timeout") == 0) { in hostapd_config_fill()
3663 if (bss->assoc_sa_query_max_timeout == 0) { in hostapd_config_fill()
3668 } else if (os_strcmp(buf, "assoc_sa_query_retry_timeout") == 0) { in hostapd_config_fill()
3670 if (bss->assoc_sa_query_retry_timeout == 0) { in hostapd_config_fill()
3676 } else if (os_strcmp(buf, "ocv") == 0) { in hostapd_config_fill()
3678 if (bss->ocv && !bss->ieee80211w) in hostapd_config_fill()
3681 } else if (os_strcmp(buf, "ieee80211n") == 0) { in hostapd_config_fill()
3683 } else if (os_strcmp(buf, "ht_capab") == 0) { in hostapd_config_fill()
3684 if (hostapd_config_ht_capab(conf, pos) < 0) { in hostapd_config_fill()
3689 } else if (os_strcmp(buf, "require_ht") == 0) { in hostapd_config_fill()
3691 } else if (os_strcmp(buf, "ht_vht_twt_responder") == 0) { in hostapd_config_fill()
3693 } else if (os_strcmp(buf, "obss_interval") == 0) { in hostapd_config_fill()
3696 } else if (os_strcmp(buf, "ieee80211ac") == 0) { in hostapd_config_fill()
3698 } else if (os_strcmp(buf, "vht_capab") == 0) { in hostapd_config_fill()
3699 if (hostapd_config_vht_capab(conf, pos) < 0) { in hostapd_config_fill()
3704 } else if (os_strcmp(buf, "require_vht") == 0) { in hostapd_config_fill()
3706 } else if (os_strcmp(buf, "vht_oper_chwidth") == 0) { in hostapd_config_fill()
3708 } else if (os_strcmp(buf, "vht_oper_centr_freq_seg0_idx") == 0) { in hostapd_config_fill()
3710 } else if (os_strcmp(buf, "vht_oper_centr_freq_seg1_idx") == 0) { in hostapd_config_fill()
3712 } else if (os_strcmp(buf, "vendor_vht") == 0) { in hostapd_config_fill()
3714 } else if (os_strcmp(buf, "use_sta_nsts") == 0) { in hostapd_config_fill()
3718 } else if (os_strcmp(buf, "ieee80211ax") == 0) { in hostapd_config_fill()
3720 } else if (os_strcmp(buf, "require_he") == 0) { in hostapd_config_fill()
3722 } else if (os_strcmp(buf, "he_su_beamformer") == 0) { in hostapd_config_fill()
3724 } else if (os_strcmp(buf, "he_su_beamformee") == 0) { in hostapd_config_fill()
3726 } else if (os_strcmp(buf, "he_mu_beamformer") == 0) { in hostapd_config_fill()
3728 } else if (os_strcmp(buf, "he_bss_color") == 0) { in hostapd_config_fill()
3731 } else if (os_strcmp(buf, "he_bss_color_partial") == 0) { in hostapd_config_fill()
3733 } else if (os_strcmp(buf, "he_default_pe_duration") == 0) { in hostapd_config_fill()
3735 } else if (os_strcmp(buf, "he_twt_required") == 0) { in hostapd_config_fill()
3737 } else if (os_strcmp(buf, "he_twt_responder") == 0) { in hostapd_config_fill()
3739 } else if (os_strcmp(buf, "he_rts_threshold") == 0) { in hostapd_config_fill()
3741 } else if (os_strcmp(buf, "he_er_su_disable") == 0) { in hostapd_config_fill()
3743 } else if (os_strcmp(buf, "he_basic_mcs_nss_set") == 0) { in hostapd_config_fill()
3745 } else if (os_strcmp(buf, "he_mu_edca_qos_info_param_count") == 0) { in hostapd_config_fill()
3748 } else if (os_strcmp(buf, "he_mu_edca_qos_info_q_ack") == 0) { in hostapd_config_fill()
3751 } else if (os_strcmp(buf, "he_mu_edca_qos_info_queue_request") == 0) { in hostapd_config_fill()
3754 } else if (os_strcmp(buf, "he_mu_edca_qos_info_txop_request") == 0) { in hostapd_config_fill()
3757 } else if (os_strcmp(buf, "he_mu_edca_ac_be_aifsn") == 0) { in hostapd_config_fill()
3760 } else if (os_strcmp(buf, "he_mu_edca_ac_be_acm") == 0) { in hostapd_config_fill()
3763 } else if (os_strcmp(buf, "he_mu_edca_ac_be_aci") == 0) { in hostapd_config_fill()
3766 } else if (os_strcmp(buf, "he_mu_edca_ac_be_ecwmin") == 0) { in hostapd_config_fill()
3769 } else if (os_strcmp(buf, "he_mu_edca_ac_be_ecwmax") == 0) { in hostapd_config_fill()
3772 } else if (os_strcmp(buf, "he_mu_edca_ac_be_timer") == 0) { in hostapd_config_fill()
3775 } else if (os_strcmp(buf, "he_mu_edca_ac_bk_aifsn") == 0) { in hostapd_config_fill()
3778 } else if (os_strcmp(buf, "he_mu_edca_ac_bk_acm") == 0) { in hostapd_config_fill()
3781 } else if (os_strcmp(buf, "he_mu_edca_ac_bk_aci") == 0) { in hostapd_config_fill()
3784 } else if (os_strcmp(buf, "he_mu_edca_ac_bk_ecwmin") == 0) { in hostapd_config_fill()
3787 } else if (os_strcmp(buf, "he_mu_edca_ac_bk_ecwmax") == 0) { in hostapd_config_fill()
3790 } else if (os_strcmp(buf, "he_mu_edca_ac_bk_timer") == 0) { in hostapd_config_fill()
3793 } else if (os_strcmp(buf, "he_mu_edca_ac_vi_aifsn") == 0) { in hostapd_config_fill()
3796 } else if (os_strcmp(buf, "he_mu_edca_ac_vi_acm") == 0) { in hostapd_config_fill()
3799 } else if (os_strcmp(buf, "he_mu_edca_ac_vi_aci") == 0) { in hostapd_config_fill()
3802 } else if (os_strcmp(buf, "he_mu_edca_ac_vi_ecwmin") == 0) { in hostapd_config_fill()
3805 } else if (os_strcmp(buf, "he_mu_edca_ac_vi_ecwmax") == 0) { in hostapd_config_fill()
3808 } else if (os_strcmp(buf, "he_mu_edca_ac_vi_timer") == 0) { in hostapd_config_fill()
3811 } else if (os_strcmp(buf, "he_mu_edca_ac_vo_aifsn") == 0) { in hostapd_config_fill()
3814 } else if (os_strcmp(buf, "he_mu_edca_ac_vo_acm") == 0) { in hostapd_config_fill()
3817 } else if (os_strcmp(buf, "he_mu_edca_ac_vo_aci") == 0) { in hostapd_config_fill()
3820 } else if (os_strcmp(buf, "he_mu_edca_ac_vo_ecwmin") == 0) { in hostapd_config_fill()
3823 } else if (os_strcmp(buf, "he_mu_edca_ac_vo_ecwmax") == 0) { in hostapd_config_fill()
3826 } else if (os_strcmp(buf, "he_mu_edca_ac_vo_timer") == 0) { in hostapd_config_fill()
3829 } else if (os_strcmp(buf, "he_spr_sr_control") == 0) { in hostapd_config_fill()
3831 } else if (os_strcmp(buf, "he_spr_non_srg_obss_pd_max_offset") == 0) { in hostapd_config_fill()
3833 } else if (os_strcmp(buf, "he_spr_srg_obss_pd_min_offset") == 0) { in hostapd_config_fill()
3835 } else if (os_strcmp(buf, "he_spr_srg_obss_pd_max_offset") == 0) { in hostapd_config_fill()
3837 } else if (os_strcmp(buf, "he_spr_srg_bss_colors") == 0) { in hostapd_config_fill()
3838 if (hostapd_parse_he_srg_bitmap( in hostapd_config_fill()
3845 } else if (os_strcmp(buf, "he_spr_srg_partial_bssid") == 0) { in hostapd_config_fill()
3846 if (hostapd_parse_he_srg_bitmap( in hostapd_config_fill()
3853 } else if (os_strcmp(buf, "he_6ghz_reg_pwr_type") == 0) { in hostapd_config_fill()
3855 if (conf->he_6ghz_reg_pwr_type > HE_REG_INFO_6GHZ_AP_TYPE_MAX) { in hostapd_config_fill()
3861 } else if (os_strcmp(buf, "reg_def_cli_eirp_psd") == 0) { in hostapd_config_fill()
3863 } else if (os_strcmp(buf, "reg_sub_cli_eirp_psd") == 0) { in hostapd_config_fill()
3865 } else if (os_strcmp(buf, "reg_def_cli_eirp") == 0) { in hostapd_config_fill()
3867 } else if (os_strcmp(buf, "he_oper_chwidth") == 0) { in hostapd_config_fill()
3869 } else if (os_strcmp(buf, "he_oper_centr_freq_seg0_idx") == 0) { in hostapd_config_fill()
3871 } else if (os_strcmp(buf, "he_oper_centr_freq_seg1_idx") == 0) { in hostapd_config_fill()
3873 } else if (os_strcmp(buf, "he_6ghz_max_mpdu") == 0) { in hostapd_config_fill()
3875 } else if (os_strcmp(buf, "he_6ghz_max_ampdu_len_exp") == 0) { in hostapd_config_fill()
3877 } else if (os_strcmp(buf, "he_6ghz_rx_ant_pat") == 0) { in hostapd_config_fill()
3879 } else if (os_strcmp(buf, "he_6ghz_tx_ant_pat") == 0) { in hostapd_config_fill()
3881 } else if (os_strcmp(buf, "unsol_bcast_probe_resp_interval") == 0) { in hostapd_config_fill()
3884 if (val < 0 || val > 20) { in hostapd_config_fill()
3891 } else if (os_strcmp(buf, "mbssid") == 0) { in hostapd_config_fill()
3893 if (mbssid < 0 || mbssid > ENHANCED_MBSSID_ENABLED) { in hostapd_config_fill()
3901 } else if (os_strcmp(buf, "max_listen_interval") == 0) { in hostapd_config_fill()
3903 } else if (os_strcmp(buf, "disable_pmksa_caching") == 0) { in hostapd_config_fill()
3905 } else if (os_strcmp(buf, "okc") == 0) { in hostapd_config_fill()
3908 } else if (os_strcmp(buf, "wps_state") == 0) { in hostapd_config_fill()
3910 if (bss->wps_state < 0 || bss->wps_state > 2) { in hostapd_config_fill()
3915 } else if (os_strcmp(buf, "wps_independent") == 0) { in hostapd_config_fill()
3917 } else if (os_strcmp(buf, "ap_setup_locked") == 0) { in hostapd_config_fill()
3919 } else if (os_strcmp(buf, "uuid") == 0) { in hostapd_config_fill()
3920 if (uuid_str2bin(pos, bss->uuid)) { in hostapd_config_fill()
3924 } else if (os_strcmp(buf, "wps_pin_requests") == 0) { in hostapd_config_fill()
3927 } else if (os_strcmp(buf, "device_name") == 0) { in hostapd_config_fill()
3928 if (os_strlen(pos) > WPS_DEV_NAME_MAX_LEN) { in hostapd_config_fill()
3935 } else if (os_strcmp(buf, "manufacturer") == 0) { in hostapd_config_fill()
3936 if (os_strlen(pos) > 64) { in hostapd_config_fill()
3943 } else if (os_strcmp(buf, "model_name") == 0) { in hostapd_config_fill()
3944 if (os_strlen(pos) > 32) { in hostapd_config_fill()
3951 } else if (os_strcmp(buf, "model_number") == 0) { in hostapd_config_fill()
3952 if (os_strlen(pos) > 32) { in hostapd_config_fill()
3959 } else if (os_strcmp(buf, "serial_number") == 0) { in hostapd_config_fill()
3960 if (os_strlen(pos) > 32) { in hostapd_config_fill()
3967 } else if (os_strcmp(buf, "device_type") == 0) { in hostapd_config_fill()
3968 if (wps_dev_type_str2bin(pos, bss->device_type)) in hostapd_config_fill()
3970 } else if (os_strcmp(buf, "config_methods") == 0) { in hostapd_config_fill()
3973 } else if (os_strcmp(buf, "os_version") == 0) { in hostapd_config_fill()
3974 if (hexstr2bin(pos, bss->os_version, 4)) { in hostapd_config_fill()
3979 } else if (os_strcmp(buf, "ap_pin") == 0) { in hostapd_config_fill()
3981 if (*pos == '\0') in hostapd_config_fill()
3985 } else if (os_strcmp(buf, "skip_cred_build") == 0) { in hostapd_config_fill()
3987 } else if (os_strcmp(buf, "extra_cred") == 0) { in hostapd_config_fill()
3990 if (bss->extra_cred == NULL) { in hostapd_config_fill()
3995 } else if (os_strcmp(buf, "wps_cred_processing") == 0) { in hostapd_config_fill()
3997 } else if (os_strcmp(buf, "wps_cred_add_sae") == 0) { in hostapd_config_fill()
3999 } else if (os_strcmp(buf, "ap_settings") == 0) { in hostapd_config_fill()
4003 if (bss->ap_settings == NULL) { in hostapd_config_fill()
4008 } else if (os_strcmp(buf, "multi_ap_backhaul_ssid") == 0) { in hostapd_config_fill()
4012 if (!str || slen < 1 || slen > SSID_MAX_LEN) { in hostapd_config_fill()
4022 } else if (os_strcmp(buf, "multi_ap_backhaul_wpa_passphrase") == 0) { in hostapd_config_fill()
4025 if (len < 8 || len > 63) { in hostapd_config_fill()
4033 if (bss->multi_ap_backhaul_ssid.wpa_passphrase) { in hostapd_config_fill()
4038 } else if (os_strcmp(buf, "multi_ap_backhaul_wpa_psk") == 0) { in hostapd_config_fill()
4043 if (!bss->multi_ap_backhaul_ssid.wpa_psk) in hostapd_config_fill()
4045 if (hexstr2bin(pos, bss->multi_ap_backhaul_ssid.wpa_psk->psk, in hostapd_config_fill()
4058 } else if (os_strcmp(buf, "upnp_iface") == 0) { in hostapd_config_fill()
4061 } else if (os_strcmp(buf, "friendly_name") == 0) { in hostapd_config_fill()
4064 } else if (os_strcmp(buf, "manufacturer_url") == 0) { in hostapd_config_fill()
4067 } else if (os_strcmp(buf, "model_description") == 0) { in hostapd_config_fill()
4070 } else if (os_strcmp(buf, "model_url") == 0) { in hostapd_config_fill()
4073 } else if (os_strcmp(buf, "upc") == 0) { in hostapd_config_fill()
4076 } else if (os_strcmp(buf, "pbc_in_m1") == 0) { in hostapd_config_fill()
4078 } else if (os_strcmp(buf, "server_id") == 0) { in hostapd_config_fill()
4081 } else if (os_strcmp(buf, "wps_application_ext") == 0) { in hostapd_config_fill()
4085 } else if (os_strcmp(buf, "wps_nfc_dev_pw_id") == 0) { in hostapd_config_fill()
4087 if (bss->wps_nfc_dev_pw_id < 0x10 || in hostapd_config_fill()
4094 } else if (os_strcmp(buf, "wps_nfc_dh_pubkey") == 0) { in hostapd_config_fill()
4098 } else if (os_strcmp(buf, "wps_nfc_dh_privkey") == 0) { in hostapd_config_fill()
4102 } else if (os_strcmp(buf, "wps_nfc_dev_pw") == 0) { in hostapd_config_fill()
4109 } else if (os_strcmp(buf, "manage_p2p") == 0) { in hostapd_config_fill()
4110 if (atoi(pos)) in hostapd_config_fill()
4114 } else if (os_strcmp(buf, "allow_cross_connection") == 0) { in hostapd_config_fill()
4115 if (atoi(pos)) in hostapd_config_fill()
4120 } else if (os_strcmp(buf, "disassoc_low_ack") == 0) { in hostapd_config_fill()
4122 } else if (os_strcmp(buf, "tdls_prohibit") == 0) { in hostapd_config_fill()
4123 if (atoi(pos)) in hostapd_config_fill()
4127 } else if (os_strcmp(buf, "tdls_prohibit_chan_switch") == 0) { in hostapd_config_fill()
4128 if (atoi(pos)) in hostapd_config_fill()
4133 } else if (os_strcmp(buf, "rsn_testing") == 0) { in hostapd_config_fill()
4137 } else if (os_strcmp(buf, "time_advertisement") == 0) { in hostapd_config_fill()
4139 } else if (os_strcmp(buf, "time_zone") == 0) { in hostapd_config_fill()
4141 if (tz_len < 4 || tz_len > 255) { in hostapd_config_fill()
4148 if (bss->time_zone == NULL) in hostapd_config_fill()
4151 } else if (os_strcmp(buf, "wnm_sleep_mode") == 0) { in hostapd_config_fill()
4153 } else if (os_strcmp(buf, "wnm_sleep_mode_no_keys") == 0) { in hostapd_config_fill()
4155 } else if (os_strcmp(buf, "bss_transition") == 0) { in hostapd_config_fill()
4159 } else if (os_strcmp(buf, "interworking") == 0) { in hostapd_config_fill()
4161 } else if (os_strcmp(buf, "access_network_type") == 0) { in hostapd_config_fill()
4163 if (bss->access_network_type < 0 || in hostapd_config_fill()
4170 } else if (os_strcmp(buf, "internet") == 0) { in hostapd_config_fill()
4172 } else if (os_strcmp(buf, "asra") == 0) { in hostapd_config_fill()
4174 } else if (os_strcmp(buf, "esr") == 0) { in hostapd_config_fill()
4176 } else if (os_strcmp(buf, "uesa") == 0) { in hostapd_config_fill()
4178 } else if (os_strcmp(buf, "venue_group") == 0) { in hostapd_config_fill()
4181 } else if (os_strcmp(buf, "venue_type") == 0) { in hostapd_config_fill()
4184 } else if (os_strcmp(buf, "hessid") == 0) { in hostapd_config_fill()
4185 if (hwaddr_aton(pos, bss->hessid)) { in hostapd_config_fill()
4189 } else if (os_strcmp(buf, "roaming_consortium") == 0) { in hostapd_config_fill()
4190 if (parse_roaming_consortium(bss, pos, line) < 0) in hostapd_config_fill()
4192 } else if (os_strcmp(buf, "venue_name") == 0) { in hostapd_config_fill()
4193 if (parse_venue_name(bss, pos, line) < 0) in hostapd_config_fill()
4195 } else if (os_strcmp(buf, "venue_url") == 0) { in hostapd_config_fill()
4196 if (parse_venue_url(bss, pos, line) < 0) in hostapd_config_fill()
4198 } else if (os_strcmp(buf, "network_auth_type") == 0) { in hostapd_config_fill()
4201 if (hexstr2bin(pos, &auth_type, 1)) { in hostapd_config_fill()
4207 if (auth_type == 0 || auth_type == 2) in hostapd_config_fill()
4213 if (bss->network_auth_type == NULL) in hostapd_config_fill()
4217 if (redirect_url_len) in hostapd_config_fill()
4221 } else if (os_strcmp(buf, "ipaddr_type_availability") == 0) { in hostapd_config_fill()
4222 if (hexstr2bin(pos, &bss->ipaddr_type_availability, 1)) { in hostapd_config_fill()
4229 } else if (os_strcmp(buf, "domain_name") == 0) { in hostapd_config_fill()
4236 if (domain_list == NULL) in hostapd_config_fill()
4249 if (tok_start) { in hostapd_config_fill()
4266 } else if (os_strcmp(buf, "anqp_3gpp_cell_net") == 0) { in hostapd_config_fill()
4267 if (parse_3gpp_cell_net(bss, pos, line) < 0) in hostapd_config_fill()
4269 } else if (os_strcmp(buf, "nai_realm") == 0) { in hostapd_config_fill()
4270 if (parse_nai_realm(bss, pos, line) < 0) in hostapd_config_fill()
4272 } else if (os_strcmp(buf, "anqp_elem") == 0) { in hostapd_config_fill()
4273 if (parse_anqp_elem(bss, pos, line) < 0) in hostapd_config_fill()
4275 } else if (os_strcmp(buf, "gas_frag_limit") == 0) { in hostapd_config_fill()
4278 if (val <= 0) { in hostapd_config_fill()
4285 } else if (os_strcmp(buf, "gas_comeback_delay") == 0) { in hostapd_config_fill()
4288 } else if (os_strcmp(buf, "qos_map_set") == 0) { in hostapd_config_fill()
4289 if (parse_qos_map_set(bss, pos, line) < 0) in hostapd_config_fill()
4292 } else if (os_strcmp(buf, "dump_msk_file") == 0) { in hostapd_config_fill()
4297 } else if (os_strcmp(buf, "proxy_arp") == 0) { in hostapd_config_fill()
4301 } else if (os_strcmp(buf, "hs20") == 0) { in hostapd_config_fill()
4303 } else if (os_strcmp(buf, "hs20_release") == 0) { in hostapd_config_fill()
4306 if (val < 1 || val > (HS20_VERSION >> 4) + 1) { in hostapd_config_fill()
4313 } else if (os_strcmp(buf, "disable_dgaf") == 0) { in hostapd_config_fill()
4315 } else if (os_strcmp(buf, "na_mcast_to_ucast") == 0) { in hostapd_config_fill()
4317 } else if (os_strcmp(buf, "osen") == 0) { in hostapd_config_fill()
4319 } else if (os_strcmp(buf, "anqp_domain_id") == 0) { in hostapd_config_fill()
4321 } else if (os_strcmp(buf, "hs20_deauth_req_timeout") == 0) { in hostapd_config_fill()
4323 } else if (os_strcmp(buf, "hs20_oper_friendly_name") == 0) { in hostapd_config_fill()
4324 if (hs20_parse_oper_friendly_name(bss, pos, line) < 0) in hostapd_config_fill()
4326 } else if (os_strcmp(buf, "hs20_wan_metrics") == 0) { in hostapd_config_fill()
4327 if (hs20_parse_wan_metrics(bss, pos, line) < 0) in hostapd_config_fill()
4329 } else if (os_strcmp(buf, "hs20_conn_capab") == 0) { in hostapd_config_fill()
4330 if (hs20_parse_conn_capab(bss, pos, line) < 0) { in hostapd_config_fill()
4333 } else if (os_strcmp(buf, "hs20_operating_class") == 0) { in hostapd_config_fill()
4337 if (oper_class_len < 2 || (oper_class_len & 0x01)) { in hostapd_config_fill()
4345 if (oper_class == NULL) in hostapd_config_fill()
4347 if (hexstr2bin(pos, oper_class, oper_class_len)) { in hostapd_config_fill()
4357 } else if (os_strcmp(buf, "hs20_icon") == 0) { in hostapd_config_fill()
4358 if (hs20_parse_icon(bss, pos) < 0) { in hostapd_config_fill()
4363 } else if (os_strcmp(buf, "osu_ssid") == 0) { in hostapd_config_fill()
4364 if (hs20_parse_osu_ssid(bss, pos, line) < 0) in hostapd_config_fill()
4366 } else if (os_strcmp(buf, "osu_server_uri") == 0) { in hostapd_config_fill()
4367 if (hs20_parse_osu_server_uri(bss, pos, line) < 0) in hostapd_config_fill()
4369 } else if (os_strcmp(buf, "osu_friendly_name") == 0) { in hostapd_config_fill()
4370 if (hs20_parse_osu_friendly_name(bss, pos, line) < 0) in hostapd_config_fill()
4372 } else if (os_strcmp(buf, "osu_nai") == 0) { in hostapd_config_fill()
4373 if (hs20_parse_osu_nai(bss, pos, line) < 0) in hostapd_config_fill()
4375 } else if (os_strcmp(buf, "osu_nai2") == 0) { in hostapd_config_fill()
4376 if (hs20_parse_osu_nai2(bss, pos, line) < 0) in hostapd_config_fill()
4378 } else if (os_strcmp(buf, "osu_method_list") == 0) { in hostapd_config_fill()
4379 if (hs20_parse_osu_method_list(bss, pos, line) < 0) in hostapd_config_fill()
4381 } else if (os_strcmp(buf, "osu_icon") == 0) { in hostapd_config_fill()
4382 if (hs20_parse_osu_icon(bss, pos, line) < 0) in hostapd_config_fill()
4384 } else if (os_strcmp(buf, "osu_service_desc") == 0) { in hostapd_config_fill()
4385 if (hs20_parse_osu_service_desc(bss, pos, line) < 0) in hostapd_config_fill()
4387 } else if (os_strcmp(buf, "operator_icon") == 0) { in hostapd_config_fill()
4388 if (hs20_parse_operator_icon(bss, pos, line) < 0) in hostapd_config_fill()
4390 } else if (os_strcmp(buf, "subscr_remediation_url") == 0) { in hostapd_config_fill()
4393 } else if (os_strcmp(buf, "subscr_remediation_method") == 0) { in hostapd_config_fill()
4395 } else if (os_strcmp(buf, "hs20_t_c_filename") == 0) { in hostapd_config_fill()
4398 } else if (os_strcmp(buf, "hs20_t_c_timestamp") == 0) { in hostapd_config_fill()
4400 } else if (os_strcmp(buf, "hs20_t_c_server_url") == 0) { in hostapd_config_fill()
4403 } else if (os_strcmp(buf, "hs20_sim_provisioning_url") == 0) { in hostapd_config_fill()
4408 } else if (os_strcmp(buf, "mbo") == 0) { in hostapd_config_fill()
4410 } else if (os_strcmp(buf, "mbo_cell_data_conn_pref") == 0) { in hostapd_config_fill()
4412 } else if (os_strcmp(buf, "oce") == 0) { in hostapd_config_fill()
4417 } else if (os_strcmp(buf, #_val) == 0) { \ in hostapd_config_fill()
4421 if (*end || conf->_val < 0.0 || \ in hostapd_config_fill()
4433 } else if (os_strcmp(buf, "ecsa_ie_only") == 0) { in hostapd_config_fill()
4435 } else if (os_strcmp(buf, "bss_load_test") == 0) { in hostapd_config_fill()
4438 if (pos == NULL) { in hostapd_config_fill()
4446 if (pos == NULL) { in hostapd_config_fill()
4454 } else if (os_strcmp(buf, "radio_measurements") == 0) { in hostapd_config_fill()
4461 if (val & BIT(0)) in hostapd_config_fill()
4464 } else if (os_strcmp(buf, "own_ie_override") == 0) { in hostapd_config_fill()
4469 if (!tmp) in hostapd_config_fill()
4472 if (hexstr2bin(pos, wpabuf_put(tmp, len), len)) { in hostapd_config_fill()
4482 } else if (os_strcmp(buf, "sae_reflection_attack") == 0) { in hostapd_config_fill()
4484 } else if (os_strcmp(buf, "sae_commit_status") == 0) { in hostapd_config_fill()
4486 } else if (os_strcmp(buf, "sae_pk_omit") == 0) { in hostapd_config_fill()
4488 } else if (os_strcmp(buf, "sae_pk_password_check_skip") == 0) { in hostapd_config_fill()
4490 } else if (os_strcmp(buf, "sae_commit_override") == 0) { in hostapd_config_fill()
4493 } else if (os_strcmp(buf, "rsne_override_eapol") == 0) { in hostapd_config_fill()
4496 } else if (os_strcmp(buf, "rsnxe_override_eapol") == 0) { in hostapd_config_fill()
4499 } else if (os_strcmp(buf, "rsne_override_ft") == 0) { in hostapd_config_fill()
4502 } else if (os_strcmp(buf, "rsnxe_override_ft") == 0) { in hostapd_config_fill()
4505 } else if (os_strcmp(buf, "gtk_rsc_override") == 0) { in hostapd_config_fill()
4508 } else if (os_strcmp(buf, "igtk_rsc_override") == 0) { in hostapd_config_fill()
4511 } else if (os_strcmp(buf, "no_beacon_rsnxe") == 0) { in hostapd_config_fill()
4513 } else if (os_strcmp(buf, "skip_prune_assoc") == 0) { in hostapd_config_fill()
4515 } else if (os_strcmp(buf, "ft_rsnxe_used") == 0) { in hostapd_config_fill()
4517 } else if (os_strcmp(buf, "oci_freq_override_eapol_m3") == 0) { in hostapd_config_fill()
4519 } else if (os_strcmp(buf, "oci_freq_override_eapol_g1") == 0) { in hostapd_config_fill()
4521 } else if (os_strcmp(buf, "oci_freq_override_saquery_req") == 0) { in hostapd_config_fill()
4523 } else if (os_strcmp(buf, "oci_freq_override_saquery_resp") == 0) { in hostapd_config_fill()
4525 } else if (os_strcmp(buf, "oci_freq_override_ft_assoc") == 0) { in hostapd_config_fill()
4527 } else if (os_strcmp(buf, "oci_freq_override_fils_assoc") == 0) { in hostapd_config_fill()
4529 } else if (os_strcmp(buf, "oci_freq_override_wnm_sleep") == 0) { in hostapd_config_fill()
4531 } else if (os_strcmp(buf, "eap_skip_prot_success") == 0) { in hostapd_config_fill()
4533 } else if (os_strcmp(buf, "delay_eapol_tx") == 0) { in hostapd_config_fill()
4535 } else if (os_strcmp(buf, "eapol_m1_elements") == 0) { in hostapd_config_fill()
4536 if (parse_wpabuf_hex(line, buf, &bss->eapol_m1_elements, pos)) in hostapd_config_fill()
4538 } else if (os_strcmp(buf, "eapol_m3_elements") == 0) { in hostapd_config_fill()
4539 if (parse_wpabuf_hex(line, buf, &bss->eapol_m3_elements, pos)) in hostapd_config_fill()
4541 } else if (os_strcmp(buf, "eapol_m3_no_encrypt") == 0) { in hostapd_config_fill()
4543 } else if (os_strcmp(buf, "test_assoc_comeback_type") == 0) { in hostapd_config_fill()
4545 } else if (os_strcmp(buf, "presp_elements") == 0) { in hostapd_config_fill()
4546 if (parse_wpabuf_hex(line, buf, &bss->presp_elements, pos)) in hostapd_config_fill()
4550 } else if (os_strcmp(buf, "sae_password") == 0) { in hostapd_config_fill()
4551 if (parse_sae_password(bss, pos) < 0) { in hostapd_config_fill()
4556 } else if (os_strcmp(buf, "sae_password_file") == 0) { in hostapd_config_fill()
4557 if (parse_sae_password_file(bss, pos) < 0) { in hostapd_config_fill()
4564 } else if (os_strcmp(buf, "vendor_elements") == 0) { in hostapd_config_fill()
4565 if (parse_wpabuf_hex(line, buf, &bss->vendor_elements, pos)) in hostapd_config_fill()
4567 } else if (os_strcmp(buf, "assocresp_elements") == 0) { in hostapd_config_fill()
4568 if (parse_wpabuf_hex(line, buf, &bss->assocresp_elements, pos)) in hostapd_config_fill()
4570 } else if (os_strcmp(buf, "sae_anti_clogging_threshold") == 0 || in hostapd_config_fill()
4573 } else if (os_strcmp(buf, "sae_sync") == 0) { in hostapd_config_fill()
4575 } else if (os_strcmp(buf, "sae_groups") == 0) { in hostapd_config_fill()
4576 if (hostapd_parse_intlist(&bss->sae_groups, pos)) { in hostapd_config_fill()
4582 } else if (os_strcmp(buf, "sae_require_mfp") == 0) { in hostapd_config_fill()
4584 } else if (os_strcmp(buf, "sae_confirm_immediate") == 0) { in hostapd_config_fill()
4586 } else if (os_strcmp(buf, "sae_pwe") == 0) { in hostapd_config_fill()
4588 } else if (os_strcmp(buf, "local_pwr_constraint") == 0) { in hostapd_config_fill()
4590 if (val < 0 || val > 255) { in hostapd_config_fill()
4596 } else if (os_strcmp(buf, "spectrum_mgmt_required") == 0) { in hostapd_config_fill()
4598 } else if (os_strcmp(buf, "wowlan_triggers") == 0) { in hostapd_config_fill()
4602 } else if (os_strcmp(buf, "fst_group_id") == 0) { in hostapd_config_fill()
4605 if (!len || len >= sizeof(conf->fst_cfg.group_id)) { in hostapd_config_fill()
4612 if (conf->fst_cfg.group_id[0]) { in hostapd_config_fill()
4621 } else if (os_strcmp(buf, "fst_priority") == 0) { in hostapd_config_fill()
4625 if (!*pos) { in hostapd_config_fill()
4633 if (*endp || val < 1 || val > FST_MAX_PRIO_VALUE) { in hostapd_config_fill()
4640 } else if (os_strcmp(buf, "fst_llt") == 0) { in hostapd_config_fill()
4644 if (!*pos) { in hostapd_config_fill()
4651 if (*endp || val < 1 || in hostapd_config_fill()
4660 } else if (os_strcmp(buf, "track_sta_max_num") == 0) { in hostapd_config_fill()
4662 } else if (os_strcmp(buf, "track_sta_max_age") == 0) { in hostapd_config_fill()
4664 } else if (os_strcmp(buf, "no_probe_resp_if_seen_on") == 0) { in hostapd_config_fill()
4667 } else if (os_strcmp(buf, "no_auth_if_seen_on") == 0) { in hostapd_config_fill()
4670 } else if (os_strcmp(buf, "lci") == 0) { in hostapd_config_fill()
4673 if (conf->lci && wpabuf_len(conf->lci) == 0) { in hostapd_config_fill()
4677 } else if (os_strcmp(buf, "civic") == 0) { in hostapd_config_fill()
4680 if (conf->civic && wpabuf_len(conf->civic) == 0) { in hostapd_config_fill()
4684 } else if (os_strcmp(buf, "rrm_neighbor_report") == 0) { in hostapd_config_fill()
4685 if (atoi(pos)) in hostapd_config_fill()
4688 } else if (os_strcmp(buf, "rrm_beacon_report") == 0) { in hostapd_config_fill()
4689 if (atoi(pos)) in hostapd_config_fill()
4694 } else if (os_strcmp(buf, "rrm_link_measurement_report") == 0) { in hostapd_config_fill()
4695 if (atoi(pos)) in hostapd_config_fill()
4698 } else if (os_strcmp(buf, "gas_address3") == 0) { in hostapd_config_fill()
4700 } else if (os_strcmp(buf, "stationary_ap") == 0) { in hostapd_config_fill()
4702 } else if (os_strcmp(buf, "ftm_responder") == 0) { in hostapd_config_fill()
4704 } else if (os_strcmp(buf, "ftm_initiator") == 0) { in hostapd_config_fill()
4707 } else if (os_strcmp(buf, "fils_cache_id") == 0) { in hostapd_config_fill()
4708 if (hexstr2bin(pos, bss->fils_cache_id, FILS_CACHE_ID_LEN)) { in hostapd_config_fill()
4715 } else if (os_strcmp(buf, "fils_realm") == 0) { in hostapd_config_fill()
4716 if (parse_fils_realm(bss, pos) < 0) in hostapd_config_fill()
4718 } else if (os_strcmp(buf, "fils_dh_group") == 0) { in hostapd_config_fill()
4720 } else if (os_strcmp(buf, "dhcp_server") == 0) { in hostapd_config_fill()
4721 if (hostapd_parse_ip_addr(pos, &bss->dhcp_server)) { in hostapd_config_fill()
4727 } else if (os_strcmp(buf, "dhcp_rapid_commit_proxy") == 0) { in hostapd_config_fill()
4729 } else if (os_strcmp(buf, "fils_hlp_wait_time") == 0) { in hostapd_config_fill()
4731 } else if (os_strcmp(buf, "dhcp_server_port") == 0) { in hostapd_config_fill()
4733 } else if (os_strcmp(buf, "dhcp_relay_port") == 0) { in hostapd_config_fill()
4735 } else if (os_strcmp(buf, "fils_discovery_min_interval") == 0) { in hostapd_config_fill()
4737 } else if (os_strcmp(buf, "fils_discovery_max_interval") == 0) { in hostapd_config_fill()
4740 } else if (os_strcmp(buf, "multicast_to_unicast") == 0) { in hostapd_config_fill()
4742 } else if (os_strcmp(buf, "bridge_multicast_to_unicast") == 0) { in hostapd_config_fill()
4744 } else if (os_strcmp(buf, "broadcast_deauth") == 0) { in hostapd_config_fill()
4746 } else if (os_strcmp(buf, "notify_mgmt_frames") == 0) { in hostapd_config_fill()
4749 } else if (os_strcmp(buf, "dpp_name") == 0) { in hostapd_config_fill()
4752 } else if (os_strcmp(buf, "dpp_mud_url") == 0) { in hostapd_config_fill()
4755 } else if (os_strcmp(buf, "dpp_extra_conf_req_name") == 0) { in hostapd_config_fill()
4758 } else if (os_strcmp(buf, "dpp_extra_conf_req_value") == 0) { in hostapd_config_fill()
4761 } else if (os_strcmp(buf, "dpp_connector") == 0) { in hostapd_config_fill()
4764 } else if (os_strcmp(buf, "dpp_netaccesskey") == 0) { in hostapd_config_fill()
4765 if (parse_wpabuf_hex(line, buf, &bss->dpp_netaccesskey, pos)) in hostapd_config_fill()
4767 } else if (os_strcmp(buf, "dpp_netaccesskey_expiry") == 0) { in hostapd_config_fill()
4769 } else if (os_strcmp(buf, "dpp_csign") == 0) { in hostapd_config_fill()
4770 if (parse_wpabuf_hex(line, buf, &bss->dpp_csign, pos)) in hostapd_config_fill()
4773 } else if (os_strcmp(buf, "dpp_controller") == 0) { in hostapd_config_fill()
4774 if (hostapd_dpp_controller_parse(bss, pos)) in hostapd_config_fill()
4776 } else if (os_strcmp(buf, "dpp_relay_port") == 0) { in hostapd_config_fill()
4778 } else if (os_strcmp(buf, "dpp_configurator_connectivity") == 0) { in hostapd_config_fill()
4780 } else if (os_strcmp(buf, "dpp_pfs") == 0) { in hostapd_config_fill()
4783 if (val < 0 || val > 2) { in hostapd_config_fill()
4793 } else if (os_strcmp(buf, "owe_transition_bssid") == 0) { in hostapd_config_fill()
4794 if (hwaddr_aton(pos, bss->owe_transition_bssid)) { in hostapd_config_fill()
4800 } else if (os_strcmp(buf, "owe_transition_ssid") == 0) { in hostapd_config_fill()
4804 if (!str || slen < 1 || slen > SSID_MAX_LEN) { in hostapd_config_fill()
4813 } else if (os_strcmp(buf, "owe_transition_ifname") == 0) { in hostapd_config_fill()
4816 } else if (os_strcmp(buf, "owe_groups") == 0) { in hostapd_config_fill()
4817 if (hostapd_parse_intlist(&bss->owe_groups, pos)) { in hostapd_config_fill()
4823 } else if (os_strcmp(buf, "owe_ptk_workaround") == 0) { in hostapd_config_fill()
4826 } else if (os_strcmp(buf, "coloc_intf_reporting") == 0) { in hostapd_config_fill()
4828 } else if (os_strcmp(buf, "multi_ap") == 0) { in hostapd_config_fill()
4831 if (val < 0 || val > 3) { in hostapd_config_fill()
4838 } else if (os_strcmp(buf, "multi_ap_profile") == 0) { in hostapd_config_fill()
4841 if (val < MULTI_AP_PROFILE_1 || val > MULTI_AP_PROFILE_MAX) { in hostapd_config_fill()
4848 } else if (os_strcmp(buf, "multi_ap_client_disallow") == 0) { in hostapd_config_fill()
4851 if (val < 0 || val > 3) { in hostapd_config_fill()
4858 } else if (os_strcmp(buf, "multi_ap_vlanid") == 0) { in hostapd_config_fill()
4861 if (val < 0 || val > MAX_VLAN_ID) { in hostapd_config_fill()
4868 } else if (os_strcmp(buf, "rssi_reject_assoc_rssi") == 0) { in hostapd_config_fill()
4870 } else if (os_strcmp(buf, "rssi_reject_assoc_timeout") == 0) { in hostapd_config_fill()
4872 } else if (os_strcmp(buf, "rssi_ignore_probe_request") == 0) { in hostapd_config_fill()
4874 } else if (os_strcmp(buf, "pbss") == 0) { in hostapd_config_fill()
4876 } else if (os_strcmp(buf, "transition_disable") == 0) { in hostapd_config_fill()
4879 } else if (os_strcmp(buf, "airtime_mode") == 0) { in hostapd_config_fill()
4882 if (val < 0 || val > AIRTIME_MODE_MAX) { in hostapd_config_fill()
4888 } else if (os_strcmp(buf, "airtime_update_interval") == 0) { in hostapd_config_fill()
4890 } else if (os_strcmp(buf, "airtime_bss_weight") == 0) { in hostapd_config_fill()
4892 } else if (os_strcmp(buf, "airtime_bss_limit") == 0) { in hostapd_config_fill()
4895 if (val < 0 || val > 1) { in hostapd_config_fill()
4902 } else if (os_strcmp(buf, "airtime_sta_weight") == 0) { in hostapd_config_fill()
4903 if (add_airtime_weight(bss, pos) < 0) { in hostapd_config_fill()
4911 } else if (os_strcmp(buf, "macsec_policy") == 0) { in hostapd_config_fill()
4914 if (macsec_policy < 0 || macsec_policy > 1) { in hostapd_config_fill()
4921 } else if (os_strcmp(buf, "macsec_integ_only") == 0) { in hostapd_config_fill()
4924 if (macsec_integ_only < 0 || macsec_integ_only > 1) { in hostapd_config_fill()
4931 } else if (os_strcmp(buf, "macsec_replay_protect") == 0) { in hostapd_config_fill()
4934 if (macsec_replay_protect < 0 || macsec_replay_protect > 1) { in hostapd_config_fill()
4941 } else if (os_strcmp(buf, "macsec_replay_window") == 0) { in hostapd_config_fill()
4943 } else if (os_strcmp(buf, "macsec_offload") == 0) { in hostapd_config_fill()
4946 if (macsec_offload < 0 || macsec_offload > 2) { in hostapd_config_fill()
4953 } else if (os_strcmp(buf, "macsec_port") == 0) { in hostapd_config_fill()
4956 if (macsec_port < 1 || macsec_port > 65534) { in hostapd_config_fill()
4963 } else if (os_strcmp(buf, "mka_priority") == 0) { in hostapd_config_fill()
4966 if (mka_priority < 0 || mka_priority > 255) { in hostapd_config_fill()
4973 } else if (os_strcmp(buf, "macsec_csindex") == 0) { in hostapd_config_fill()
4976 if (macsec_csindex < 0 || macsec_csindex > 1) { in hostapd_config_fill()
4983 } else if (os_strcmp(buf, "mka_cak") == 0) { in hostapd_config_fill()
4986 if (len > 2 * MACSEC_CAK_MAX_LEN || in hostapd_config_fill()
4995 } else if (os_strcmp(buf, "mka_ckn") == 0) { in hostapd_config_fill()
4998 if (len > 2 * MACSEC_CKN_MAX_LEN || /* too long */ in hostapd_config_fill()
5006 if (hexstr2bin(pos, bss->mka_ckn, bss->mka_ckn_len)) { in hostapd_config_fill()
5013 } else if (os_strcmp(buf, "disable_11n") == 0) { in hostapd_config_fill()
5015 } else if (os_strcmp(buf, "disable_11ac") == 0) { in hostapd_config_fill()
5017 } else if (os_strcmp(buf, "disable_11ax") == 0) { in hostapd_config_fill()
5019 } else if (os_strcmp(buf, "disable_11be") == 0) { in hostapd_config_fill()
5023 } else if (os_strcmp(buf, "force_kdk_derivation") == 0) { in hostapd_config_fill()
5025 } else if (os_strcmp(buf, "pasn_corrupt_mic") == 0) { in hostapd_config_fill()
5028 } else if (os_strcmp(buf, "pasn_groups") == 0) { in hostapd_config_fill()
5029 if (hostapd_parse_intlist(&bss->pasn_groups, pos)) { in hostapd_config_fill()
5035 } else if (os_strcmp(buf, "pasn_comeback_after") == 0) { in hostapd_config_fill()
5037 } else if (os_strcmp(buf, "pasn_noauth") == 0) { in hostapd_config_fill()
5040 } else if (os_strcmp(buf, "ext_capa_mask") == 0) { in hostapd_config_fill()
5041 if (get_hex_config(bss->ext_capa_mask, EXT_CAPA_MAX_LEN, in hostapd_config_fill()
5044 } else if (os_strcmp(buf, "ext_capa") == 0) { in hostapd_config_fill()
5045 if (get_hex_config(bss->ext_capa, EXT_CAPA_MAX_LEN, in hostapd_config_fill()
5048 } else if (os_strcmp(buf, "rnr") == 0) { in hostapd_config_fill()
5050 } else if (os_strcmp(buf, "ssid_protection") == 0) { in hostapd_config_fill()
5053 if (val < 0 || val > 1) in hostapd_config_fill()
5057 } else if (os_strcmp(buf, "ieee80211be") == 0) { in hostapd_config_fill()
5059 } else if (os_strcmp(buf, "eht_oper_chwidth") == 0) { in hostapd_config_fill()
5061 } else if (os_strcmp(buf, "eht_oper_centr_freq_seg0_idx") == 0) { in hostapd_config_fill()
5063 } else if (os_strcmp(buf, "eht_su_beamformer") == 0) { in hostapd_config_fill()
5065 } else if (os_strcmp(buf, "eht_su_beamformee") == 0) { in hostapd_config_fill()
5067 } else if (os_strcmp(buf, "eht_mu_beamformer") == 0) { in hostapd_config_fill()
5069 } else if (os_strcmp(buf, "eht_default_pe_duration") == 0) { in hostapd_config_fill()
5071 } else if (os_strcmp(buf, "punct_bitmap") == 0) { in hostapd_config_fill()
5072 if (get_u16(pos, line, &conf->punct_bitmap)) in hostapd_config_fill()
5074 } else if (os_strcmp(buf, "punct_acs_threshold") == 0) { in hostapd_config_fill()
5077 if (val < 0 || val > 100) { in hostapd_config_fill()
5084 } else if (os_strcmp(buf, "mld_ap") == 0) { in hostapd_config_fill()
5086 } else if (os_strcmp(buf, "mld_addr") == 0) { in hostapd_config_fill()
5087 if (hwaddr_aton(pos, bss->mld_addr)) { in hostapd_config_fill()
5092 } else if (os_strcmp(buf, "eht_bw320_offset") == 0) { in hostapd_config_fill()
5095 } else if (os_strcmp(buf, "eht_oper_puncturing_override") == 0) { in hostapd_config_fill()
5096 if (get_u16(pos, line, &bss->eht_oper_puncturing_override)) in hostapd_config_fill()
5098 } else if (os_strcmp(buf, "mld_indicate_disabled") == 0) { in hostapd_config_fill()
5115 * @fname: Configuration file name (including path, if needed)
5128 if (f == NULL) { in hostapd_config_read()
5135 if (conf == NULL) { in hostapd_config_read()
5142 if (conf->driver == NULL) { in hostapd_config_read()
5157 if (buf[0] == '#') in hostapd_config_read()
5161 if (*pos == '\n') { in hostapd_config_read()
5167 if (buf[0] == '\0') in hostapd_config_read()
5171 if (pos == NULL) { in hostapd_config_read()
5187 if (hostapd_config_check(conf, 1)) in hostapd_config_read()
5191 if (errors) { in hostapd_config_read()
5211 if (errors) { in hostapd_set_iface()
5220 if (hostapd_config_check(conf, 0)) { in hostapd_set_iface()