diff options
Diffstat (limited to 'net/mac80211/rx.c')
-rw-r--r-- | net/mac80211/rx.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index 453ccab060a2..34adc5288fbc 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c | |||
@@ -1425,6 +1425,7 @@ static int prepare_for_handlers(struct ieee80211_sub_if_data *sdata, | |||
1425 | rx->sta = ieee80211_ibss_add_sta(sdata->dev, rx->skb, | 1425 | rx->sta = ieee80211_ibss_add_sta(sdata->dev, rx->skb, |
1426 | bssid, hdr->addr2); | 1426 | bssid, hdr->addr2); |
1427 | break; | 1427 | break; |
1428 | case IEEE80211_IF_TYPE_VLAN: | ||
1428 | case IEEE80211_IF_TYPE_AP: | 1429 | case IEEE80211_IF_TYPE_AP: |
1429 | if (!bssid) { | 1430 | if (!bssid) { |
1430 | if (compare_ether_addr(sdata->dev->dev_addr, | 1431 | if (compare_ether_addr(sdata->dev->dev_addr, |
@@ -1449,6 +1450,13 @@ static int prepare_for_handlers(struct ieee80211_sub_if_data *sdata, | |||
1449 | if (compare_ether_addr(sdata->u.wds.remote_addr, hdr->addr2)) | 1450 | if (compare_ether_addr(sdata->u.wds.remote_addr, hdr->addr2)) |
1450 | return 0; | 1451 | return 0; |
1451 | break; | 1452 | break; |
1453 | case IEEE80211_IF_TYPE_MNTR: | ||
1454 | /* take everything */ | ||
1455 | break; | ||
1456 | case IEEE80211_IF_TYPE_MGMT: | ||
1457 | /* should never get here */ | ||
1458 | WARN_ON(1); | ||
1459 | break; | ||
1452 | } | 1460 | } |
1453 | 1461 | ||
1454 | return 1; | 1462 | return 1; |