Lines Matching defs: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];
82 struct hostapd_iface *iface = hapd->iface;
87 if (iface->interfaces == NULL ||
88 iface->interfaces->for_each_interface == NULL)
89 return wps_for_each(iface, &data);
90 return iface->interfaces->for_each_interface(iface->interfaces,
280 struct hostapd_iface *iface = eloop_data;
283 if (iface->interfaces == NULL ||
284 iface->interfaces->reload_config(iface) < 0) {
299 if (eloop_deplete_timeout(0, 0, wps_reload_config, hapd->iface, NULL) ==
394 eloop_register_timeout(0, 100000, wps_reload_config, hapd->iface,
474 if (hapd->iface->config_fname == NULL)
476 len = os_strlen(hapd->iface->config_fname) + 5;
480 os_snprintf(tmp_fname, len, "%s-new", hapd->iface->config_fname);
482 oconf = fopen(hapd->iface->config_fname, "r");
606 if (rename(tmp_fname, hapd->iface->config_fname) < 0) {
618 eloop_register_timeout(0, 100000, wps_reload_config, hapd->iface,
883 static int get_uuid_cb(struct hostapd_iface *iface, void *ctx)
888 if (iface == NULL)
890 for (j = 0; j < iface->num_bss; j++) {
891 struct hostapd_data *hapd = iface->bss[j];
903 static const u8 * get_own_uuid(struct hostapd_iface *iface)
906 if (iface->interfaces == NULL ||
907 iface->interfaces->for_each_interface == NULL)
910 iface->interfaces->for_each_interface(iface->interfaces, get_uuid_cb,
916 static int count_interface_cb(struct hostapd_iface *iface, void *ctx)
924 static int interface_count(struct hostapd_iface *iface)
927 if (iface->interfaces == NULL ||
928 iface->interfaces->for_each_interface == NULL)
930 iface->interfaces->for_each_interface(iface->interfaces,
1001 uuid = get_own_uuid(hapd->iface);
1143 cfg.dualband = interface_count(hapd->iface) > 1;
1217 eloop_cancel_timeout(wps_reload_config, hapd->iface, NULL);
1840 hapd->own_addr, hapd->iface->freq);
1982 hapd->conf->wps_nfc_dev_pw_id, hapd->conf->iface, wps);
2010 hapd->conf->iface);