mwifiex: reset encryption mode flag before association
[deliverable/linux.git] / drivers / net / wireless / mwifiex / cfg80211.c
index 5b2972b43b0e23ee62e94d255146d6be1787634d..2210a0f9af2da52c0f761841e586f18d7ee75480 100644 (file)
@@ -846,6 +846,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) {
This page took 0.030185 seconds and 5 git commands to generate.