rndis_wlan: do not set default_key if not WEP key
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>
Tue, 21 Dec 2010 20:44:12 +0000 (22:44 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 22 Dec 2010 20:43:30 +0000 (15:43 -0500)
commit0b578021745b61b2ff89f6bacbac5db08a9a8089
tree95f43724389d7f8c5b3c2d9219dcc9453f5762bc
parentbfe3850b0cfca6ba64395e2705d9a51cd044f374
rndis_wlan: do not set default_key if not WEP key

rndis_set_default_key did call add_wep_key to set default key on device, even
if key is WPA. This caused rndis_wlan not work with wpa_supplicant in nl80211
mode (causing disconnect from AP).

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rndis_wlan.c