Lines Matching refs:vlan
787 struct hostapd_vlan *vlan = NULL; in ap_sta_bind_vlan() local
792 if (hapd->conf->ssid.vlan[0]) in ap_sta_bind_vlan()
793 iface = hapd->conf->ssid.vlan; in ap_sta_bind_vlan()
799 vlan = hapd->conf->vlan; in ap_sta_bind_vlan()
800 while (vlan) { in ap_sta_bind_vlan()
801 if (vlan->vlan_id == sta->vlan_id) in ap_sta_bind_vlan()
803 if (vlan->vlan_id == VLAN_ID_WILDCARD) in ap_sta_bind_vlan()
804 wildcard_vlan = vlan; in ap_sta_bind_vlan()
805 vlan = vlan->next; in ap_sta_bind_vlan()
807 if (!vlan) in ap_sta_bind_vlan()
808 vlan = wildcard_vlan; in ap_sta_bind_vlan()
809 if (vlan) in ap_sta_bind_vlan()
810 iface = vlan->ifname; in ap_sta_bind_vlan()
821 if (sta->vlan_id > 0 && vlan == NULL) { in ap_sta_bind_vlan()
828 } else if (sta->vlan_id > 0 && vlan->vlan_id == VLAN_ID_WILDCARD) { in ap_sta_bind_vlan()
829 vlan = vlan_add_dynamic(hapd, vlan, sta->vlan_id); in ap_sta_bind_vlan()
830 if (vlan == NULL) { in ap_sta_bind_vlan()
840 iface = vlan->ifname; in ap_sta_bind_vlan()
853 } else if (vlan && vlan->vlan_id == sta->vlan_id) { in ap_sta_bind_vlan()
854 if (vlan->dynamic_vlan > 0) { in ap_sta_bind_vlan()
855 vlan->dynamic_vlan++; in ap_sta_bind_vlan()