Lines Matching defs:interfaces
1288 dpp_controller_set_params(hapd->iface->interfaces->dpp, value);
3605 for (i = 0; i < iface->interfaces->count; ++i) {
3606 struct hostapd_iface *h_iface = iface->interfaces->iface[i];
3643 for (i = 0; i < iface->interfaces->count; ++i) {
3644 struct hostapd_iface *h_iface = iface->interfaces->iface[i];
3653 /* Then, fully disable interfaces */
3654 for (i = 0; i < iface->interfaces->count; ++i) {
3655 struct hostapd_iface *h_iface = iface->interfaces->iface[i];
4425 res = dpp_bootstrap_gen(hapd->iface->interfaces->dpp, buf + 18);
4434 if (dpp_bootstrap_remove(hapd->iface->interfaces->dpp,
4440 uri = dpp_bootstrap_get_uri(hapd->iface->interfaces->dpp,
4450 reply_len = dpp_bootstrap_info(hapd->iface->interfaces->dpp,
4454 if (dpp_bootstrap_set(hapd->iface->interfaces->dpp,
4468 res = dpp_configurator_add(hapd->iface->interfaces->dpp,
4478 if (dpp_configurator_set(hapd->iface->interfaces->dpp,
4482 if (dpp_configurator_remove(hapd->iface->interfaces->dpp,
4490 hapd->iface->interfaces->dpp,
4513 dpp_controller_stop(hapd->iface->interfaces->dpp);
4848 hapd->iface->interfaces->ctrl_iface_group &&
4850 hapd->iface->interfaces->ctrl_iface_group) < 0) {
4931 hapd->iface->interfaces->ctrl_iface_group &&
4932 lchown(fname, -1, hapd->iface->interfaces->ctrl_iface_group) < 0) {
5013 static int hostapd_ctrl_iface_add(struct hapd_interfaces *interfaces,
5016 if (hostapd_add_iface(interfaces, buf) < 0) {
5024 static int hostapd_ctrl_iface_remove(struct hapd_interfaces *interfaces,
5027 if (hostapd_remove_iface(interfaces, buf) < 0) {
5035 static int hostapd_global_ctrl_iface_attach(struct hapd_interfaces *interfaces,
5039 return ctrl_iface_attach(&interfaces->global_ctrl_dst, from, fromlen,
5044 static int hostapd_global_ctrl_iface_detach(struct hapd_interfaces *interfaces,
5048 return ctrl_iface_detach(&interfaces->global_ctrl_dst, from, fromlen);
5052 static void hostapd_ctrl_iface_flush(struct hapd_interfaces *interfaces)
5074 dpp_global_clear(interfaces->dpp);
5076 interfaces->dpp_pb_bi = NULL;
5083 info = &interfaces->dpp_pb[i];
5096 hostapd_global_ctrl_iface_fst_attach(struct hapd_interfaces *interfaces,
5105 hapd = hostapd_get_iface(interfaces, ifname);
5124 hostapd_global_ctrl_iface_fst_detach(struct hapd_interfaces *interfaces,
5131 hapd = hostapd_get_iface(interfaces, ifname);
5148 hostapd_interfaces_get_hapd(struct hapd_interfaces *interfaces,
5153 for (i = 0; i < interfaces->count; i++) {
5154 struct hostapd_iface *iface = interfaces->iface[i];
5233 hostapd_global_ctrl_iface_interfaces(struct hapd_interfaces *interfaces,
5249 for (i = 0; i < interfaces->count; i++) {
5250 iface = interfaces->iface[i];
5278 hostapd_global_ctrl_iface_dup_network(struct hapd_interfaces *interfaces,
5294 src_hapd = hostapd_interfaces_get_hapd(interfaces, p_start);
5310 dst_hapd = hostapd_interfaces_get_hapd(interfaces, p_start);
5322 static int hostapd_global_ctrl_iface_ifname(struct hapd_interfaces *interfaces,
5331 hapd = hostapd_interfaces_get_hapd(interfaces, ifname);
5349 struct hapd_interfaces *interfaces = eloop_ctx;
5388 interfaces->ctrl_iface_cookie,
5402 if (os_memcmp(interfaces->ctrl_iface_cookie, lcookie,
5421 interfaces, buf + 7, pos, reply, reply_size,
5434 hostapd_ctrl_iface_flush(interfaces);
5436 if (hostapd_ctrl_iface_add(interfaces, buf + 4) < 0)
5439 if (hostapd_ctrl_iface_remove(interfaces, buf + 7) < 0)
5442 if (hostapd_global_ctrl_iface_attach(interfaces, &from,
5446 if (hostapd_global_ctrl_iface_attach(interfaces, &from,
5450 if (hostapd_global_ctrl_iface_detach(interfaces, &from,
5460 if (!hostapd_global_ctrl_iface_fst_attach(interfaces, buf + 11))
5465 if (!hostapd_global_ctrl_iface_fst_detach(interfaces, buf + 11))
5473 if (!hostapd_global_ctrl_iface_dup_network(interfaces,
5480 interfaces, buf + 10, reply, reply_size);
5724 void hostapd_global_ctrl_iface_deinit(struct hapd_interfaces *interfaces)
5731 if (interfaces->global_ctrl_sock > -1) {
5732 eloop_unregister_read_sock(interfaces->global_ctrl_sock);
5733 close(interfaces->global_ctrl_sock);
5734 interfaces->global_ctrl_sock = -1;
5736 fname = hostapd_global_ctrl_iface_path(interfaces);
5742 if (interfaces->global_iface_path &&
5743 rmdir(interfaces->global_iface_path) < 0) {
5751 interfaces->global_iface_path,
5758 os_free(interfaces->global_iface_path);
5759 interfaces->global_iface_path = NULL;
5761 dl_list_for_each_safe(dst, prev, &interfaces->global_ctrl_dst,
5850 hapd->iface->interfaces->global_ctrl_sock,
5851 &hapd->iface->interfaces->global_ctrl_dst,