summaryrefslogtreecommitdiffstats
path: root/include/linux/ieee80211.h
diff options
context:
space:
mode:
authorMasashi Honma2016-06-22 13:23:03 +0200
committerJohannes Berg2016-06-30 12:06:18 +0200
commite98e915e11ad1efb11147122bd4932ec6b3425da (patch)
tree14276e051aa98efb0d8a19783c5188e3d02a2a97 /include/linux/ieee80211.h
parentnl80211: improve nl80211_parse_mesh_config type checking (diff)
downloadkernel-qcow2-linux-e98e915e11ad1efb11147122bd4932ec6b3425da.tar.gz
kernel-qcow2-linux-e98e915e11ad1efb11147122bd4932ec6b3425da.tar.xz
kernel-qcow2-linux-e98e915e11ad1efb11147122bd4932ec6b3425da.zip
wireless: Use macro instead of number
Use IEEE80211_MIN_ACTION_SIZE macro for robust management frame check. Signed-off-by: Masashi Honma <masashi.honma@gmail.com> Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Diffstat (limited to 'include/linux/ieee80211.h')
-rw-r--r--include/linux/ieee80211.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h
index b118744d3382..1daebb307e6e 100644
--- a/include/linux/ieee80211.h
+++ b/include/linux/ieee80211.h
@@ -2464,7 +2464,7 @@ static inline bool _ieee80211_is_robust_mgmt_frame(struct ieee80211_hdr *hdr)
*/
static inline bool ieee80211_is_robust_mgmt_frame(struct sk_buff *skb)
{
- if (skb->len < 25)
+ if (skb->len < IEEE80211_MIN_ACTION_SIZE)
return false;
return _ieee80211_is_robust_mgmt_frame((void *)skb->data);
}