Stop ieee80211_node_leave from trying to be responsible for the caller's node reference
authormentor <mentor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Sun, 11 Nov 2007 23:22:43 +0000 (23:22 +0000)
committermentor <mentor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Sun, 11 Nov 2007 23:22:43 +0000 (23:22 +0000)
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2844 0192ed92-7a03-0410-a25b-9323aeb14dbd

net80211/ieee80211_node.c

index f7ba73b277147ae4bdd734ed881826246d042d7b..4ec0dc9bbcb528e290722a913724fc801b6e8ff6 100644 (file)
@@ -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);