diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-07-16 12:01:42 -0400 | 
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-07-16 12:01:42 -0400 | 
| commit | 8626e4a42675ff9903f7d4fbf14d8ebc11b5926c (patch) | |
| tree | c631dfe2854cb1382a5d8f5aa11b071762ddf27d /drivers/net/wireless/mwifiex/uap_cmd.c | |
| parent | a8d8f02cf0c379693762107afe812b9e52090e39 (diff) | |
| parent | 9249e17fe094d853d1ef7475dd559a2cc7e23d42 (diff) | |
| download | olio-linux-3.10-8626e4a42675ff9903f7d4fbf14d8ebc11b5926c.tar.xz olio-linux-3.10-8626e4a42675ff9903f7d4fbf14d8ebc11b5926c.zip  | |
Merge commit '9249e17fe094d853d1ef7475dd559a2cc7e23d42' into nfs-for-3.6
Resolve conflicts with the VFS atomic open and sget changes.
Conflicts:
	fs/nfs/nfs4proc.c
Diffstat (limited to 'drivers/net/wireless/mwifiex/uap_cmd.c')
| -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 8173ab66066..89f9a2a45de 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;  |