diff options
author | John W. Linville <linville@tuxdriver.com> | 2012-02-15 16:24:37 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-02-15 16:24:37 -0500 |
commit | ca994a36f585432458ead9133fcfe05440edbb7b (patch) | |
tree | be05512153a9cd5cbe1f1234bc09fd9cd388ec58 /drivers/net/wireless/mwifiex/cfg80211.c | |
parent | 12325280dfeba18164f9c47e226a40ab34e23ee7 (diff) | |
parent | 2504a6423b9ab4c36df78227055995644de19edb (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless
Conflicts:
net/mac80211/debugfs_sta.c
net/mac80211/sta_info.h
Diffstat (limited to 'drivers/net/wireless/mwifiex/cfg80211.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/cfg80211.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/cfg80211.c b/drivers/net/wireless/mwifiex/cfg80211.c index 478d2f12c024..8d8ee639fe56 100644 --- a/drivers/net/wireless/mwifiex/cfg80211.c +++ b/drivers/net/wireless/mwifiex/cfg80211.c | |||
@@ -867,7 +867,12 @@ mwifiex_cfg80211_assoc(struct mwifiex_private *priv, size_t ssid_len, u8 *ssid, | |||
867 | ret = mwifiex_set_rf_channel(priv, channel, | 867 | ret = mwifiex_set_rf_channel(priv, channel, |
868 | priv->adapter->channel_type); | 868 | priv->adapter->channel_type); |
869 | 869 | ||
870 | ret = mwifiex_set_encode(priv, NULL, 0, 0, 1); /* Disable keys */ | 870 | /* As this is new association, clear locally stored |
871 | * keys and security related flags */ | ||
872 | priv->sec_info.wpa_enabled = false; | ||
873 | priv->sec_info.wpa2_enabled = false; | ||
874 | priv->wep_key_curr_index = 0; | ||
875 | ret = mwifiex_set_encode(priv, NULL, 0, 0, 1); | ||
871 | 876 | ||
872 | if (mode == NL80211_IFTYPE_ADHOC) { | 877 | if (mode == NL80211_IFTYPE_ADHOC) { |
873 | /* "privacy" is set only for ad-hoc mode */ | 878 | /* "privacy" is set only for ad-hoc mode */ |
@@ -912,6 +917,7 @@ mwifiex_cfg80211_assoc(struct mwifiex_private *priv, size_t ssid_len, u8 *ssid, | |||
912 | dev_dbg(priv->adapter->dev, | 917 | dev_dbg(priv->adapter->dev, |
913 | "info: setting wep encryption" | 918 | "info: setting wep encryption" |
914 | " with key len %d\n", sme->key_len); | 919 | " with key len %d\n", sme->key_len); |
920 | priv->wep_key_curr_index = sme->key_idx; | ||
915 | ret = mwifiex_set_encode(priv, sme->key, sme->key_len, | 921 | ret = mwifiex_set_encode(priv, sme->key, sme->key_len, |
916 | sme->key_idx, 0); | 922 | sme->key_idx, 0); |
917 | } | 923 | } |