mirror of
https://github.com/proski/madwifi
synced 2024-11-25 07:49:43 +03:00
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
This commit is contained in:
parent
c0c7d05e2f
commit
3093055903
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user