Lines Matching refs:conf
86 radius_client_reconfig(hapd->radius, hapd->conf->radius); in hostapd_reload_bss()
89 ssid = &hapd->conf->ssid; in hostapd_reload_bss()
96 hostapd_config_clear_wpa_psk(&hapd->conf->ssid.wpa_psk); in hostapd_reload_bss()
98 if (hostapd_setup_wpa_psk(hapd->conf)) { in hostapd_reload_bss()
103 if (hapd->conf->ieee802_1x || hapd->conf->wpa) in hostapd_reload_bss()
104 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 1); in hostapd_reload_bss()
106 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 0); in hostapd_reload_bss()
108 if ((hapd->conf->wpa || hapd->conf->osen) && hapd->wpa_auth == NULL) { in hostapd_reload_bss()
112 } else if (hapd->conf->wpa) { in hostapd_reload_bss()
124 hostapd_setup_encryption(hapd->conf->iface, hapd); in hostapd_reload_bss()
131 if (hapd->conf->ssid.ssid_set && in hostapd_reload_bss()
132 hostapd_set_ssid(hapd, hapd->conf->ssid.ssid, in hostapd_reload_bss()
133 hapd->conf->ssid.ssid_len)) { in hostapd_reload_bss()
137 wpa_printf(MSG_DEBUG, "Reconfigured interface %s", hapd->conf->iface); in hostapd_reload_bss()
187 iface->conf = newconf; in hostapd_reload_config()
204 hapd->conf = newconf->bss[j]; in hostapd_reload_config()
231 if (hapd->conf->ieee80211w) { in hostapd_broadcast_key_clear_iface()
248 hostapd_broadcast_key_clear_iface(hapd, hapd->conf->iface); in hostapd_broadcast_wep_clear()
256 struct hostapd_ssid *ssid = &hapd->conf->ssid; in hostapd_broadcast_wep_set()
260 hostapd_drv_set_key(hapd->conf->iface, in hostapd_broadcast_wep_set()
287 __func__, hapd->conf->iface); in hostapd_free_hapd_data()
292 wpa_printf(MSG_DEBUG, "%s(%s)", __func__, hapd->conf->iface); in hostapd_free_hapd_data()
316 if (hostapd_if_remove(hapd, WPA_IF_AP_BSS, hapd->conf->iface)) { in hostapd_free_hapd_data()
319 hapd->conf->iface); in hostapd_free_hapd_data()
370 hapd->conf->iface); in hostapd_cleanup()
431 hostapd_config_free(iface->conf); in hostapd_cleanup_iface()
432 iface->conf = NULL; in hostapd_cleanup_iface()
456 if (hapd->conf->ssid.wep.default_len) { in hostapd_setup_encryption()
465 hostapd_drv_set_authmode(hapd, hapd->conf->auth_algs); in hostapd_setup_encryption()
468 if (hapd->conf->ssid.wep.key[i] && in hostapd_setup_encryption()
470 i == hapd->conf->ssid.wep.idx, NULL, 0, in hostapd_setup_encryption()
471 hapd->conf->ssid.wep.key[i], in hostapd_setup_encryption()
472 hapd->conf->ssid.wep.len[i])) { in hostapd_setup_encryption()
477 if (hapd->conf->ssid.wep.key[i] && in hostapd_setup_encryption()
478 i == hapd->conf->ssid.wep.idx) in hostapd_setup_encryption()
504 if (hapd->conf && hapd->conf->broadcast_deauth) { in hostapd_flush_old_stations()
535 unsigned int i = iface->conf->num_bss, bits = 0, j; in hostapd_validate_bssid_configuration()
541 if (iface->conf->use_driver_iface_addr) in hostapd_validate_bssid_configuration()
552 for (j = 0; j < iface->conf->num_bss; j++) { in hostapd_validate_bssid_configuration()
553 if (is_zero_ether_addr(iface->conf->bss[j]->bssid)) { in hostapd_validate_bssid_configuration()
561 iface->conf->bss[j]->bssid[i] ^ in hostapd_validate_bssid_configuration()
600 (unsigned long) iface->conf->num_bss, MAC2STR(mask), bits); in hostapd_validate_bssid_configuration()
621 static int mac_in_conf(struct hostapd_config *conf, const void *a) in mac_in_conf() argument
625 for (i = 0; i < conf->num_bss; i++) { in mac_in_conf()
626 if (hostapd_mac_comp(conf->bss[i]->bssid, a) == 0) { in mac_in_conf()
641 (!hapd->conf->nas_identifier || in hostapd_das_nas_mismatch()
642 os_strlen(hapd->conf->nas_identifier) != in hostapd_das_nas_mismatch()
644 os_memcmp(hapd->conf->nas_identifier, attr->nas_identifier, in hostapd_das_nas_mismatch()
651 (hapd->conf->own_ip_addr.af != AF_INET || in hostapd_das_nas_mismatch()
652 os_memcmp(&hapd->conf->own_ip_addr.u.v4, attr->nas_ip_addr, 4) != in hostapd_das_nas_mismatch()
660 (hapd->conf->own_ip_addr.af != AF_INET6 || in hostapd_das_nas_mismatch()
661 os_memcmp(&hapd->conf->own_ip_addr.u.v6, attr->nas_ipv6_addr, 16) in hostapd_das_nas_mismatch()
912 struct hostapd_bss_config *conf = hapd->conf; in hostapd_setup_bss() local
920 __func__, hapd, conf->iface, first); in hostapd_setup_bss()
923 if (conf->tnc && tncs_global_init() < 0) { in hostapd_setup_bss()
931 __func__, conf->iface); in hostapd_setup_bss()
939 if (!is_zero_ether_addr(conf->bssid)) { in hostapd_setup_bss()
941 os_memcpy(hapd->own_addr, conf->bssid, ETH_ALEN); in hostapd_setup_bss()
948 "the radio", conf->iface); in hostapd_setup_bss()
962 conf->iface, addr, hapd, in hostapd_setup_bss()
964 conf->bridge[0] ? conf->bridge : NULL, in hostapd_setup_bss()
976 if (conf->wmm_enabled < 0) in hostapd_setup_bss()
977 conf->wmm_enabled = hapd->iconf->ieee80211n; in hostapd_setup_bss()
980 if (is_zero_ether_addr(conf->r1_key_holder)) in hostapd_setup_bss()
981 os_memcpy(conf->r1_key_holder, hapd->own_addr, ETH_ALEN); in hostapd_setup_bss()
985 if ((hapd->conf->mesh & MESH_ENABLED) && hapd->iface->mconf == NULL) in hostapd_setup_bss()
995 if (hostapd_setup_encryption(conf->iface, hapd)) in hostapd_setup_bss()
1008 if (conf->ssid.ssid_set) { in hostapd_setup_bss()
1014 set_ssid = (conf->ssid.ssid_len != (size_t) ssid_len || in hostapd_setup_bss()
1015 os_memcmp(conf->ssid.ssid, ssid, ssid_len) != 0); in hostapd_setup_bss()
1022 conf->ssid.ssid_len = ssid_len; in hostapd_setup_bss()
1023 os_memcpy(conf->ssid.ssid, ssid, conf->ssid.ssid_len); in hostapd_setup_bss()
1029 conf->iface, MAC2STR(hapd->own_addr), in hostapd_setup_bss()
1030 wpa_ssid_txt(conf->ssid.ssid, conf->ssid.ssid_len)); in hostapd_setup_bss()
1033 if (hostapd_setup_wpa_psk(conf)) { in hostapd_setup_bss()
1040 if (set_ssid && hostapd_set_ssid(hapd, conf->ssid.ssid, in hostapd_setup_bss()
1041 conf->ssid.ssid_len)) { in hostapd_setup_bss()
1047 conf->radius->msg_dumps = 1; in hostapd_setup_bss()
1049 hapd->radius = radius_client_init(hapd, conf->radius); in hostapd_setup_bss()
1055 if (conf->radius_das_port) { in hostapd_setup_bss()
1058 das_conf.port = conf->radius_das_port; in hostapd_setup_bss()
1059 das_conf.shared_secret = conf->radius_das_shared_secret; in hostapd_setup_bss()
1061 conf->radius_das_shared_secret_len; in hostapd_setup_bss()
1062 das_conf.client_addr = &conf->radius_das_client_addr; in hostapd_setup_bss()
1063 das_conf.time_window = conf->radius_das_time_window; in hostapd_setup_bss()
1065 conf->radius_das_require_event_timestamp; in hostapd_setup_bss()
1067 conf->radius_das_require_message_authenticator; in hostapd_setup_bss()
1083 if (hostapd_init_wps(hapd, conf)) in hostapd_setup_bss()
1102 if ((conf->wpa || conf->osen) && hostapd_setup_wpa(hapd)) in hostapd_setup_bss()
1110 if (conf->ieee802_11f && in hostapd_setup_bss()
1111 (hapd->iapp = iapp_init(hapd, conf->iapp_iface)) == NULL) { in hostapd_setup_bss()
1123 if (conf->qos_map_set_len && in hostapd_setup_bss()
1124 hostapd_drv_set_qos_map(hapd, conf->qos_map_set, in hostapd_setup_bss()
1125 conf->qos_map_set_len)) { in hostapd_setup_bss()
1131 if (conf->bss_load_update_period && bss_load_update_init(hapd)) { in hostapd_setup_bss()
1136 if (conf->proxy_arp) { in hostapd_setup_bss()
1161 if (!conf->start_disabled && ieee802_11_set_beacon(hapd) < 0) in hostapd_setup_bss()
1181 if ((hapd->conf->mesh & MESH_ENABLED) && iface->mconf == NULL) in hostapd_tx_queue_params()
1186 p = &iface->conf->tx_queue[i]; in hostapd_tx_queue_params()
1227 struct hostapd_config *conf = hapd->iconf; in hostapd_set_acl() local
1234 if (conf->bss[0]->macaddr_acl == DENY_UNLESS_ACCEPTED) { in hostapd_set_acl()
1236 err = hostapd_set_acl_list(hapd, conf->bss[0]->accept_mac, in hostapd_set_acl()
1237 conf->bss[0]->num_accept_mac, in hostapd_set_acl()
1243 } else if (conf->bss[0]->macaddr_acl == ACCEPT_UNLESS_DENIED) { in hostapd_set_acl()
1245 err = hostapd_set_acl_list(hapd, conf->bss[0]->deny_mac, in hostapd_set_acl()
1246 conf->bss[0]->num_deny_mac, in hostapd_set_acl()
1265 hapd->conf->iface); in start_ctrl_iface_bss()
1285 hapd->conf->iface); in start_ctrl_iface()
1423 if (iface->conf->ieee80211h) in setup_interface2()
1588 int ht = hapd->iconf->ieee80211n && !hapd->conf->disable_11n; in hostapd_set_own_neighbor_report()
1589 int vht = hapd->iconf->ieee80211ac && !hapd->conf->disable_11ac; in hostapd_set_own_neighbor_report()
1597 if (!(hapd->conf->radio_measurements[0] & in hostapd_set_own_neighbor_report()
1610 if (hapd->conf->wmm_enabled) { in hostapd_set_own_neighbor_report()
1613 if (hapd->conf->wmm_uapsd && in hostapd_set_own_neighbor_report()
1647 ssid.ssid_len = hapd->conf->ssid.ssid_len; in hostapd_set_own_neighbor_report()
1648 os_memcpy(ssid.ssid, hapd->conf->ssid.ssid, ssid.ssid_len); in hostapd_set_own_neighbor_report()
1693 if (os_strcmp(hapd->conf->owe_transition_ifname, in hostapd_owe_iface_iter()
1694 bss->conf->iface) != 0) in hostapd_owe_iface_iter()
1700 hapd->conf->iface, bss->conf->iface, in hostapd_owe_iface_iter()
1702 wpa_ssid_txt(bss->conf->ssid.ssid, in hostapd_owe_iface_iter()
1703 bss->conf->ssid.ssid_len)); in hostapd_owe_iface_iter()
1704 if (!bss->conf->ssid.ssid_set || !bss->conf->ssid.ssid_len || in hostapd_owe_iface_iter()
1708 os_memcpy(hapd->conf->owe_transition_bssid, bss->own_addr, in hostapd_owe_iface_iter()
1710 os_memcpy(hapd->conf->owe_transition_ssid, in hostapd_owe_iface_iter()
1711 bss->conf->ssid.ssid, bss->conf->ssid.ssid_len); in hostapd_owe_iface_iter()
1712 hapd->conf->owe_transition_ssid_len = bss->conf->ssid.ssid_len; in hostapd_owe_iface_iter()
1724 if (hapd->conf->owe_transition_ssid_len > 0 && in hostapd_owe_trans_get_info()
1725 !is_zero_ether_addr(hapd->conf->owe_transition_bssid)) in hostapd_owe_trans_get_info()
1747 if (!bss->conf->owe_transition_ifname[0]) in hostapd_owe_iface_iter2()
1754 bss->conf->iface); in hostapd_owe_iface_iter2()
1792 if (iface->conf->channel) { in hostapd_setup_interface_complete_sync()
1797 iface->freq = hostapd_hw_get_freq(hapd, iface->conf->channel); in hostapd_setup_interface_complete_sync()
1800 hostapd_hw_mode_txt(iface->conf->hw_mode), in hostapd_setup_interface_complete_sync()
1801 iface->conf->channel, iface->freq); in hostapd_setup_interface_complete_sync()
1837 iface->bss[0]->conf->iface); in hostapd_setup_interface_complete_sync()
1896 if (is_zero_ether_addr(hapd->conf->bssid)) in hostapd_setup_interface_complete_sync()
1943 iface->fst = fst_attach(hapd->conf->iface, hapd->own_addr, in hostapd_setup_interface_complete_sync()
1960 iface->bss[0]->conf->iface); in hostapd_setup_interface_complete_sync()
2036 iface->bss[0]->conf->iface); in hostapd_setup_interface_complete()
2045 iface->bss[0]->conf->iface); in hostapd_setup_interface_complete()
2051 iface->bss[0]->conf->iface); in hostapd_setup_interface_complete()
2091 iface->bss[0]->conf->iface); in hostapd_setup_interface()
2112 struct hostapd_config *conf, in hostapd_alloc_bss_data() argument
2122 hapd->iconf = conf; in hostapd_alloc_bss_data()
2123 hapd->conf = bss; in hostapd_alloc_bss_data()
2125 if (conf) in hostapd_alloc_bss_data()
2126 hapd->driver = conf->driver; in hostapd_alloc_bss_data()
2145 hapd->conf->iface); in hostapd_bss_deinit()
2228 struct hostapd_config *conf = NULL; in hostapd_init() local
2240 conf = interfaces->config_read_cb(hapd_iface->config_fname); in hostapd_init()
2241 if (conf == NULL) in hostapd_init()
2243 hapd_iface->conf = conf; in hostapd_init()
2245 hapd_iface->num_bss = conf->num_bss; in hostapd_init()
2246 hapd_iface->bss = os_calloc(conf->num_bss, in hostapd_init()
2251 for (i = 0; i < conf->num_bss; i++) { in hostapd_init()
2253 hostapd_alloc_bss_data(hapd_iface, conf, in hostapd_init()
2254 conf->bss[i]); in hostapd_init()
2265 if (conf) in hostapd_init()
2266 hostapd_config_free(conf); in hostapd_init()
2286 if (os_strcmp(ifname, hapd->conf->iface) == 0) in ifname_in_use()
2328 struct hostapd_config *conf; in hostapd_interface_init_bss() local
2335 conf = interfaces->config_read_cb(config_fname); in hostapd_interface_init_bss()
2336 if (conf == NULL) in hostapd_interface_init_bss()
2338 if (conf->num_bss > 1) { in hostapd_interface_init_bss()
2340 hostapd_config_free(conf); in hostapd_interface_init_bss()
2344 ifname = conf->bss[0]->iface; in hostapd_interface_init_bss()
2348 hostapd_config_free(conf); in hostapd_interface_init_bss()
2353 iface->conf->bss, iface->conf->num_bss + 1, in hostapd_interface_init_bss()
2360 iface->conf->bss = tmp_conf; in hostapd_interface_init_bss()
2361 iface->conf->last_bss = tmp_conf[0]; in hostapd_interface_init_bss()
2364 hostapd_config_free(conf); in hostapd_interface_init_bss()
2367 bss = iface->conf->bss[iface->conf->num_bss] = conf->bss[0]; in hostapd_interface_init_bss()
2368 iface->conf->num_bss++; in hostapd_interface_init_bss()
2370 hapd = hostapd_alloc_bss_data(iface, iface->conf, bss); in hostapd_interface_init_bss()
2372 iface->conf->num_bss--; in hostapd_interface_init_bss()
2373 hostapd_config_free(conf); in hostapd_interface_init_bss()
2376 iface->conf->last_bss = bss; in hostapd_interface_init_bss()
2381 conf->num_bss--; in hostapd_interface_init_bss()
2382 conf->bss[0] = NULL; in hostapd_interface_init_bss()
2383 hostapd_config_free(conf); in hostapd_interface_init_bss()
2395 if (iface->bss[bss_idx]->conf->logger_stdout_level > 0) in hostapd_interface_init_bss()
2396 iface->bss[bss_idx]->conf->logger_stdout_level--; in hostapd_interface_init_bss()
2399 if (iface->conf->bss[bss_idx]->iface[0] == '\0' && in hostapd_interface_init_bss()
2422 (unsigned int) iface->conf->num_bss); in hostapd_interface_deinit_free()
2463 hapd_iface->conf->bss[0]->iface); in hostapd_enable_iface()
2468 hapd_iface->conf->bss[0]->iface); in hostapd_enable_iface()
2471 hostapd_set_security_params(hapd_iface->conf->bss[j], 1); in hostapd_enable_iface()
2472 if (hostapd_config_check(hapd_iface->conf, 1) < 0) { in hostapd_enable_iface()
2498 hapd_iface->conf->bss[0]->iface); in hostapd_reload_iface()
2500 hostapd_set_security_params(hapd_iface->conf->bss[j], 1); in hostapd_reload_iface()
2501 if (hostapd_config_check(hapd_iface->conf, 1) < 0) { in hostapd_reload_iface()
2524 hapd_iface->conf->bss[0]->iface); in hostapd_disable_iface()
2551 hapd_iface->bss[0]->conf->iface); in hostapd_disable_iface()
2586 struct hostapd_config *conf; in hostapd_config_alloc() local
2589 conf = hostapd_config_defaults(); in hostapd_config_alloc()
2590 if (conf == NULL) { in hostapd_config_alloc()
2601 conf->driver = wpa_drivers[j]; in hostapd_config_alloc()
2611 conf->driver = wpa_drivers[0]; in hostapd_config_alloc()
2612 if (conf->driver == NULL) { in hostapd_config_alloc()
2614 hostapd_config_free(conf); in hostapd_config_alloc()
2619 bss = conf->last_bss = conf->bss[0]; in hostapd_config_alloc()
2624 hostapd_config_free(conf); in hostapd_config_alloc()
2632 return conf; in hostapd_config_alloc()
2637 struct hostapd_config *conf) in hostapd_data_alloc() argument
2642 hapd_iface->bss = os_calloc(conf->num_bss, in hostapd_data_alloc()
2647 for (i = 0; i < conf->num_bss; i++) { in hostapd_data_alloc()
2649 hostapd_alloc_bss_data(hapd_iface, conf, conf->bss[i]); in hostapd_data_alloc()
2663 hapd_iface->conf = conf; in hostapd_data_alloc()
2664 hapd_iface->num_bss = conf->num_bss; in hostapd_data_alloc()
2672 struct hostapd_config *conf = NULL; in hostapd_add_iface() local
2736 hapd_iface->conf->num_bss--; in hostapd_add_iface()
2739 __func__, hapd, hapd->conf->iface); in hostapd_add_iface()
2740 hostapd_config_free_bss(hapd->conf); in hostapd_add_iface()
2741 hapd->conf = NULL; in hostapd_add_iface()
2759 if (!os_strcmp(interfaces->iface[i]->conf->bss[0]->iface, in hostapd_add_iface()
2776 conf = interfaces->config_read_cb(conf_file); in hostapd_add_iface()
2777 if (conf && conf->bss) in hostapd_add_iface()
2778 os_strlcpy(conf->bss[0]->iface, buf, in hostapd_add_iface()
2779 sizeof(conf->bss[0]->iface)); in hostapd_add_iface()
2785 conf = hostapd_config_alloc(interfaces, buf, ptr, driver); in hostapd_add_iface()
2788 if (conf == NULL || conf->bss == NULL) { in hostapd_add_iface()
2794 if (hostapd_data_alloc(hapd_iface, conf) < 0) { in hostapd_add_iface()
2799 conf = NULL; in hostapd_add_iface()
2805 hapd_iface->conf->bss[0]->iface); in hostapd_add_iface()
2810 if (conf) in hostapd_add_iface()
2811 hostapd_config_free(conf); in hostapd_add_iface()
2824 hapd->conf->iface); in hostapd_add_iface()
2846 wpa_printf(MSG_INFO, "Remove BSS '%s'", iface->conf->bss[idx]->iface); in hostapd_remove_bss()
2854 __func__, hapd, hapd->conf->iface); in hostapd_remove_bss()
2855 hostapd_config_free_bss(hapd->conf); in hostapd_remove_bss()
2856 hapd->conf = NULL; in hostapd_remove_bss()
2864 hostapd_config_free_bss(iface->conf->bss[idx]); in hostapd_remove_bss()
2865 iface->conf->bss[idx] = NULL; in hostapd_remove_bss()
2868 iface->conf->num_bss--; in hostapd_remove_bss()
2869 for (i = idx; i < iface->conf->num_bss; i++) in hostapd_remove_bss()
2870 iface->conf->bss[i] = iface->conf->bss[i + 1]; in hostapd_remove_bss()
2885 if (!os_strcmp(hapd_iface->conf->bss[0]->iface, buf)) { in hostapd_remove_iface()
2902 for (j = 0; j < hapd_iface->conf->num_bss; j++) { in hostapd_remove_iface()
2903 if (!os_strcmp(hapd_iface->conf->bss[j]->iface, buf)) { in hostapd_remove_iface()
2939 if (hapd->conf->ieee802_11f) in hostapd_new_assoc_sta()
2954 if (!hapd->conf->ieee802_1x && !hapd->conf->wpa && !hapd->conf->osen) { in hostapd_new_assoc_sta()
2977 hapd->conf->iface, __func__, in hostapd_new_assoc_sta()
2985 hapd->conf->iface, __func__, MAC2STR(sta->addr), in hostapd_new_assoc_sta()
2986 hapd->conf->ap_max_inactivity); in hostapd_new_assoc_sta()
2988 eloop_register_timeout(hapd->conf->ap_max_inactivity, 0, in hostapd_new_assoc_sta()
3020 iface->conf ? iface->conf->bss[0]->iface : "N/A", in hostapd_set_state()
3145 struct hostapd_config *conf, in hostapd_change_config_freq() argument
3162 hostapd_set_freq_params(old_params, conf->hw_mode, in hostapd_change_config_freq()
3163 hostapd_hw_get_freq(hapd, conf->channel), in hostapd_change_config_freq()
3164 conf->channel, conf->ieee80211n, in hostapd_change_config_freq()
3165 conf->ieee80211ac, in hostapd_change_config_freq()
3166 conf->secondary_channel, in hostapd_change_config_freq()
3167 conf->vht_oper_chwidth, in hostapd_change_config_freq()
3168 conf->vht_oper_centr_freq_seg0_idx, in hostapd_change_config_freq()
3169 conf->vht_oper_centr_freq_seg1_idx, in hostapd_change_config_freq()
3170 conf->vht_capab)) in hostapd_change_config_freq()
3177 conf->vht_oper_chwidth = VHT_CHANWIDTH_USE_HT; in hostapd_change_config_freq()
3181 conf->vht_oper_chwidth = VHT_CHANWIDTH_80P80MHZ; in hostapd_change_config_freq()
3183 conf->vht_oper_chwidth = VHT_CHANWIDTH_80MHZ; in hostapd_change_config_freq()
3186 conf->vht_oper_chwidth = VHT_CHANWIDTH_160MHZ; in hostapd_change_config_freq()
3192 conf->channel = channel; in hostapd_change_config_freq()
3193 conf->ieee80211n = params->ht_enabled; in hostapd_change_config_freq()
3194 conf->secondary_channel = params->sec_channel_offset; in hostapd_change_config_freq()
3196 &conf->vht_oper_centr_freq_seg0_idx); in hostapd_change_config_freq()
3198 &conf->vht_oper_centr_freq_seg1_idx); in hostapd_change_config_freq()
3249 ret = hostapd_change_config_freq(iface->bss[0], iface->conf, in hostapd_fill_csa_settings()
3258 hostapd_change_config_freq(iface->bss[0], iface->conf, in hostapd_fill_csa_settings()
3362 iface->conf->channel = freq_params->channel; in hostapd_switch_channel_fallback()
3363 iface->conf->secondary_channel = freq_params->sec_channel_offset; in hostapd_switch_channel_fallback()
3364 iface->conf->vht_oper_centr_freq_seg0_idx = vht_seg0_idx; in hostapd_switch_channel_fallback()
3365 iface->conf->vht_oper_centr_freq_seg1_idx = vht_seg1_idx; in hostapd_switch_channel_fallback()
3366 iface->conf->vht_oper_chwidth = vht_bw; in hostapd_switch_channel_fallback()
3367 iface->conf->ieee80211n = freq_params->ht_enabled; in hostapd_switch_channel_fallback()
3368 iface->conf->ieee80211ac = freq_params->vht_enabled; in hostapd_switch_channel_fallback()
3395 if (os_strcmp(ifname, hapd->conf->iface) == 0) in hostapd_get_iface()