mac80211: dont try to use existing sta for AP
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 2 Dec 2009 11:43:43 +0000 (12:43 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 22 Dec 2009 18:31:18 +0000 (13:31 -0500)
commit5d1ec85f00e999dba61bdcbd959d62439d418e56
treeca83faa924349b915ba10b6373154fe0e6b5f81b
parent5fba4af32ceeb935b3926714df9a64a33c2c9cf5
mac80211: dont try to use existing sta for AP

Clean out some cruft that could use an already existing
sta_info struct -- that case cannot happen. Also, there's
a bug there -- if allocation/insertion fails then it is
possible that we are left in a lingering state where
mac80211 waits for the AP, cfg80211 waits for mac80211,
but the AP has already replied. Since there's no way to
indicate an internal error, pretend there was a timeout,
i.e. that the AP never responded.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mlme.c