]> git.ipfire.org Git - thirdparty/hostap.git/commit
mesh: Allow processing authentication frames in blocked state
authorFelix Fietkau <nbd@nbd.name>
Thu, 4 Apr 2024 10:52:15 +0000 (12:52 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 15 Apr 2024 20:14:33 +0000 (23:14 +0300)
commit8634e7343d473ee01ff3ece9c8bbb099336fc071
treebb6958453f62fd9482b0c0a2ca15cd6531fe9c14
parenta210fdb1c717b23b0d691b54d9b7be6f7bcf7799
mesh: Allow processing authentication frames in blocked state

If authentication fails repeatedly, e.g., because of a weak signal, the
link can end up in blocked state. If one of the nodes tries to establish
a link again before it is unblocked on the other side, it will block the
link to that other side. The same happens on the other side when it
unblocks the link. In that scenario, the link never recovers on its own.

To fix this, allow restarting authentication even if the link is in
blocked state, but don't initiate the attempt until the blocked period
is over. This reverts commit 09d96de09e01 ("mesh: Drop Authentication
frames from BLOCKED STA").

Signed-off-by: Felix Fietkau <nbd@nbd.name>
src/ap/ieee802_11.c