Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150645
b: refs/heads/master
c: 2fa7a98
h: refs/heads/master
i:
  150643: c76cfaa
v: v3
  • Loading branch information
Dan Williams authored and John W. Linville committed Jun 3, 2009
1 parent 43cfb54 commit 68d048a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 822ac03a07cc9e714727a6d49ea050b92483f82a
refs/heads/master: 2fa7a98fc96abe431e5d54d97104cdca197391fa
8 changes: 5 additions & 3 deletions trunk/drivers/net/wireless/libertas/assoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -711,11 +711,13 @@ static int lbs_adhoc_start(struct lbs_private *priv,

/* set capability info */
tmpcap = WLAN_CAPABILITY_IBSS;
if (assoc_req->secinfo.wep_enabled) {
lbs_deb_join("ADHOC_START: WEP enabled, setting privacy on\n");
if (assoc_req->secinfo.wep_enabled ||
assoc_req->secinfo.WPAenabled ||
assoc_req->secinfo.WPA2enabled) {
lbs_deb_join("ADHOC_START: WEP/WPA enabled, privacy on\n");
tmpcap |= WLAN_CAPABILITY_PRIVACY;
} else
lbs_deb_join("ADHOC_START: WEP disabled, setting privacy off\n");
lbs_deb_join("ADHOC_START: WEP disabled, privacy off\n");

cmd.capability = cpu_to_le16(tmpcap);

Expand Down

0 comments on commit 68d048a

Please sign in to comment.