Home | History | Annotate | Download | only in ap

Lines Matching defs:hapd

492 				  int create, struct hostapd_data *hapd)
496 struct hapd_interfaces *hapd_global = hapd->iface->interfaces;
545 struct hostapd_data *hapd)
549 struct hapd_interfaces *hapd_glob = hapd->iface->interfaces;
600 static void vlan_newlink(char *ifname, struct hostapd_data *hapd)
604 struct hostapd_vlan *vlan = hapd->conf->vlan;
605 char *tagged_interface = hapd->conf->ssid.vlan_tagged_interface;
606 int vlan_naming = hapd->conf->ssid.vlan_naming;
614 if (hapd->conf->vlan_bridge[0]) {
616 hapd->conf->vlan_bridge,
629 hapd))
650 ret == 0, hapd))
656 ret == 0, hapd))
664 hapd))
676 static void vlan_dellink(char *ifname, struct hostapd_data *hapd)
680 struct hostapd_vlan *first, *prev, *vlan = hapd->conf->vlan;
681 char *tagged_interface = hapd
682 int vlan_naming = hapd->conf->ssid.vlan_naming;
690 if (hapd->conf->vlan_bridge[0]) {
692 hapd->conf->vlan_bridge,
704 hapd_put_dynamic_iface(br_name, vlan->ifname, hapd))
720 hapd))
726 hapd))
731 hapd_put_dynamic_iface(NULL, br_name, hapd) &&
738 hapd->conf->vlan = vlan->next;
754 struct hostapd_data *hapd)
789 vlan_dellink(ifname, hapd);
791 vlan_newlink(ifname, hapd);
806 struct hostapd_data *hapd = eloop_ctx;
833 vlan_read_ifnames(h, plen, 0, hapd);
836 vlan_read_ifnames(h, plen, 1, hapd);
853 full_dynamic_vlan_init(struct hostapd_data *hapd)
863 vlan_set_name_type(hapd->conf->ssid.vlan_naming ==
889 if (eloop_register_read_sock(priv->s, vlan_event_receive, hapd, NULL))
911 int vlan_setup_encryption_dyn(struct hostapd_data *hapd,
923 hostapd_drv_set_key(dyn_vlan, hapd, WPA_ALG_WEP, NULL, i,
937 static int vlan_dynamic_add(struct hostapd_data *hapd,
942 if (hostapd_vlan_if_add(hapd, vlan->ifname)) {
963 static void vlan_dynamic_remove(struct hostapd_data *hapd,
972 hostapd_vlan_if_remove(hapd, vlan->ifname)) {
979 vlan_dellink(vlan->ifname, hapd);
987 int vlan_init(struct hostapd_data *hapd)
990 hapd->full_dynamic_vlan = full_dynamic_vlan_init(hapd);
993 if (hapd->conf->ssid.dynamic_vlan != DYNAMIC_VLAN_DISABLED &&
994 !hapd->conf->vlan) {
1006 hapd->conf->iface);
1007 vlan->next = hapd->conf->vlan;
1008 hapd->conf->vlan = vlan;
1011 if (vlan_dynamic_add(hapd, hapd->conf->vlan))
1018 void vlan_deinit(struct hostapd_data *hapd)
1020 vlan_dynamic_remove(hapd, hapd->conf->vlan);
1023 full_dynamic_vlan_deinit(hapd->full_dynamic_vlan);
1028 struct hostapd_vlan * vlan_add_dynamic(struct hostapd_data *hapd,
1064 if (hostapd_vlan_if_add(hapd, n->ifname)) {
1069 n->next = hapd->conf->vlan;
1070 hapd->conf->vlan = n;
1080 int vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id)
1089 vlan = hapd->conf->vlan;
1102 hostapd_vlan_if_remove(hapd, vlan->ifname);