From: Julian Calaby <julian.calaby@gmail.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: John Linville <linville@tuxdriver.com>,
linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH] mac80211: pass station instead of address to update_tkip_key
Date: Wed, 20 Jan 2010 01:06:19 +1100 [thread overview]
Message-ID: <646765f41001190606w389a7702ja5891fa60458c24a@mail.gmail.com> (raw)
In-Reply-To: <1263907302.12555.27.camel@johannes.local>
On Wed, Jan 20, 2010 at 00:21, Johannes Berg <johannes@sipsolutions.net> wrote:
> When a TKIP key is updated, we should pass the station
> pointer instead of just the address, since drivers can
> use that to store their own data.
>
> Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
> ---
>
> --- wireless-testing.orig/net/mac80211/driver-trace.h 2010-01-16 20:18:21.000000000 +0100
> +++ wireless-testing/net/mac80211/driver-trace.h 2010-01-19 14:20:57.000000000 +0100
> @@ -332,25 +332,25 @@ TRACE_EVENT(drv_set_key,
> TRACE_EVENT(drv_update_tkip_key,
> TP_PROTO(struct ieee80211_local *local,
> struct ieee80211_key_conf *conf,
> - const u8 *address, u32 iv32),
> + struct sta_info *sta, u32 iv32),
>
> TP_ARGS(local, conf, address, iv32),
Should you change address to sta?
> TP_STRUCT__entry(
> LOCAL_ENTRY
> - __array(u8, addr, 6)
> + STA_ENTRY
> __field(u32, iv32)
> ),
>
> TP_fast_assign(
> LOCAL_ASSIGN;
> - memcpy(__entry->addr, address, 6);
> + STA_ASSIGN;
> __entry->iv32 = iv32;
> ),
>
> TP_printk(
> - LOCAL_PR_FMT " addr:%pM iv32:%#x",
> - LOCAL_PR_ARG, __entry->addr, __entry->iv32
> + LOCAL_PR_FMT STA_PR_FMT " iv32:%#x",
> + LOCAL_PR_ARG,STA_PR_ARG, __entry->iv32
> )
> );
>
Thanks,
--
Julian Calaby
Email: julian.calaby@gmail.com
.Plan: http://sites.google.com/site/juliancalaby/
next prev parent reply other threads:[~2010-01-19 14:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-19 13:21 [PATCH] mac80211: pass station instead of address to update_tkip_key Johannes Berg
2010-01-19 14:06 ` Julian Calaby [this message]
2010-01-19 17:53 ` Johannes Berg
2010-01-20 10:11 ` [PATCH v2] " Johannes Berg
2010-01-21 10:40 ` [PATCH v3] mac80211: pass vif and station " 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=646765f41001190606w389a7702ja5891fa60458c24a@mail.gmail.com \
--to=julian.calaby@gmail.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.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