diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-01-28 11:19:37 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-02-29 15:19:33 -0500 |
commit | 238814fd9a9624e3076c47ef0c003101927c7818 (patch) | |
tree | 634070fcdd922cc8992ecb52147d0efc3e3cf574 /net/mac80211/tx.c | |
parent | 69d464d5938ca0f4fb3447b3e32872e0ca79efc1 (diff) |
mac80211: remove port control enable switch, clean up sta flags
This patch removes the 802.1X port acess control enable flag
since it is not required. Instead, set the authorized flag for
each station that we normally communicate with (WDS peers, IBSS
peers and APs we're associated to) and require hostapd to set
the authorized flag for all stations when port control is not
enabled.
Also, since I was working in that area, this documents station
flags and removes the unused "permanent" one.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r-- | net/mac80211/tx.c | 8 |
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, |