]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: fix two buglets
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 7 Jul 2009 21:46:51 +0000 (23:46 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 24 Jul 2009 19:05:06 +0000 (15:05 -0400)
commit5ff94bb089e0f0135ffe715a142bf6dc84a7332d
tree81d9b826c357200fe054ff31e6199235524789d6
parent52e0efd424a61d8c823bc0a58bca3ca49bbcc72d
cfg80211: fix two buglets

This fixes two small bugs:
 1) the connect variable is already initialised, and the
    assignment to auth_type overwrites the previous setting
    with a wrong value
 2) when all authentication attempts fail, we need to report
    that we couldn't connect

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