Move the node reference up that pins the WDS peer
authormtaylor <mtaylor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Tue, 29 Jan 2008 07:00:09 +0000 (07:00 +0000)
committermtaylor <mtaylor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Tue, 29 Jan 2008 07:00:09 +0000 (07:00 +0000)
commit602be360fc7fbd4dd278263dc8465752b975f2b5
tree321e80f5c083ae306f6a97f15dda7f40e80fdaad
parentdead14502d0949c1c72320207fb5a96c8e03cf2b
Move the node reference up that pins the WDS peer
node in the node table.  The node reference was
being taken in any path where the wds node was found
and not just when the wds node was first added.

This would have caused wds nodes to get inflated
reference counts, and be leaked on bss reset when
nodes were flushed from the node tables.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3300 0192ed92-7a03-0410-a25b-9323aeb14dbd
net80211/ieee80211_proto.c