]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
mwifiex: clear previous security setting during association
authorAmitkumar Karwar <akarwar@marvell.com>
Fri, 10 Feb 2012 02:32:22 +0000 (18:32 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 15 Feb 2012 18:56:15 +0000 (13:56 -0500)
commit6670f15b1f6858a43b292d8ab64464e9f085a6aa
treeba8cb3ade8da94277d134dc3d9c2d4081f9459ee
parent216c57b214bd621335ff698b475f6db2802502dc
mwifiex: clear previous security setting during association

Driver maintains different flags for WEP, WPA, WPA2 security modes.
Appropriate flag is set using security information provided in
connect request. mwifiex_is_network_compatible() routine uses them
to check if driver's setting is compatible with AP. Association is
aborted if the routine fails.

For some corner cases, it is observed that association is failed
even for valid security information based on association history.
This patch fixes the problem by clearing previous security setting
during each association.

We should set WEP key provided in connect request as default tx key.
This missing change is also added here.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/cfg80211.c