Search Linux Wireless

Re: [PATCH 5/5] libertas: fix WPA adhoc network creation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2009-05-22 at 20:09 -0400, Dan Williams wrote:
> 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!

Turns out v10 firmware now has this capability, but v9 and lower do not.
Just for the record.

Dan

> Signed-off-by: Dan Williams <dcbw@xxxxxxxxxx>
> 
> diff --git a/drivers/net/wireless/libertas/assoc.c b/drivers/net/wireless/libertas/assoc.c
> index cb73720..b9b3741 100644
> --- a/drivers/net/wireless/libertas/assoc.c
> +++ b/drivers/net/wireless/libertas/assoc.c
> @@ -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);
>  
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux