mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 21:21:09 +00:00
libertas: fix WPA adhoc network creation
Oddly enough, the firmware's JOIN/START commands don't appear to have any facility for setting custom IEs, thus the started adhoc network doesn't advertise its WPA capability in the beacon. Whee! Signed-off-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
822ac03a07
commit
2fa7a98fc9
1 changed files with 5 additions and 3 deletions
|
@ -711,11 +711,13 @@ static int lbs_adhoc_start(struct lbs_private *priv,
|
||||||
|
|
||||||
/* set capability info */
|
/* set capability info */
|
||||||
tmpcap = WLAN_CAPABILITY_IBSS;
|
tmpcap = WLAN_CAPABILITY_IBSS;
|
||||||
if (assoc_req->secinfo.wep_enabled) {
|
if (assoc_req->secinfo.wep_enabled ||
|
||||||
lbs_deb_join("ADHOC_START: WEP enabled, setting privacy on\n");
|
assoc_req->secinfo.WPAenabled ||
|
||||||
|
assoc_req->secinfo.WPA2enabled) {
|
||||||
|
lbs_deb_join("ADHOC_START: WEP/WPA enabled, privacy on\n");
|
||||||
tmpcap |= WLAN_CAPABILITY_PRIVACY;
|
tmpcap |= WLAN_CAPABILITY_PRIVACY;
|
||||||
} else
|
} 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);
|
cmd.capability = cpu_to_le16(tmpcap);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue