Home | History | Annotate | Download | only in ap

Lines Matching refs:hapd_iface

1070  * @hapd_iface: Pointer to interface data
1080 hostapd_alloc_bss_data(struct hostapd_iface *hapd_iface,
1093 hapd->iface = hapd_iface;
1145 int hostapd_enable_iface(struct hostapd_iface *hapd_iface)
1147 if (hapd_iface->bss[0]->drv_priv != NULL) {
1149 hapd_iface->conf->bss[0].iface);
1154 hapd_iface->conf->bss[0].iface);
1156 if (hapd_iface->interfaces == NULL ||
1157 hapd_iface->interfaces->driver_init == NULL ||
1158 hapd_iface->interfaces->driver_init(hapd_iface) ||
1159 hostapd_setup_interface(hapd_iface)) {
1160 hostapd_interface_deinit_free(hapd_iface);
1167 int hostapd_reload_iface(struct hostapd_iface *hapd_iface)
1172 hapd_iface->conf->bss[0].iface);
1173 for (j = 0; j < hapd_iface->num_bss; j++) {
1174 hostapd_flush_old_stations(hapd_iface->bss[j],
1180 radius_client_flush(hapd_iface->bss[j]->radius, 0);
1183 hostapd_reload_bss(hapd_iface->bss[j]);
1189 int hostapd_disable_iface(struct hostapd_iface *hapd_iface)
1196 if (hapd_iface == NULL)
1198 bss = hapd_iface->bss[0]->conf;
1199 driver = hapd_iface->bss[0]->driver;
1200 drv_priv = hapd_iface->bss[0]->drv_priv;
1203 for (j = 0; j < hapd_iface->num_bss; j++) {
1204 struct hostapd_data *hapd = hapd_iface->bss[j];
1213 hapd_iface->bss[0]->drv_priv = NULL;
1219 hostapd_cleanup_iface_partial(hapd_iface);
1232 struct hostapd_iface **iface, *hapd_iface;
1239 hapd_iface = interfaces->iface[interfaces->count] =
1240 os_zalloc(sizeof(*hapd_iface));
1241 if (hapd_iface == NULL) {
1247 hapd_iface->interfaces = interfaces;
1249 return hapd_iface;
1296 struct hostapd_iface *hapd_iface =
1300 hapd_iface->conf = conf;
1301 hapd_iface->num_bss = conf->num_bss;
1303 hapd_iface->bss = os_zalloc(conf->num_bss *
1305 if (hapd_iface->bss == NULL)
1309 hapd = hapd_iface->bss[i] =
1310 hostapd_alloc_bss_data(hapd_iface, conf,
1317 hapd_iface->interfaces = interfaces;
1319 return hapd_iface;
1326 struct hostapd_iface *hapd_iface = NULL;
1344 hapd_iface = hostapd_iface_alloc(interfaces);
1345 if (hapd_iface == NULL) {
1358 hapd_iface = hostapd_data_alloc(interfaces, conf);
1359 if (hapd_iface == NULL) {
1365 if (hapd_iface->interfaces &&
1366 hapd_iface->interfaces->ctrl_iface_init &&
1367 hapd_iface->interfaces->ctrl_iface_init(hapd_iface->bss[0])) {
1379 if (hapd_iface) {
1380 os_free(hapd_iface->bss[interfaces->count]);
1381 os_free(hapd_iface);
1389 struct hostapd_iface *hapd_iface;
1393 hapd_iface = interfaces->iface[i];
1394 if (hapd_iface == NULL)
1396 if (!os_strcmp(hapd_iface->conf->bss[0].iface, buf)) {
1398 hostapd_interface_deinit_free(hapd_iface);