diff options
author | John W. Linville <linville@tuxdriver.com> | 2012-06-19 14:41:22 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-06-19 14:41:22 -0400 |
commit | b3c911eeb47d08aada986f769b6a060794dfe9d0 (patch) | |
tree | 212209c15a26006a62da9252efe18f27f16a0a4a /drivers/net/wireless/mwifiex | |
parent | 43b03f1f6d6832d744918947d185a7aee89d1e0f (diff) | |
parent | daf67ce8cffd148308ae15c25fb06c1fc20c88f1 (diff) | |
download | blackbird-obmc-linux-b3c911eeb47d08aada986f769b6a060794dfe9d0.tar.gz blackbird-obmc-linux-b3c911eeb47d08aada986f769b6a060794dfe9d0.zip |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
Conflicts:
drivers/net/wireless/iwlwifi/dvm/testmode.c
drivers/net/wireless/iwlwifi/pcie/trans.c
Diffstat (limited to 'drivers/net/wireless/mwifiex')
-rw-r--r-- | drivers/net/wireless/mwifiex/uap_cmd.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/uap_cmd.c b/drivers/net/wireless/mwifiex/uap_cmd.c index 8173ab66066d..89f9a2a45de3 100644 --- a/drivers/net/wireless/mwifiex/uap_cmd.c +++ b/drivers/net/wireless/mwifiex/uap_cmd.c @@ -27,6 +27,17 @@ int mwifiex_set_secure_params(struct mwifiex_private *priv, struct cfg80211_ap_settings *params) { int i; + if (!params->privacy) { + bss_config->protocol = PROTOCOL_NO_SECURITY; + bss_config->key_mgmt = KEY_MGMT_NONE; + bss_config->wpa_cfg.length = 0; + priv->sec_info.wep_enabled = 0; + priv->sec_info.wpa_enabled = 0; + priv->sec_info.wpa2_enabled = 0; + + return 0; + } + switch (params->auth_type) { case NL80211_AUTHTYPE_OPEN_SYSTEM: bss_config->auth_mode = WLAN_AUTH_OPEN; |