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)
commit4bde0f7d1dca0a7d886997eb8dee3fb47a6484e4
tree81d9b826c357200fe054ff31e6199235524789d6
parenta71d62dbf3f0523b7a456333196cb26cf783fe92
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