summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_acl.c
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2011-12-15 00:52:30 +0000
committeradrian <adrian@FreeBSD.org>2011-12-15 00:52:30 +0000
commit78bb8e5fa2902f0e0d26781527fb5bcd4d13fb36 (patch)
treec0a506e92899f5b8dd0cdd2989e1bbc7470db542 /sys/net80211/ieee80211_acl.c
parente23259ae4e0dd7e56235ac44f70300d0a986b284 (diff)
downloadFreeBSD-src-78bb8e5fa2902f0e0d26781527fb5bcd4d13fb36.zip
FreeBSD-src-78bb8e5fa2902f0e0d26781527fb5bcd4d13fb36.tar.gz
Modify the ACL code slightly to support a few nifty things:
* Call it before sending probe responses, so the ACL code has the chance to reject sending them. * Pass the whole frame to the ACL code now, rather than just the destination MAC - that way the ACL module can look at the frame contents to determine what the response should be. This is part of some uncommitted work to support band steering. Sponsored by: Hobnob, Inc.
Diffstat (limited to 'sys/net80211/ieee80211_acl.c')
-rw-r--r--sys/net80211/ieee80211_acl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_acl.c b/sys/net80211/ieee80211_acl.c
index d39c428..feff4ad 100644
--- a/sys/net80211/ieee80211_acl.c
+++ b/sys/net80211/ieee80211_acl.c
@@ -152,7 +152,8 @@ _acl_free(struct aclstate *as, struct acl *acl)
}
static int
-acl_check(struct ieee80211vap *vap, const uint8_t mac[IEEE80211_ADDR_LEN])
+acl_check(struct ieee80211vap *vap, const struct ieee80211_frame *wh,
+ const uint8_t mac[IEEE80211_ADDR_LEN])
{
struct aclstate *as = vap->iv_as;
OpenPOWER on IntegriCloud