summaryrefslogtreecommitdiff
path: root/sys/net80211/ieee80211_node.c
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2009-01-27 17:02:30 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2009-01-27 17:02:30 +0000
commitd50c70d2334f54d790dc84646d73c81fffba6ee9 (patch)
treeeb521b2ee5b562ae9bb4c5b11941d81fb8e094e7 /sys/net80211/ieee80211_node.c
parent9e861e3330fa31a35561fa2a79264616a4faff3e (diff)
unbreak SMALL_KERNEL builds by adding missing #ifndef IEEE80211_STA_ONLY
pointed out by krw@
Diffstat (limited to 'sys/net80211/ieee80211_node.c')
-rw-r--r--sys/net80211/ieee80211_node.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c
index 4f43cd26ffe..ff6ff062f7e 100644
--- a/sys/net80211/ieee80211_node.c
+++ b/sys/net80211/ieee80211_node.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211_node.c,v 1.51 2009/01/26 21:55:58 damien Exp $ */
+/* $OpenBSD: ieee80211_node.c,v 1.52 2009/01/27 17:02:29 damien Exp $ */
/* $NetBSD: ieee80211_node.c,v 1.14 2004/05/09 09:18:47 dyoung Exp $ */
/*-
@@ -759,9 +759,11 @@ ieee80211_setup_node(struct ieee80211com *ic,
ieee80211_node_newstate(ni, IEEE80211_STA_CACHE);
ni->ni_ic = ic; /* back-pointer */
+#ifndef IEEE80211_STA_ONLY
IFQ_SET_MAXLEN(&ni->ni_savedq, IEEE80211_PS_MAX_QUEUE);
timeout_set(&ni->ni_eapol_to, ieee80211_eapol_timeout, ni);
timeout_set(&ni->ni_sa_query_to, ieee80211_sa_query_timeout, ni);
+#endif
/*
* Note we don't enable the inactive timer when acting
@@ -1033,16 +1035,20 @@ ieee80211_free_node(struct ieee80211com *ic, struct ieee80211_node *ni)
panic("freeing bss node");
DPRINTF(("%s\n", ether_sprintf(ni->ni_macaddr)));
+#ifndef IEEE80211_STA_ONLY
timeout_del(&ni->ni_eapol_to);
timeout_del(&ni->ni_sa_query_to);
+#endif
IEEE80211_AID_CLR(ni->ni_associd, ic->ic_aid_bitmap);
RB_REMOVE(ieee80211_tree, &ic->ic_tree, ni);
ic->ic_nnodes--;
+#ifndef IEEE80211_STA_ONLY
if (!IF_IS_EMPTY(&ni->ni_savedq)) {
IF_PURGE(&ni->ni_savedq);
if (ic->ic_set_tim != NULL)
(*ic->ic_set_tim)(ic, ni->ni_associd, 0);
}
+#endif
if (RB_EMPTY(&ic->ic_tree))
ic->ic_inact_timer = 0;
(*ic->ic_node_free)(ic, ni);
@@ -1410,8 +1416,10 @@ ieee80211_node_leave_rsn(struct ieee80211com *ic, struct ieee80211_node *ni)
ni->ni_flags &= ~IEEE80211_NODE_PMK;
ni->ni_rsn_gstate = RSNA_IDLE;
- timeout_del(&ni->ni_sa_query_to);
+#ifndef IEEE80211_STA_ONLY
timeout_del(&ni->ni_eapol_to);
+ timeout_del(&ni->ni_sa_query_to);
+#endif
ni->ni_rsn_retries = 0;
ni->ni_flags &= ~IEEE80211_NODE_TXRXPROT;
ni->ni_port_valid = 0;