]> git.ipfire.org Git - thirdparty/hostap.git/commit
Reduce undesired logging of ACL rejection events from AP mode
authorJouni Malinen <j@w1.fi>
Sun, 14 Oct 2018 16:57:22 +0000 (19:57 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 14 Oct 2018 16:57:22 +0000 (19:57 +0300)
commit6588f712220797c69dbd019daa19b82a50d92782
treebbaf7a4fd70e9117bcb7672f7a2a32ee63f4e168
parent4816bd3b22b8e3e172c6a1c526230b60988fd986
Reduce undesired logging of ACL rejection events from AP mode

When Probe Request frame handling was extended to use MAC ACL through
ieee802_11_allowed_address(), the MSG_INFO level log print ("Station
<addr> not allowed to authenticate") from that function ended up getting
printed even for Probe Request frames. That was not by design and it can
result in excessive logging and MSG_INFO level if MAC ACL is used.

Fix this by printing this log entry only for authentication and
association frames. In addition, drop the priority of that log entry to
MSG_DEBUG since this is not really an unexpected behavior in most MAC
ACL use cases.

Fixes: 92eb00aec2a0 ("Extend ACL check for Probe Request frames")
Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/ieee802_11.c