aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/pmksa_cache.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2006-10-06 18:34:11 (GMT)
committerJouni Malinen <j@w1.fi>2006-10-06 18:34:11 (GMT)
commitbfa5271607bffa0e6f79feab1e9a739046309155 (patch)
tree34311c9a9613429180878d6fc796d4e8586906b4 /hostapd/pmksa_cache.c
parent791fb50ba739ac0786e52d566bc847375c2bb0f6 (diff)
downloadhostap-history-bfa5271607bffa0e6f79feab1e9a739046309155.zip
hostap-history-bfa5271607bffa0e6f79feab1e9a739046309155.tar.gz
hostap-history-bfa5271607bffa0e6f79feab1e9a739046309155.tar.bz2
Store EAP type and VLAN-ID in PMKSA cache entry. Add EAP type into
some of the IEEE 802.1X log messages. (from Devicescape)
Diffstat (limited to 'hostapd/pmksa_cache.c')
-rw-r--r--hostapd/pmksa_cache.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hostapd/pmksa_cache.c b/hostapd/pmksa_cache.c
index 27674bf..3ec2769 100644
--- a/hostapd/pmksa_cache.c
+++ b/hostapd/pmksa_cache.c
@@ -170,6 +170,9 @@ static void pmksa_cache_from_eapol_data(struct rsn_pmksa_cache_entry *entry,
ieee802_1x_copy_radius_class(&entry->radius_class,
&eapol->radius_class);
+
+ entry->eap_type_authsrv = eapol->eap_type_authsrv;
+ entry->vlan_id = eapol->sta->vlan_id;
}
@@ -198,6 +201,9 @@ void pmksa_cache_to_eapol_data(struct rsn_pmksa_cache_entry *entry,
wpa_printf(MSG_DEBUG, "Copied %lu Class attribute(s) from "
"PMKSA", (unsigned long) eapol->radius_class.count);
}
+
+ eapol->eap_type_authsrv = entry->eap_type_authsrv;
+ eapol->sta->vlan_id = entry->vlan_id;
}