Home | History | Annotate | Download | only in ap

Lines Matching defs:hapd_iface

1019  * @hapd_iface: Pointer to interface data
1029 hostapd_alloc_bss_data(struct hostapd_iface *hapd_iface,
1042 hapd->iface = hapd_iface;
1094 int hostapd_enable_iface(struct hostapd_iface *hapd_iface)
1096 if (hapd_iface->bss[0]->drv_priv != NULL) {
1098 hapd_iface->conf->bss[0].iface);
1103 hapd_iface->conf->bss[0].iface);
1105 if (hapd_iface->interfaces == NULL ||
1106 hapd_iface->interfaces->driver_init == NULL ||
1107 hapd_iface->interfaces->driver_init(hapd_iface) ||
1108 hostapd_setup_interface(hapd_iface)) {
1109 hostapd_interface_deinit_free(hapd_iface);
1116 int hostapd_reload_iface(struct hostapd_iface *hapd_iface)
1121 hapd_iface->conf->bss[0].iface);
1122 for (j = 0; j < hapd_iface->num_bss; j++) {
1123 hostapd_flush_old_stations(hapd_iface->bss[j],
1129 radius_client_flush(hapd_iface->bss[j]->radius, 0);
1132 hostapd_reload_bss(hapd_iface->bss[j]);
1138 int hostapd_disable_iface(struct hostapd_iface *hapd_iface)
1145 if (hapd_iface == NULL)
1147 bss = hapd_iface->bss[0]->conf;
1148 driver = hapd_iface->bss[0]->driver;
1149 drv_priv = hapd_iface->bss[0]->drv_priv;
1152 for (j = 0; j < hapd_iface->num_bss; j++) {
1153 struct hostapd_data *hapd = hapd_iface->bss[j];
1162 hapd_iface->bss[0]->drv_priv = NULL;
1168 hostapd_cleanup_iface_partial(hapd_iface);
1181 struct hostapd_iface **iface, *hapd_iface;
1188 hapd_iface = interfaces->iface[interfaces->count] =
1189 os_zalloc(sizeof(*hapd_iface));
1190 if (hapd_iface == NULL) {
1196 hapd_iface->interfaces = interfaces;
1198 return hapd_iface;
1245 struct hostapd_iface *hapd_iface =
1249 hapd_iface->conf = conf;
1250 hapd_iface->num_bss = conf->num_bss;
1252 hapd_iface->bss = os_zalloc(conf->num_bss *
1254 if (hapd_iface->bss == NULL)
1258 hapd = hapd_iface->bss[i] =
1259 hostapd_alloc_bss_data(hapd_iface, conf,
1266 hapd_iface->interfaces = interfaces;
1268 return hapd_iface;
1275 struct hostapd_iface *hapd_iface = NULL;
1293 hapd_iface = hostapd_iface_alloc(interfaces);
1294 if (hapd_iface == NULL) {
1307 hapd_iface = hostapd_data_alloc(interfaces, conf);
1308 if (hapd_iface == NULL) {
1314 if (hapd_iface->interfaces &&
1315 hapd_iface->interfaces->ctrl_iface_init &&
1316 hapd_iface->interfaces->ctrl_iface_init(hapd_iface->bss[0])) {
1328 if (hapd_iface) {
1329 os_free(hapd_iface->bss[interfaces->count]);
1330 os_free(hapd_iface);
1338 struct hostapd_iface *hapd_iface;
1342 hapd_iface = interfaces->iface[i];
1343 if (hapd_iface == NULL)
1345 if (!os_strcmp(hapd_iface->conf->bss[0].iface, buf)) {
1347 hostapd_interface_deinit_free(hapd_iface);