Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311373
b: refs/heads/master
c: 6ddcd46
h: refs/heads/master
i:
  311371: a9e5b41
v: v3
  • Loading branch information
Avinash Patil authored and John W. Linville committed Jun 12, 2012
1 parent d9c2ef9 commit 524b910
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3b4a39af75fed985f12d295786d397a9d8e9fd2f
refs/heads/master: 6ddcd46463aa66855f1f8e74de454740a5f4aef4
11 changes: 11 additions & 0 deletions trunk/drivers/net/wireless/mwifiex/uap_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 524b910

Please sign in to comment.