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

michael-dev at fami-braun.de michael-dev at fami-braun.de
Thu Apr 11 05:47:45 EDT 2013


From: Michael Braun <michael-dev at fami-braun.de>

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

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



More information about the HostAP mailing list