]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: report userspace SME connected event properly
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 17 Aug 2009 10:22:14 +0000 (12:22 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 20 Aug 2009 15:35:57 +0000 (11:35 -0400)
commit458bddc471ae1b1226292c33198139e95c0d9649
treebfa379d79861a1b2b11f26810873dc7a4dc8f847
parent3f010c58f36650c5d1ffc70ae5f4f179cc03f000
cfg80211: report userspace SME connected event properly

Instead of hacking the event reporting into the
__cfg80211_connect_result() function which is also
invoked by others, set up things correctly and then
invoke that function, so that it can do more sanity
checking.

Also, it is currently not possible to get a ROAMED
event from the userspace SME anyway since we send
out a DISCONNECTED event when it disassociates and
then a new CONNECTED event on the next association.

Thanks to Zhu Yi for pointing out that the code is
somewhat convoluted and doesn't warn when it should.

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