diff options
-rw-r--r-- | net/mac80211/rx.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index e2c6f5cd1cf7..969be3adda7a 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c | |||
@@ -988,9 +988,10 @@ ieee80211_rx_h_data(struct ieee80211_txrx_data *rx) | |||
988 | memcpy(dst, hdr->addr1, ETH_ALEN); | 988 | memcpy(dst, hdr->addr1, ETH_ALEN); |
989 | memcpy(src, hdr->addr3, ETH_ALEN); | 989 | memcpy(src, hdr->addr3, ETH_ALEN); |
990 | 990 | ||
991 | if (sdata->type != IEEE80211_IF_TYPE_STA) { | 991 | if (sdata->type != IEEE80211_IF_TYPE_STA || |
992 | (is_multicast_ether_addr(dst) && | ||
993 | !compare_ether_addr(src, dev->dev_addr))) | ||
992 | return TXRX_DROP; | 994 | return TXRX_DROP; |
993 | } | ||
994 | break; | 995 | break; |
995 | case 0: | 996 | case 0: |
996 | /* DA SA BSSID */ | 997 | /* DA SA BSSID */ |