aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/tx.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r--net/mac80211/tx.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index 9e5359991985..2b4746441232 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -1471,12 +1471,10 @@ int ieee80211_subif_start_xmit(struct sk_buff *skb,
1471 } 1471 }
1472 1472
1473 /* 1473 /*
1474 * If port access control is enabled, drop unicast frames to 1474 * Drop unicast frames to unauthorised stations unless they are
1475 * unauthorised stations unless they are EAPOL frames from the 1475 * EAPOL frames from the local station.
1476 * local station.
1477 */ 1476 */
1478 if (unlikely(sdata->ieee802_1x_pac && 1477 if (unlikely(!is_multicast_ether_addr(hdr.addr1) &&
1479 !is_multicast_ether_addr(hdr.addr1) &&
1480 !(sta_flags & WLAN_STA_AUTHORIZED) && 1478 !(sta_flags & WLAN_STA_AUTHORIZED) &&
1481 !(ethertype == ETH_P_PAE && 1479 !(ethertype == ETH_P_PAE &&
1482 compare_ether_addr(dev->dev_addr, 1480 compare_ether_addr(dev->dev_addr,