Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e98e915e authored by Masashi Honma's avatar Masashi Honma Committed by Johannes Berg
Browse files

wireless: Use macro instead of number



Use IEEE80211_MIN_ACTION_SIZE macro for robust management frame check.

Signed-off-by: default avatarMasashi Honma <masashi.honma@gmail.com>
Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
parent f151d9db
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}