aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/rx.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/rx.c')
-rw-r--r--net/mac80211/rx.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
index dff2239db6e2..b98f1afbfebf 100644
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -2471,6 +2471,15 @@ void ieee80211_rx(struct ieee80211_hw *hw, struct sk_buff *skb)
2471 return; 2471 return;
2472 } 2472 }
2473 2473
2474 /*
2475 * The same happens when we're not even started,
2476 * but that's worth a warning.
2477 */
2478 if (WARN_ON(!local->started)) {
2479 kfree_skb(skb);
2480 return;
2481 }
2482
2474 if (status->flag & RX_FLAG_HT) { 2483 if (status->flag & RX_FLAG_HT) {
2475 /* rate_idx is MCS index */ 2484 /* rate_idx is MCS index */
2476 if (WARN_ON(status->rate_idx < 0 || 2485 if (WARN_ON(status->rate_idx < 0 ||