From 3093055903bc6041055c54fc5b32ad0fd51a0e22 Mon Sep 17 00:00:00 2001 From: mentor Date: Sun, 11 Nov 2007 23:22:43 +0000 Subject: [PATCH] Stop ieee80211_node_leave from trying to be responsible for the caller's node reference git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2844 0192ed92-7a03-0410-a25b-9323aeb14dbd --- net80211/ieee80211_node.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/net80211/ieee80211_node.c b/net80211/ieee80211_node.c index f7ba73b..4ec0dc9 100644 --- a/net80211/ieee80211_node.c +++ b/net80211/ieee80211_node.c @@ -847,12 +847,6 @@ node_cleanup(struct ieee80211_node *ni) static void node_free(struct ieee80211_node *ni) { -#if 0 - /* We should 'cleanup' and then free'ing should be done automatically on decref */ - struct ieee80211com *ic = ni->ni_ic; - - ic->ic_node_cleanup(ni); -#endif KASSERT(ieee80211_node_refcnt(ni) == 0, ("node being free whilst still referenced")); if (ni->ni_challenge != NULL) @@ -1919,11 +1913,7 @@ ieee80211_node_leave(struct ieee80211_node *ni) */ ieee80211_sta_leave(ni); done: - /* - * Run a cleanup and then drop the caller's reference - */ ic->ic_node_cleanup(ni); - ieee80211_unref_node(&ni); } EXPORT_SYMBOL(ieee80211_node_leave);