contrib/hostapd/hostapd/hostapd.c
static int hostapd_setup_interface(struct hostapd_iface *iface)
{
	int ret;

	ret = setup_interface(iface);
	if (ret) {
		wpa_printf(MSG_DEBUG, "%s: Unable to setup interface.",
			   iface->bss[0]->conf->iface);
		eloop_terminate();
		return -1;
	} else if (!hostapd_drv_none(iface->bss[0])) {
		wpa_printf(MSG_DEBUG, "%s: Setup of interface done.",
			   iface->bss[0]->conf->iface);
	}

	return 0;
}
/**
 * hostapd_setup_interface - Setup of an interface
 * @iface: Pointer to interface data.
 * Returns: 0 on success, -1 on failure
 *
 * Initializes the driver interface, validates the configuration,
 * and sets driver parameters based on the configuration.
 * Flushes old stations, sets the channel, encryption,
 * beacons, and WDS links based on the configuration.
 */
Setup of an interface
@iface: Pointer to interface data.
Returns: 0 on success, -1 on failure

Initializes the driver interface, validates the configuration,
and sets driver parameters based on the configuration.
Flushes old stations, sets the channel, encryption,
beacons, and WDS links based on the configuration.
Setup of an interface @iface : Pointer to interface data . Returns : 0 on success - 1 on failure Initializes the driver interface validates the configuration and sets driver parameters based on the configuration . Flushes old stations sets the channel encryption beacons and WDS links based on the configuration .
static int hostapd_setup_interface(struct hostapd_iface *iface)
{
	int ret;
	ret = setup_interface(iface);
	if (ret) {
		wpa_printf(MSG_DEBUG, "%s: Unable to setup interface.",
			   iface->bss[0]->conf->iface);
		eloop_terminate();
		return -1;
	} else if (!hostapd_drv_none(iface->bss[0])) {
		wpa_printf(MSG_DEBUG, "%s: Setup of interface done.",
			   iface->bss[0]->conf->iface);
	}
	return 0;
}
static int hostapd_setup_interface ( struct hostapd_iface * iface ) { int ret ; ret = setup_interface ( iface ) ; if ( ret ) { wpa_printf ( MSG_DEBUG , " " , iface -> bss [ 0 ] -> conf -> iface ) ; eloop_terminate ( ) ; return -1 ; } else if ( ! hostapd_drv_none ( iface -> bss [ 0 ] ) ) { wpa_printf ( MSG_DEBUG , " " , iface -> bss [ 0 ] -> conf -> iface ) ; } return 0 ; }
hostapd_setup_interface - Setup of an interface
 @iface: Pointer to interface data.
hostapd_setup_interface - Setup of an interface @iface : Pointer to interface data .