diff options
author | sam <sam@FreeBSD.org> | 2005-07-22 05:17:52 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2005-07-22 05:17:52 +0000 |
commit | 186ec2eefb520ad6d64073b39007945283b4dce4 (patch) | |
tree | 45dec23b38c908356173fc96ad1610a283bc2b6e /sys/net80211 | |
parent | edad1e6d8a2de641e4d785f608f7e757c9c8e799 (diff) | |
download | FreeBSD-src-186ec2eefb520ad6d64073b39007945283b4dce4.zip FreeBSD-src-186ec2eefb520ad6d64073b39007945283b4dce4.tar.gz |
send a response when an auth request is denied due to an acl;
might be better to silently ignore the frame but this way we
give stations a chance of figuring out what's wrong
Diffstat (limited to 'sys/net80211')
-rw-r--r-- | sys/net80211/ieee80211_input.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_input.c b/sys/net80211/ieee80211_input.c index abea74b..082a834 100644 --- a/sys/net80211/ieee80211_input.c +++ b/sys/net80211/ieee80211_input.c @@ -2114,6 +2114,11 @@ ieee80211_recv_mgmt(struct ieee80211com *ic, struct mbuf *m0, IEEE80211_DISCARD(ic, IEEE80211_MSG_ACL, wh, "auth", "%s", "disallowed by ACL"); ic->ic_stats.is_rx_acl++; + if (ic->ic_opmode == IEEE80211_M_HOSTAP) { + IEEE80211_SEND_MGMT(ic, ni, + IEEE80211_FC0_SUBTYPE_AUTH, + (seq+1) | (IEEE80211_STATUS_UNSPECIFIED<<16)); + } return; } if (ic->ic_flags & IEEE80211_F_COUNTERM) { |