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

login
register
mail settings
Submitter michael-dev@fami-braun.de
Date April 8, 2013, 4:18 p.m.
Message ID <1365437921-11715-4-git-send-email-michael-dev@fami-braun.de>
Download mbox | patch
Permalink /patch/234829/
State Superseded
Headers show

Comments

michael-dev@fami-braun.de - April 8, 2013, 4:18 p.m.
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(-)

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) {