diff options
Diffstat (limited to 'net/mac80211/rx.c')
-rw-r--r-- | net/mac80211/rx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index b5f2e4c25c7e..2535d8d4ce90 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c | |||
@@ -1307,7 +1307,7 @@ static int prepare_for_handlers(struct ieee80211_sub_if_data *sdata, | |||
1307 | } else if (!multicast && | 1307 | } else if (!multicast && |
1308 | compare_ether_addr(sdata->dev->dev_addr, | 1308 | compare_ether_addr(sdata->dev->dev_addr, |
1309 | hdr->addr1) != 0) { | 1309 | hdr->addr1) != 0) { |
1310 | if (!(sdata->flags & IEEE80211_SDATA_PROMISC)) | 1310 | if (!(sdata->dev->flags & IFF_PROMISC)) |
1311 | return 0; | 1311 | return 0; |
1312 | rx->flags &= ~IEEE80211_TXRXD_RXRA_MATCH; | 1312 | rx->flags &= ~IEEE80211_TXRXD_RXRA_MATCH; |
1313 | } | 1313 | } |
@@ -1322,7 +1322,7 @@ static int prepare_for_handlers(struct ieee80211_sub_if_data *sdata, | |||
1322 | } else if (!multicast && | 1322 | } else if (!multicast && |
1323 | compare_ether_addr(sdata->dev->dev_addr, | 1323 | compare_ether_addr(sdata->dev->dev_addr, |
1324 | hdr->addr1) != 0) { | 1324 | hdr->addr1) != 0) { |
1325 | if (!(sdata->flags & IEEE80211_SDATA_PROMISC)) | 1325 | if (!(sdata->dev->flags & IFF_PROMISC)) |
1326 | return 0; | 1326 | return 0; |
1327 | rx->flags &= ~IEEE80211_TXRXD_RXRA_MATCH; | 1327 | rx->flags &= ~IEEE80211_TXRXD_RXRA_MATCH; |
1328 | } else if (!rx->sta) | 1328 | } else if (!rx->sta) |