]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc2d5316e8b67c8d90afd0a5cacdefb07352373df
treeca83faa924349b915ba10b6373154fe0e6b5f81b
parentde173051cdcab55db85348f8a470d84ab53ac3f2
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