diff mbox

[3/6] vlan_id can be greater than MAX_VLAN_ID, as it no longer means untagged/tagged vlan id

Message ID 1365437921-11715-4-git-send-email-michael-dev@fami-braun.de
State Superseded
Headers show

Commit Message

michael-dev April 8, 2013, 4:18 p.m. UTC
From: Michael Braun <michael-dev@fami-braun.de>

Signed-hostap: Michael Braun <michael-dev@fami-braun.de>
---
 src/ap/ieee802_1x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/src/ap/ieee802_1x.c b/src/ap/ieee802_1x.c
index d9c21a8..d0ec176 100644
--- a/src/ap/ieee802_1x.c
+++ b/src/ap/ieee802_1x.c
@@ -303,7 +303,7 @@  void ieee802_1x_tx_key(struct hostapd_data *hapd, struct sta_info *sta)
 
 #ifndef CONFIG_NO_VLAN
 	vlan_id = sta->vlan_id;
-	if (vlan_id < 0 || vlan_id > MAX_VLAN_ID)
+	if (vlan_id < 0)
 		vlan_id = 0;
 
 	if (vlan_id) {