aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/mlme.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r--net/mac80211/mlme.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index ae97d7e9945d..eb1832aa1fe5 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -60,7 +60,7 @@
60 60
61#define ERP_INFO_USE_PROTECTION BIT(1) 61#define ERP_INFO_USE_PROTECTION BIT(1)
62 62
63/* mgmt header + 1 byte action code */ 63/* mgmt header + 1 byte category code */
64#define IEEE80211_MIN_ACTION_SIZE (24 + 1) 64#define IEEE80211_MIN_ACTION_SIZE (24 + 1)
65 65
66#define IEEE80211_ADDBA_PARAM_POLICY_MASK 0x0002 66#define IEEE80211_ADDBA_PARAM_POLICY_MASK 0x0002
@@ -2988,7 +2988,8 @@ static void ieee80211_rx_mgmt_action(struct ieee80211_sub_if_data *sdata,
2988{ 2988{
2989 struct ieee80211_local *local = sdata->local; 2989 struct ieee80211_local *local = sdata->local;
2990 2990
2991 if (len < IEEE80211_MIN_ACTION_SIZE) 2991 /* all categories we currently handle have action_code */
2992 if (len < IEEE80211_MIN_ACTION_SIZE + 1)
2992 return; 2993 return;
2993 2994
2994 switch (mgmt->u.action.category) { 2995 switch (mgmt->u.action.category) {