Lines Matching refs:bss
141 hostapd_flush_old_stations(iface->bss[j], in hostapd_clear_old()
143 hostapd_broadcast_wep_clear(iface->bss[j]); in hostapd_clear_old()
148 radius_client_flush(iface->bss[j]->radius, 0); in hostapd_clear_old()
156 struct hostapd_data *hapd = iface->bss[0]; in hostapd_reload_config()
164 hostapd_reload_bss(iface->bss[j]); in hostapd_reload_config()
181 hapd = iface->bss[j]; in hostapd_reload_config()
195 hapd->conf = newconf->bss[j]; in hostapd_reload_config()
412 os_free(iface->bss); in hostapd_cleanup_iface()
508 struct hostapd_data *hapd = iface->bss[0]; in hostapd_validate_bssid_configuration()
527 if (is_zero_ether_addr(iface->conf->bss[j]->bssid)) { in hostapd_validate_bssid_configuration()
535 iface->conf->bss[j]->bssid[i] ^ in hostapd_validate_bssid_configuration()
600 if (hostapd_mac_comp(conf->bss[i]->bssid, a) == 0) { in mac_in_conf()
918 hapd->iface->bss[0]->own_addr) == in hostapd_setup_bss()
935 if (hostapd_if_add(hapd->iface->bss[0], WPA_IF_AP_BSS, in hostapd_setup_bss()
1140 struct hostapd_data *hapd = iface->bss[0]; in hostapd_tx_queue_params()
1198 if (conf->bss[0]->macaddr_acl == DENY_UNLESS_ACCEPTED) { in hostapd_set_acl()
1200 err = hostapd_set_acl_list(hapd, conf->bss[0]->accept_mac, in hostapd_set_acl()
1201 conf->bss[0]->num_accept_mac, in hostapd_set_acl()
1207 } else if (conf->bss[0]->macaddr_acl == ACCEPT_UNLESS_DENIED) { in hostapd_set_acl()
1209 err = hostapd_set_acl_list(hapd, conf->bss[0]->deny_mac, in hostapd_set_acl()
1210 conf->bss[0]->num_deny_mac, in hostapd_set_acl()
1245 struct hostapd_data *hapd = iface->bss[i]; in start_ctrl_iface()
1289 struct hostapd_data *hapd = iface->bss[0]; in setup_interface()
1314 iface->bss[i]->driver = hapd->driver; in setup_interface()
1315 iface->bss[i]->drv_priv = hapd->drv_priv; in setup_interface()
1394 wpa_msg(iface->bss[0]->msg_ctx, MSG_INFO, AP_EVENT_DISABLED); in setup_interface2()
1530 struct hostapd_data *hapd = iface->bss[0]; in hostapd_setup_interface_complete_sync()
1585 iface->bss[0]->conf->iface); in hostapd_setup_interface_complete_sync()
1633 hapd = iface->bss[j]; in hostapd_setup_interface_complete_sync()
1638 hapd = iface->bss[j]; in hostapd_setup_interface_complete_sync()
1647 hapd = iface->bss[0]; in hostapd_setup_interface_complete_sync()
1669 if (hostapd_init_wps_complete(iface->bss[j])) in hostapd_setup_interface_complete_sync()
1703 wpa_msg(iface->bss[0]->msg_ctx, MSG_INFO, AP_EVENT_ENABLED); in hostapd_setup_interface_complete_sync()
1708 iface->bss[0]->conf->iface); in hostapd_setup_interface_complete_sync()
1741 struct hostapd_data *hapd = iface->bss[0]; in hostapd_setup_interface_complete()
1781 iface->bss[0]->conf->iface); in hostapd_setup_interface_complete()
1790 iface->bss[0]->conf->iface); in hostapd_setup_interface_complete()
1796 iface->bss[0]->conf->iface); in hostapd_setup_interface_complete()
1836 iface->bss[0]->conf->iface); in hostapd_setup_interface()
1858 struct hostapd_bss_config *bss) in hostapd_alloc_bss_data() argument
1868 hapd->conf = bss; in hostapd_alloc_bss_data()
1915 hostapd_bss_deinit(iface->bss[j]); in hostapd_interface_deinit()
1925 __func__, iface->bss[j]); in hostapd_interface_free()
1926 os_free(iface->bss[j]); in hostapd_interface_free()
1963 hapd_iface->bss = os_calloc(conf->num_bss, in hostapd_init()
1965 if (hapd_iface->bss == NULL) in hostapd_init()
1969 hapd = hapd_iface->bss[i] = in hostapd_init()
1971 conf->bss[i]); in hostapd_init()
1986 os_free(hapd_iface->bss); in hostapd_init()
2002 struct hostapd_data *hapd = iface->bss[j]; in ifname_in_use()
2048 struct hostapd_bss_config *bss; in hostapd_interface_init_bss() local
2061 ifname = conf->bss[0]->iface; in hostapd_interface_init_bss()
2070 iface->conf->bss, iface->conf->num_bss + 1, in hostapd_interface_init_bss()
2072 tmp_bss = os_realloc_array(iface->bss, iface->num_bss + 1, in hostapd_interface_init_bss()
2075 iface->bss = tmp_bss; in hostapd_interface_init_bss()
2077 iface->conf->bss = tmp_conf; in hostapd_interface_init_bss()
2084 bss = iface->conf->bss[iface->conf->num_bss] = conf->bss[0]; in hostapd_interface_init_bss()
2087 hapd = hostapd_alloc_bss_data(iface, iface->conf, bss); in hostapd_interface_init_bss()
2093 iface->conf->last_bss = bss; in hostapd_interface_init_bss()
2094 iface->bss[iface->num_bss] = hapd; in hostapd_interface_init_bss()
2099 conf->bss[0] = NULL; in hostapd_interface_init_bss()
2112 if (iface->bss[bss_idx]->conf->logger_stdout_level > 0) in hostapd_interface_init_bss()
2113 iface->bss[bss_idx]->conf->logger_stdout_level--; in hostapd_interface_init_bss()
2116 if (iface->conf->bss[bss_idx]->iface[0] == '\0' && in hostapd_interface_init_bss()
2117 !hostapd_drv_none(iface->bss[bss_idx])) { in hostapd_interface_init_bss()
2140 driver = iface->bss[0]->driver; in hostapd_interface_deinit_free()
2141 drv_priv = iface->bss[0]->drv_priv; in hostapd_interface_deinit_free()
2147 iface->bss[0]->drv_priv = NULL; in hostapd_interface_deinit_free()
2166 hapd_iface->bss[j]->drv_priv); in hostapd_deinit_driver()
2167 if (hapd_iface->bss[j]->drv_priv == drv_priv) in hostapd_deinit_driver()
2168 hapd_iface->bss[j]->drv_priv = NULL; in hostapd_deinit_driver()
2178 if (hapd_iface->bss[0]->drv_priv != NULL) { in hostapd_enable_iface()
2180 hapd_iface->conf->bss[0]->iface); in hostapd_enable_iface()
2185 hapd_iface->conf->bss[0]->iface); in hostapd_enable_iface()
2188 hostapd_set_security_params(hapd_iface->conf->bss[j], 1); in hostapd_enable_iface()
2200 hostapd_deinit_driver(hapd_iface->bss[0]->driver, in hostapd_enable_iface()
2201 hapd_iface->bss[0]->drv_priv, in hostapd_enable_iface()
2215 hapd_iface->conf->bss[0]->iface); in hostapd_reload_iface()
2217 hostapd_set_security_params(hapd_iface->conf->bss[j], 1); in hostapd_reload_iface()
2224 hostapd_reload_bss(hapd_iface->bss[j]); in hostapd_reload_iface()
2239 if (hapd_iface->bss[0]->drv_priv == NULL) { in hostapd_disable_iface()
2241 hapd_iface->conf->bss[0]->iface); in hostapd_disable_iface()
2245 wpa_msg(hapd_iface->bss[0]->msg_ctx, MSG_INFO, AP_EVENT_DISABLED); in hostapd_disable_iface()
2246 driver = hapd_iface->bss[0]->driver; in hostapd_disable_iface()
2247 drv_priv = hapd_iface->bss[0]->drv_priv; in hostapd_disable_iface()
2255 struct hostapd_data *hapd = hapd_iface->bss[j]; in hostapd_disable_iface()
2268 hapd_iface->bss[0]->conf->iface); in hostapd_disable_iface()
2302 struct hostapd_bss_config *bss; in hostapd_config_alloc() local
2336 bss = conf->last_bss = conf->bss[0]; in hostapd_config_alloc()
2338 os_strlcpy(bss->iface, ifname, sizeof(bss->iface)); in hostapd_config_alloc()
2339 bss->ctrl_interface = os_strdup(ctrl_iface); in hostapd_config_alloc()
2340 if (bss->ctrl_interface == NULL) { in hostapd_config_alloc()
2359 hapd_iface->bss = os_calloc(conf->num_bss, in hostapd_data_alloc()
2361 if (hapd_iface->bss == NULL) in hostapd_data_alloc()
2365 hapd = hapd_iface->bss[i] = in hostapd_data_alloc()
2366 hostapd_alloc_bss_data(hapd_iface, conf, conf->bss[i]); in hostapd_data_alloc()
2370 os_free(hapd_iface->bss[i]); in hostapd_data_alloc()
2371 hapd_iface->bss[i] = NULL; in hostapd_data_alloc()
2373 os_free(hapd_iface->bss); in hostapd_data_alloc()
2374 hapd_iface->bss = NULL; in hostapd_data_alloc()
2435 hapd_iface->bss[0]->driver, in hostapd_add_iface()
2436 hapd_iface->bss[0]->drv_priv, in hostapd_add_iface()
2442 hapd = hapd_iface->bss[hapd_iface->num_bss - 1]; in hostapd_add_iface()
2443 hapd->driver = hapd_iface->bss[0]->driver; in hostapd_add_iface()
2444 hapd->drv_priv = hapd_iface->bss[0]->drv_priv; in hostapd_add_iface()
2445 os_memcpy(hapd->own_addr, hapd_iface->bss[0]->own_addr, in hostapd_add_iface()
2452 hapd_iface->bss[hapd_iface->num_bss - 1] = NULL; in hostapd_add_iface()
2475 if (!os_strcmp(interfaces->iface[i]->conf->bss[0]->iface, in hostapd_add_iface()
2493 if (conf && conf->bss) in hostapd_add_iface()
2494 os_strlcpy(conf->bss[0]->iface, buf, in hostapd_add_iface()
2495 sizeof(conf->bss[0]->iface)); in hostapd_add_iface()
2504 if (conf == NULL || conf->bss == NULL) { in hostapd_add_iface()
2521 hapd_iface->conf->bss[0]->iface); in hostapd_add_iface()
2529 if (hapd_iface->bss) { in hostapd_add_iface()
2531 hapd = hapd_iface->bss[i]; in hostapd_add_iface()
2539 __func__, hapd_iface->bss[i], in hostapd_add_iface()
2543 hapd_iface->bss[i] = NULL; in hostapd_add_iface()
2545 os_free(hapd_iface->bss); in hostapd_add_iface()
2546 hapd_iface->bss = NULL; in hostapd_add_iface()
2562 wpa_printf(MSG_INFO, "Remove BSS '%s'", iface->conf->bss[idx]->iface); in hostapd_remove_bss()
2566 struct hostapd_data *hapd = iface->bss[idx]; in hostapd_remove_bss()
2578 iface->bss[i] = iface->bss[i + 1]; in hostapd_remove_bss()
2580 hostapd_config_free_bss(iface->conf->bss[idx]); in hostapd_remove_bss()
2581 iface->conf->bss[idx] = NULL; in hostapd_remove_bss()
2586 iface->conf->bss[i] = iface->conf->bss[i + 1]; in hostapd_remove_bss()
2601 if (!os_strcmp(hapd_iface->conf->bss[0]->iface, buf)) { in hostapd_remove_iface()
2619 if (!os_strcmp(hapd_iface->conf->bss[j]->iface, buf)) { in hostapd_remove_iface()
2724 iface->conf->bss[0]->iface, hostapd_state_text(iface->state), in hostapd_set_state()
2735 if (iface->bss[i]->csa_in_progress) in hostapd_csa_in_progress()
2961 ret = hostapd_change_config_freq(iface->bss[0], iface->conf, in hostapd_fill_csa_settings()
2970 hostapd_change_config_freq(iface->bss[0], iface->conf, in hostapd_fill_csa_settings()
3087 hostapd_cleanup_cs_params(iface->bss[i]); in hostapd_switch_channel_fallback()
3105 struct hostapd_data *hapd = iface->bss[j]; in hostapd_get_iface()
3123 struct hostapd_data *hapd = iface->bss[i]; in hostapd_periodic_iface()