Home | History | Annotate | Download | only in ap

Lines Matching refs:iface

53 static int wps_for_each(struct hostapd_iface *iface, void *ctx)
58 if (iface == NULL)
60 for (j = 0; j < iface->num_bss; j++) {
61 struct hostapd_data *hapd = iface->bss[j];
75 struct hostapd_iface *iface = hapd->iface;
79 if (iface->interfaces == NULL ||
80 iface->interfaces->for_each_interface == NULL)
81 return wps_for_each(iface, &data);
82 return iface->interfaces->for_each_interface(iface->interfaces,
257 struct hostapd_iface *iface = eloop_data;
260 if (iface->interfaces == NULL ||
261 iface->interfaces->reload_config(iface) < 0) {
348 if (hapd->iface->config_fname == NULL)
350 len = os_strlen(hapd->iface->config_fname) + 5;
354 os_snprintf(tmp_fname, len, "%s-new", hapd->iface->config_fname);
356 oconf = fopen(hapd->iface->config_fname, "r");
496 if (rename(tmp_fname, hapd->iface->config_fname) < 0) {
508 eloop_register_timeout(0, 100000, wps_reload_config, hapd->iface,
702 static int get_uuid_cb(struct hostapd_iface *iface, void *ctx)
707 if (iface == NULL)
709 for (j = 0; j < iface->num_bss; j++) {
710 struct hostapd_data *hapd = iface->bss[j];
721 static const u8 * get_own_uuid(struct hostapd_iface *iface)
724 if (iface->interfaces == NULL ||
725 iface->interfaces->for_each_interface == NULL)
728 iface->interfaces->for_each_interface(iface->interfaces, get_uuid_cb,
734 static int count_interface_cb(struct hostapd_iface *iface, void *ctx)
742 static int interface_count(struct hostapd_iface *iface)
745 if (iface->interfaces == NULL ||
746 iface->interfaces->for_each_interface == NULL)
748 iface->interfaces->for_each_interface(iface->interfaces,
803 uuid = get_own_uuid(hapd->iface);
961 cfg.dualband = interface_count(hapd->iface) > 1;