• Home
  • Raw
  • Download

Lines Matching refs:vlan

893 	struct hostapd_vlan *vlan;  in ap_sta_get_free_vlan_id()  local
897 for (vlan = hapd->conf->vlan; vlan; vlan = vlan->next) { in ap_sta_get_free_vlan_id()
898 if (vlan->vlan_id == vlan_id) { in ap_sta_get_free_vlan_id()
910 struct hostapd_vlan *vlan = NULL, *wildcard_vlan = NULL; in ap_sta_set_vlan() local
929 for (vlan = hapd->conf->vlan; vlan; vlan = vlan->next) { in ap_sta_set_vlan()
930 if (vlan->vlan_id == VLAN_ID_WILDCARD) in ap_sta_set_vlan()
933 if (!vlan) { in ap_sta_set_vlan()
943 for (vlan = hapd->conf->vlan; vlan; vlan = vlan->next) { in ap_sta_set_vlan()
944 if (!vlan_compare(&vlan->vlan_desc, vlan_desc)) in ap_sta_set_vlan()
946 if (vlan->vlan_id == VLAN_ID_WILDCARD) in ap_sta_set_vlan()
947 wildcard_vlan = vlan; in ap_sta_set_vlan()
949 if (vlan) { in ap_sta_set_vlan()
950 vlan_id = vlan->vlan_id; in ap_sta_set_vlan()
952 vlan = wildcard_vlan; in ap_sta_set_vlan()
971 if (vlan && vlan->vlan_id == VLAN_ID_WILDCARD) { in ap_sta_set_vlan()
972 vlan = vlan_add_dynamic(hapd, vlan, vlan_id, vlan_desc); in ap_sta_set_vlan()
973 if (vlan == NULL) { in ap_sta_set_vlan()
989 vlan->ifname); in ap_sta_set_vlan()
990 } else if (vlan && vlan->dynamic_vlan > 0) { in ap_sta_set_vlan()
991 vlan->dynamic_vlan++; in ap_sta_set_vlan()
996 vlan->ifname); in ap_sta_set_vlan()
1001 sta->vlan_desc = vlan ? &vlan->vlan_desc : NULL; in ap_sta_set_vlan()
1014 struct hostapd_vlan *vlan = NULL; in ap_sta_bind_vlan() local
1019 if (hapd->conf->ssid.vlan[0]) in ap_sta_bind_vlan()
1020 iface = hapd->conf->ssid.vlan; in ap_sta_bind_vlan()
1023 for (vlan = hapd->conf->vlan; vlan; vlan = vlan->next) { in ap_sta_bind_vlan()
1024 if (vlan->vlan_id == sta->vlan_id) in ap_sta_bind_vlan()
1027 if (vlan) in ap_sta_bind_vlan()
1028 iface = vlan->ifname; in ap_sta_bind_vlan()
1039 if (sta->vlan_id > 0 && vlan == NULL) { in ap_sta_bind_vlan()
1046 } else if (vlan && vlan->dynamic_vlan > 0) { in ap_sta_bind_vlan()
1047 vlan->dynamic_vlan++; in ap_sta_bind_vlan()