Home | History | Annotate | Download | only in ap

Lines Matching defs:vlan

692 	struct hostapd_vlan *vlan = NULL;
696 * Do not proceed furthur if the vlan id remains same. We do not want
697 * duplicate dynamic vlan entries.
703 * During 1x reauth, if the vlan id changes, then remove the old id and
710 if (sta->ssid->vlan[0])
711 iface = sta->ssid->vlan;
717 vlan = hapd->conf->vlan;
718 while (vlan) {
719 if (vlan->vlan_id == sta->vlan_id)
721 if (vlan->vlan_id == VLAN_ID_WILDCARD)
722 wildcard_vlan = vlan;
723 vlan = vlan->next;
725 if (!vlan)
726 vlan = wildcard_vlan;
727 if (vlan)
728 iface = vlan->ifname;
731 if (sta->vlan_id > 0 && vlan == NULL) {
733 HOSTAPD_LEVEL_DEBUG, "could not find VLAN for "
737 } else if (sta->vlan_id > 0 && vlan->vlan_id == VLAN_ID_WILDCARD) {
738 vlan = vlan_add_dynamic(hapd, vlan, sta->vlan_id);
739 if (vlan == NULL) {
743 "dynamic VLAN interface for vlan_id=%d",
748 iface = vlan->ifname;
753 "configure encryption for dynamic VLAN "
759 HOSTAPD_LEVEL_DEBUG, "added new dynamic VLAN "
761 } else if (vlan && vlan->vlan_id == sta->vlan_id) {
763 vlan->dynamic_vlan++;
767 "dynamic VLAN interface '%s'", iface);
772 * VLAN interface. This is only used for static WEP
780 "configure encryption for VLAN "
791 wpa_printf(MSG_INFO, "Failed to update VLAN-ID for WPA");