Search Linux Wireless

Re: [RFC 02/11] mac80211: 802.11w - CCMP for management frames

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

 



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: 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