summaryrefslogtreecommitdiff
path: root/sys/net80211/ieee80211_node.h
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2004-11-02 02:15:50 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2004-11-02 02:15:50 +0000
commitfac4cd50f4d0c69a9899c2b9dbaf3d074a921d19 (patch)
tree4c6765d7b6660e96e0ddf1dcd76d3e3ff3348898 /sys/net80211/ieee80211_node.h
parente0cf47c0de721634dc585c0294b135312565215c (diff)
some changes merged in from netbsd. ieee80211_regdomain.# will be used
by sdr (software defined radios). ok deraadt@ millert@ damien@
Diffstat (limited to 'sys/net80211/ieee80211_node.h')
-rw-r--r--sys/net80211/ieee80211_node.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_node.h b/sys/net80211/ieee80211_node.h
index e1592c8303e..208d171fe4d 100644
--- a/sys/net80211/ieee80211_node.h
+++ b/sys/net80211/ieee80211_node.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211_node.h,v 1.1 2004/06/22 22:53:52 millert Exp $ */
+/* $OpenBSD: ieee80211_node.h,v 1.2 2004/11/02 02:15:49 reyk Exp $ */
/* $NetBSD: ieee80211_node.h,v 1.9 2004/04/30 22:57:32 dyoung Exp $ */
/*-
@@ -55,6 +55,23 @@ struct ieee80211_rateset {
u_int8_t rs_rates[IEEE80211_RATE_MAXSIZE];
};
+enum ieee80211_node_state {
+ IEEE80211_STA_CACHE, /* cached node */
+ IEEE80211_STA_BSS, /* ic->ic_bss, the network we joined */
+ IEEE80211_STA_AUTH, /* successfully authenticated */
+ IEEE80211_STA_ASSOC, /* successfully associated */
+ IEEE80211_STA_COLLECT /* This node remains in the cache while
+ * the driver sends a de-auth message;
+ * afterward it should be freed to make room
+ * for a new node.
+ */
+};
+
+#define ieee80211_node_newstate(__ni, __state) \
+ do { \
+ (__ni)->ni_state = (__state); \
+ } while (0)
+
/*
* Node specific information. Note that drivers are expected
* to derive from this structure to add device-specific per-node
@@ -110,6 +127,7 @@ struct ieee80211_node {
int ni_fails; /* failure count to associate */
int ni_inact; /* inactivity mark count */
int ni_txrate; /* index to ni_rates[] */
+ int ni_state;
u_int32_t *ni_challenge; /* shared-key challenge */
};