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