Lines Matching defs:hapd_iface
429 struct hostapd_iface *hapd_iface;
495 wpa_s->ap_iface = hapd_iface = os_zalloc(sizeof(*wpa_s->ap_iface));
496 if (hapd_iface == NULL)
498 hapd_iface->owner = wpa_s;
499 hapd_iface->drv_flags = wpa_s->drv_flags;
500 hapd_iface->probe_resp_offloads = wpa_s->probe_resp_offloads;
501 hapd_iface->extended_capa = wpa_s->extended_capa;
502 hapd_iface->extended_capa_mask = wpa_s->extended_capa_mask;
503 hapd_iface->extended_capa_len = wpa_s->extended_capa_len;
534 hapd_iface->num_bss = conf->num_bss;
535 hapd_iface->bss = os_calloc(conf->num_bss,
537 if (hapd_iface->bss == NULL) {
543 hapd_iface->bss[i] =
544 hostapd_alloc_bss_data(hapd_iface, conf,
546 if (hapd_iface->bss[i] == NULL) {
551 hapd_iface->bss[i]->msg_ctx = wpa_s;
552 hapd_iface->bss[i]->msg_ctx_parent = wpa_s->parent;
553 hapd_iface->bss[i]->public_action_cb = ap_public_action_rx;
554 hapd_iface->bss[i]->public_action_cb_ctx = wpa_s;
555 hapd_iface->bss[i]->vendor_action_cb = ap_vendor_action_rx;
556 hapd_iface->bss[i]->vendor_action_cb_ctx = wpa_s;
557 hostapd_register_probereq_cb(hapd_iface->bss[i],
559 hapd_iface->bss[i]->wps_reg_success_cb = ap_wps_reg_success_cb;
560 hapd_iface->bss[i]->wps_reg_success_cb_ctx = wpa_s;
561 hapd_iface->bss[i]->wps_event_cb = ap_wps_event_cb;
562 hapd_iface->bss[i]->wps_event_cb_ctx = wpa_s;
563 hapd_iface->bss[i]->sta_authorized_cb = ap_sta_authorized_cb;
564 hapd_iface->bss[i]->sta_authorized_cb_ctx = wpa_s;
566 hapd_iface->bss[i]->p2p = wpa_s->global->p2p;
567 hapd_iface->bss[i]->p2p_group = wpas_p2p_group_init(wpa_s,
570 hapd_iface->bss[i]->setup_complete_cb = wpas_ap_configured_cb;
571 hapd_iface->bss[i]->setup_complete_cb_ctx = wpa_s;
574 os_memcpy(hapd_iface->bss[0]->own_addr, wpa_s->own_addr, ETH_ALEN);
575 hapd_iface->bss[0]->driver = wpa_s->driver;
576 hapd_iface->bss[0]->drv_priv = wpa_s->drv_priv;