From: Masashi Honma Date: Wed, 22 Jun 2016 11:23:03 +0000 (+0900) Subject: wireless: Use macro instead of number X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e98e915e11ad1efb11147122bd4932ec6b3425da;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git wireless: Use macro instead of number Use IEEE80211_MIN_ACTION_SIZE macro for robust management frame check. Signed-off-by: Masashi Honma Signed-off-by: Johannes Berg --- 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); }