Linux wireless drivers development
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Jouni Malinen <j@w1.fi>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [RFC 02/11] mac80211: 802.11w - CCMP for management frames
Date: Fri, 02 Jan 2009 11:04:57 +0100	[thread overview]
Message-ID: <1230890697.3272.6.camel@johannes> (raw)
In-Reply-To: <20081231154203.845811912@w1.fi>

[-- Attachment #1: Type: text/plain, Size: 806 bytes --]

On Wed, 2008-12-31 at 17:38 +0200, Jouni Malinen wrote:

>  /**
> + * ieee80211_is_robust_mgmt_frame - check if frame is a robust management frame
> + * @hdr: the frame (buffer must include at least the first octet of payload)
> + */
> +static inline bool ieee80211_is_robust_mgmt_frame(struct ieee80211_hdr *hdr)
> +{
> +	if (ieee80211_is_disassoc(hdr->frame_control) ||
> +	    ieee80211_is_deauth(hdr->frame_control))
> +		return true;
> +
> +	if (ieee80211_is_action(hdr->frame_control)) {
> +		/*
> +		 * Action frames, excluding Public Action frames, are Robust
> +		 * Management Frames.
> +		 */
> +		u8 *category = ((u8 *) hdr) + 24;
> +		return *category != WLAN_CATEGORY_PUBLIC;
> +	}
> +
> +	return false;
> +}

Should that be in include/linux/ieee80211.h?

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

  reply	other threads:[~2009-01-02 10:04 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-31 15:38 [RFC 00/11] mac80211: Add support for IEEE 802.11w (MFP) Jouni Malinen
2008-12-31 15:38 ` [RFC 01/11] mac80211: 802.11w - STA flag for MFP Jouni Malinen
2008-12-31 15:38 ` [RFC 02/11] mac80211: 802.11w - CCMP for management frames Jouni Malinen
2009-01-02 10:04   ` Johannes Berg [this message]
2009-01-02 10:06     ` Johannes Berg
2008-12-31 15:38 ` [RFC 03/11] mac80211: 802.11w - Add BIP (AES-128-CMAC) Jouni Malinen
2008-12-31 15:38 ` [RFC 04/11] mac80211: 802.11w - Use " Jouni Malinen
2008-12-31 15:38 ` [RFC 05/11] mac80211: 802.11w - WEXT parameter for setting mgmt cipher Jouni Malinen
2008-12-31 15:38 ` [RFC 06/11] mac80211: 802.11w - WEXT configuration for IGTK Jouni Malinen
2008-12-31 15:38 ` [RFC 07/11] mac80211: 802.11w - Configuration of MFP disabled/optional/required Jouni Malinen
2008-12-31 15:38 ` [RFC 08/11] mac80211: 802.11w - SA Query processing Jouni Malinen
2008-12-31 15:38 ` [RFC 09/11] mac80211: 802.11w - Do not force Action frames to disable encryption Jouni Malinen
2008-12-31 15:38 ` [RFC 10/11] mac80211: 802.11w - Drop unprotected robust management frames if MFP is used Jouni Malinen
2008-12-31 15:38 ` [RFC 11/11] mac80211: 802.11w - Implement Association Comeback processing Jouni Malinen
2009-01-02 10:12 ` [RFC 00/11] mac80211: Add support for IEEE 802.11w (MFP) 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=1230890697.3272.6.camel@johannes \
    --to=johannes@sipsolutions.net \
    --cc=j@w1.fi \
    --cc=linux-wireless@vger.kernel.org \
    /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