linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dan Williams <dcbw@redhat.com>
To: Tomas Winkler <tomas.winkler@intel.com>
Cc: linville@tuxdriver.com, johannes@sipsolutions.net,
	yi.zhu@intel.com, linux-wireless@vger.kernel.org,
	Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Subject: Re: [PATCH 2/4] mac80211: update the authentication method
Date: Tue, 24 Jun 2008 07:03:02 -0400	[thread overview]
Message-ID: <1214305382.12270.0.camel@localhost.localdomain> (raw)
In-Reply-To: <1214303881-31525-3-git-send-email-tomas.winkler@intel.com>

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

Acked-by: Dan Williams <dcbw@redhat.com>

> ---
>  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;
>  }
>  


  parent reply	other threads:[~2008-06-24 11:04 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-24 10:37 [PATCH 0/4] Minor WEXT fixes Tomas Winkler
2008-06-24 10:37 ` [PATCH 1/4] mac80211: don't return -EINVAL upon iwconfig wlan0 rts auto Tomas Winkler
2008-06-24 10:37   ` [PATCH 2/4] mac80211: update the authentication method Tomas Winkler
2008-06-24 10:38     ` [PATCH 3/4] mac80211: add last beacon time in scan list Tomas Winkler
2008-06-24 10:38       ` [PATCH 4/4] mac80211: add phy information to giwname Tomas Winkler
2008-06-24 10:42         ` Michael Buesch
2008-06-24 10:45           ` Johannes Berg
2008-06-24 10:54           ` Tomas Winkler
2008-06-24 11:03             ` Johannes Berg
2008-06-24 11:08               ` Tomas Winkler
2008-06-24 11:08             ` Michael Buesch
2008-06-24 11:28               ` Tomas Winkler
2008-06-24 14:03             ` Kalle Valo
2008-06-24 16:59               ` Tomas Winkler
2008-06-25 17:55                 ` Kalle Valo
2008-06-24 10:47       ` [PATCH 3/4] mac80211: add last beacon time in scan list Johannes Berg
2008-06-24 11:09         ` Dan Williams
2008-06-24 11:19           ` Johannes Berg
2008-06-24 11:12         ` Tomas Winkler
2008-06-24 10:49     ` [PATCH 2/4] mac80211: update the authentication method Johannes Berg
2008-06-24 11:03     ` Dan Williams [this message]
2008-06-24 10:47   ` [PATCH 1/4] mac80211: don't return -EINVAL upon iwconfig wlan0 rts auto Johannes Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1214305382.12270.0.camel@localhost.localdomain \
    --to=dcbw@redhat.com \
    --cc=emmanuel.grumbach@intel.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=tomas.winkler@intel.com \
    --cc=yi.zhu@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).