linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 3.3] mwifiex: reset encryption mode flag before association
@ 2012-02-25  5:35 Bing Zhao
  2012-02-25  5:35 ` [PATCH 3.3] mwifiex: remove redundant scan operation Bing Zhao
  2012-02-27 18:23 ` [PATCH 3.3] mwifiex: reset encryption mode flag before association John W. Linville
  0 siblings, 2 replies; 6+ messages in thread
From: Bing Zhao @ 2012-02-25  5:35 UTC (permalink / raw)
  To: linux-wireless
  Cc: John W. Linville, Amitkumar Karwar, Kiran Divekar, Yogesh Powar,
	Avinash Patil, Frank Huang, Bing Zhao

From: Amitkumar Karwar <akarwar@marvell.com>

Recent commit
"mwifiex: clear previous security setting during association"
fixes association failure problems observed in some corner cases
by clearing previous security setting before each association.

We should reset encryption mode flag as well. This patch takes care
of it.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
---
 drivers/net/wireless/mwifiex/cfg80211.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/net/wireless/mwifiex/cfg80211.c b/drivers/net/wireless/mwifiex/cfg80211.c
index 8d8ee63..e4e6d7d 100644
--- a/drivers/net/wireless/mwifiex/cfg80211.c
+++ b/drivers/net/wireless/mwifiex/cfg80211.c
@@ -872,6 +872,7 @@ mwifiex_cfg80211_assoc(struct mwifiex_private *priv, size_t ssid_len, u8 *ssid,
 	priv->sec_info.wpa_enabled = false;
 	priv->sec_info.wpa2_enabled = false;
 	priv->wep_key_curr_index = 0;
+	priv->sec_info.encryption_mode = 0;
 	ret = mwifiex_set_encode(priv, NULL, 0, 0, 1);
 
 	if (mode == NL80211_IFTYPE_ADHOC) {
-- 
1.7.0.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-02-27 23:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-25  5:35 [PATCH 3.3] mwifiex: reset encryption mode flag before association Bing Zhao
2012-02-25  5:35 ` [PATCH 3.3] mwifiex: remove redundant scan operation Bing Zhao
2012-02-27 18:23   ` John W. Linville
2012-02-27 23:47     ` Bing Zhao
2012-02-27 18:23 ` [PATCH 3.3] mwifiex: reset encryption mode flag before association John W. Linville
2012-02-27 23:44   ` Bing Zhao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).