aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/ieee80211.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h
index e526a8cecb70..923c478030a3 100644
--- a/include/linux/ieee80211.h
+++ b/include/linux/ieee80211.h
@@ -2192,10 +2192,10 @@ static inline u8 *ieee80211_get_DA(struct ieee80211_hdr *hdr)
2192} 2192}
2193 2193
2194/** 2194/**
2195 * ieee80211_is_robust_mgmt_frame - check if frame is a robust management frame 2195 * _ieee80211_is_robust_mgmt_frame - check if frame is a robust management frame
2196 * @hdr: the frame (buffer must include at least the first octet of payload) 2196 * @hdr: the frame (buffer must include at least the first octet of payload)
2197 */ 2197 */
2198static inline bool ieee80211_is_robust_mgmt_frame(struct ieee80211_hdr *hdr) 2198static inline bool _ieee80211_is_robust_mgmt_frame(struct ieee80211_hdr *hdr)
2199{ 2199{
2200 if (ieee80211_is_disassoc(hdr->frame_control) || 2200 if (ieee80211_is_disassoc(hdr->frame_control) ||
2201 ieee80211_is_deauth(hdr->frame_control)) 2201 ieee80211_is_deauth(hdr->frame_control))
@@ -2224,6 +2224,17 @@ static inline bool ieee80211_is_robust_mgmt_frame(struct ieee80211_hdr *hdr)
2224} 2224}
2225 2225
2226/** 2226/**
2227 * ieee80211_is_robust_mgmt_frame - check if skb contains a robust mgmt frame
2228 * @skb: the skb containing the frame, length will be checked
2229 */
2230static inline bool ieee80211_is_robust_mgmt_frame(struct sk_buff *skb)
2231{
2232 if (skb->len < 25)
2233 return false;
2234 return _ieee80211_is_robust_mgmt_frame((void *)skb->data);
2235}
2236
2237/**
2227 * ieee80211_is_public_action - check if frame is a public action frame 2238 * ieee80211_is_public_action - check if frame is a public action frame
2228 * @hdr: the frame 2239 * @hdr: the frame
2229 * @len: length of the frame 2240 * @len: length of the frame