aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBlaž Bačnik <bacnik@gmail.com>2009-09-30 17:44:04 (GMT)
committerJouni Malinen <j@w1.fi>2009-11-22 19:00:46 (GMT)
commit9329344a9e9a9bfe685592fa3c193924b002ff73 (patch)
tree2b4e92802077e4fbb7b06507b63137367b8205a7
parent361da0679659a27d0c63bb8933193c83ada0f4bc (diff)
downloadhostap-06-9329344a9e9a9bfe685592fa3c193924b002ff73.zip
hostap-06-9329344a9e9a9bfe685592fa3c193924b002ff73.tar.gz
hostap-06-9329344a9e9a9bfe685592fa3c193924b002ff73.tar.bz2
Fix VLAN ID validation check to use the new VLAN ID
When checking the validity of VLAN ID based on RADIUS-based ACL or accept_mac_file, the assigned vlan_id, not the old sta->vlan_id (likely zero) needs to be used. (cherry picked from commit 1066c1ee3c8a786f688a46f9d3be8ebfd27580de)
-rw-r--r--hostapd/ieee802_11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hostapd/ieee802_11.c b/hostapd/ieee802_11.c
index 12767a5..9d9b8fb 100644
--- a/hostapd/ieee802_11.c
+++ b/hostapd/ieee802_11.c
@@ -585,7 +585,7 @@ static void handle_auth(struct hostapd_data *hapd, struct ieee80211_mgmt *mgmt,
if (vlan_id > 0) {
if (hostapd_get_vlan_id_ifname(hapd->conf->vlan,
- sta->vlan_id) == NULL) {
+ vlan_id) == NULL) {
hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_RADIUS,
HOSTAPD_LEVEL_INFO, "Invalid VLAN ID "
"%d received from RADIUS server",