Search Linux Wireless

Re: [PATCH 3/5] mac80211: fix key restricted/open display

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

 



On Thursday 15 March 2007 23:28, Hong Liu wrote:
> +	if (erq->flags & (IW_ENCODE_OPEN | IW_ENCODE_RESTRICTED))
> +		if (sdata->type == IEEE80211_IF_TYPE_STA ||
> +		    sdata->type == IEEE80211_IF_TYPE_IBSS)
> +			sdata->u.sta.auth_algs =
> +				(erq->flags & IW_ENCODE_RESTRICTED) ?
> +				IEEE80211_AUTH_ALG_SHARED_KEY :
> +				IEEE80211_AUTH_ALG_OPEN;
> +
This is not right because encrypted access points often do not require shared 
key authentication to associate. In fact, some cannot or refuse to use shared 
key authentication and your patch prevents retrying with a different 
authentication algorithm.

IW_ENCODE_RESTRICTED simply means that the interface should not make/accept 
unencrypted connections. In client mode without wpa_supplicant, the AP 
selection code already refuses to select any APs without encryption enabled 
if the default key is set. In adhoc mode, there's no such check, but I'm not 
sure how much it matters.

-Michael Wu

Attachment: pgpQXtxmsd6uH.pgp
Description: PGP signature


[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