projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f151d9d
)
wireless: Use macro instead of number
author
Masashi Honma
<masashi.honma@gmail.com>
Wed, 22 Jun 2016 11:23:03 +0000
(20:23 +0900)
committer
Johannes Berg
<johannes@sipsolutions.net>
Thu, 30 Jun 2016 10:06:18 +0000
(12:06 +0200)
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>
include/linux/ieee80211.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/ieee80211.h
b/include/linux/ieee80211.h
index b118744d33823224716a295e6a37990541480b82..1daebb307e6e29e92d0b467414a685766ffc1ff9 100644
(file)
--- 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);
}