mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
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
This commit is contained in:
parent
79198e858b
commit
a3d1edc2b2
1 changed files with 5 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue