1 From: Felix Fietkau <nbd@nbd.name>
2 Date: Mon, 18 Feb 2019 12:57:11 +0100
3 Subject: [PATCH] mesh: allow processing authentication frames in blocked state
5 If authentication fails repeatedly e.g. because of a weak signal, the link
6 can end up in blocked state. If one of the nodes tries to establish a link
7 again before it is unblocked on the other side, it will block the link to
8 that other side. The same happens on the other side when it unblocks the
9 link. In that scenario, the link never recovers on its own.
11 To fix this, allow restarting authentication even if the link is in blocked
12 state, but don't initiate the attempt until the blocked period is over.
14 Signed-off-by: Felix Fietkau <nbd@nbd.name>
17 --- a/src/ap/ieee802_11.c
18 +++ b/src/ap/ieee802_11.c
19 @@ -2948,15 +2948,6 @@ static void handle_auth(struct hostapd_d
24 - if ((hapd->conf->mesh & MESH_ENABLED) &&
25 - sta->plink_state == PLINK_BLOCKED) {
26 - wpa_printf(MSG_DEBUG, "Mesh peer " MACSTR
27 - " is blocked - drop Authentication frame",
31 -#endif /* CONFIG_MESH */
33 if (auth_alg == WLAN_AUTH_PASN &&
34 (sta->flags & WLAN_STA_ASSOC)) {