Lines Matching refs:hapd_iface
658 static int hostapd_enable_iface_cb(struct hostapd_iface *hapd_iface) in hostapd_enable_iface_cb() argument
662 wpa_printf(MSG_DEBUG, "Enable interface %s", hapd_iface->conf->bss[0]->iface); in hostapd_enable_iface_cb()
664 bss = hapd_iface->bss[0]; in hostapd_enable_iface_cb()
668 if (hostapd_config_check(hapd_iface->conf, 1) < 0) { in hostapd_enable_iface_cb()
681 if (hostapd_setup_interface(hapd_iface)) { in hostapd_enable_iface_cb()
689 static int hostapd_disable_iface_cb(struct hostapd_iface *hapd_iface) in hostapd_disable_iface_cb() argument
694 wpa_msg(hapd_iface->bss[0]->msg_ctx, MSG_INFO, AP_EVENT_DISABLED); in hostapd_disable_iface_cb()
696 hapd_iface->driver_ap_teardown = !!(hapd_iface->drv_flags in hostapd_disable_iface_cb()
700 for (j = 0; j < hapd_iface->num_bss; j++) { in hostapd_disable_iface_cb()
701 hostapd_cleanup_cs_params(hapd_iface->bss[j]); in hostapd_disable_iface_cb()
708 for (j = 0; j < hapd_iface->num_bss; j++) { in hostapd_disable_iface_cb()
709 hapd = hapd_iface->bss[j]; in hostapd_disable_iface_cb()
716 hostapd_cleanup_iface_partial(hapd_iface); in hostapd_disable_iface_cb()
718 wpa_printf(MSG_DEBUG, "Interface %s disabled", hapd_iface->bss[0]->conf->iface); in hostapd_disable_iface_cb()
719 hostapd_set_state(hapd_iface, HAPD_IFACE_DISABLED); in hostapd_disable_iface_cb()
720 supplicant_send_wifi_mgmt_ap_status(hapd_iface, in hostapd_disable_iface_cb()
723 hostapd_config_free(hapd_iface->conf); in hostapd_disable_iface_cb()
724 hapd_iface->conf = hapd_iface->interfaces->config_read_cb(hapd_iface->config_fname); in hostapd_disable_iface_cb()
725 for (j = 0; j < hapd_iface->num_bss; j++) { in hostapd_disable_iface_cb()
726 hapd = hapd_iface->bss[j]; in hostapd_disable_iface_cb()
727 hapd->iconf = hapd_iface->conf; in hostapd_disable_iface_cb()
728 hapd->conf = hapd_iface->conf->bss[j]; in hostapd_disable_iface_cb()
729 hapd->driver = hapd_iface->conf->driver; in hostapd_disable_iface_cb()