From: Johannes Berg <johannes@sipsolutions.net>
To: Tomas Winkler <tomasw@gmail.com>
Cc: "John W. Linville" <linville@tuxdriver.com>,
linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH] mac80211: clean up set_key callback
Date: Tue, 30 Dec 2008 01:32:40 +0100 [thread overview]
Message-ID: <1230597160.3116.74.camel@johannes> (raw)
In-Reply-To: <1ba2fa240812291417w6e99dd17t3ffc2973774ed824@mail.gmail.com> (sfid-20081229_231749_711526_6708F26B)
[-- Attachment #1: Type: text/plain, Size: 1089 bytes --]
On Tue, 2008-12-30 at 00:17 +0200, Tomas Winkler wrote:
> > @@ -3038,6 +3039,9 @@ static int iwl_mac_set_key(struct ieee80
> > int ret = 0;
> > u8 sta_id = IWL_INVALID_STATION;
> > u8 is_default_wep_key = 0;
> > + static const u8 bcast_addr[ETH_ALEN] =
> > + { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, };
> > + static const u8 *addr;
>
> > IWL_DEBUG_MAC80211("enter\n");
> >
> > @@ -3046,9 +3050,7 @@ static int iwl_mac_set_key(struct ieee80
> > return -EOPNOTSUPP;
> > }
> >
> > - if (is_zero_ether_addr(addr))
> > - /* only support pairwise keys */
> > - return -EOPNOTSUPP;
> > + addr = sta ? sta->addr : bcast_addr;
> >
>
> Please use this code instead in both iwlwifi drivers.
>
> +sta_id = sta ? iwl_find_station(priv, sta->addr) :
> priv->hw_params.bcast_sta_id;
> - sta_id = iwl_find_station(priv, addr);
Should probably be a separate patch though since this particular patch
isn't meant to change semantics here, I think.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2008-12-30 0:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-29 11:55 [PATCH] mac80211: clean up set_key callback Johannes Berg
2008-12-29 12:22 ` Michael Buesch
2008-12-29 22:17 ` Tomas Winkler
2008-12-30 0:32 ` Johannes Berg [this message]
2008-12-30 8:14 ` Tomas Winkler
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=1230597160.3116.74.camel@johannes \
--to=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=tomasw@gmail.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