Search Linux Wireless

Re: [PATCH 2/4] mac80211: update the authentication method

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

 



On Tue, 2008-06-24 at 13:37 +0300, Tomas Winkler wrote:
> From: Emmanuel Grumbach <emmanuel.grumbach@xxxxxxxxx>
> 
> This patch updates the authentication method upon giwencode ioctl.

Out of curiosity, are you using this?? Or are you just trying to
increase WEXT coverage for some reason? Anyway, it seems like it should
be there.

> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@xxxxxxxxx>
> Signed-off-by: Tomas Winkler <tomas.winkler@xxxxxxxxx>

Acked-by: Johannes Berg <johannes@xxxxxxxxxxxxxxxx>
> ---
>  net/mac80211/wext.c |   13 +++++++++++++
>  1 files changed, 13 insertions(+), 0 deletions(-)
> 
> diff --git a/net/mac80211/wext.c b/net/mac80211/wext.c
> index 53f8767..308b953 100644
> --- a/net/mac80211/wext.c
> +++ b/net/mac80211/wext.c
> @@ -952,6 +952,19 @@ static int ieee80211_ioctl_giwencode(struct net_device *dev,
>  	erq->length = sdata->keys[idx]->conf.keylen;
>  	erq->flags |= IW_ENCODE_ENABLED;
>  
> +	if (sdata->vif.type == IEEE80211_IF_TYPE_STA) {
> +		struct ieee80211_if_sta *ifsta = &sdata->u.sta;
> +		switch (ifsta->auth_alg) {
> +		case WLAN_AUTH_OPEN:
> +		case WLAN_AUTH_LEAP:
> +			erq->flags |= IW_ENCODE_OPEN;
> +			break;
> +		case WLAN_AUTH_SHARED_KEY:
> +			erq->flags |= IW_ENCODE_RESTRICTED;
> +			break;
> +		}
> +	}
> +
>  	return 0;
>  }
>  

Attachment: signature.asc
Description: This is a digitally signed message part


[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