From d1e826534316b050cd147c75a4eecf3208aba13d Mon Sep 17 00:00:00 2001 From: Damien Bergamini Date: Sat, 28 Jul 2007 11:09:04 +0000 Subject: add a couple of fields to the ieee80211_node structure to manage RSN states. those fields will be put in a separate structure (ieee80211_rsna) in a future cleanup phase to save some space. add a ni_port_valid field to manage PAE state. in pre-RSNA networks, this field will be set to 1 after a successful open authentication. in RSNA networks, this field will be set to 1 after a successful 4-way handshake. --- sys/net80211/ieee80211_node.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/sys/net80211/ieee80211_node.h b/sys/net80211/ieee80211_node.h index a1495998c28..3b6e5f8c109 100644 --- a/sys/net80211/ieee80211_node.h +++ b/sys/net80211/ieee80211_node.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_node.h,v 1.17 2007/07/06 18:18:43 damien Exp $ */ +/* $OpenBSD: ieee80211_node.h,v 1.18 2007/07/28 11:09:03 damien Exp $ */ /* $NetBSD: ieee80211_node.h,v 1.9 2004/04/30 22:57:32 dyoung Exp $ */ /*- @@ -114,9 +114,18 @@ struct ieee80211_node { /* RSN */ u_int ni_group_cipher; + enum ieee80211_cipher ni_pairwise_cipher; u_int ni_pairwise_cipherset; + enum ieee80211_akm ni_akm; u_int ni_akmset; u_int16_t ni_rsncaps; + int ni_port_valid; + u_int8_t ni_nonce[EAPOL_KEY_NONCE_LEN]; + u_int64_t ni_replaycnt; + u_int8_t *ni_rsnie; + struct ieee80211_ptk ni_ptk; + u_int8_t ni_ptk_ok; + u_int8_t ni_key_count; /* others */ u_int16_t ni_associd; /* assoc response */ -- cgit v1.2.3