mesh: Drop Authentication frames from BLOCKED STA

Previously, only mesh Action frames from BLOCKED STA were dropped.
Extend that to drop Authentication frames as well.

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
This commit is contained in:
Masashi Honma 2016-02-17 19:48:53 +09:00 committed by Jouni Malinen
parent 70c93963ed
commit 09d96de09e

View file

@ -1069,13 +1069,22 @@ static void handle_auth(struct hostapd_data *hapd,
seq_ctrl); seq_ctrl);
return; return;
} }
#ifdef CONFIG_MESH
if ((hapd->conf->mesh & MESH_ENABLED) &&
sta->plink_state == PLINK_BLOCKED) {
wpa_printf(MSG_DEBUG, "Mesh peer " MACSTR
" is blocked - drop Authentication frame",
MAC2STR(mgmt->sa));
return;
}
#endif /* CONFIG_MESH */
} else { } else {
#ifdef CONFIG_MESH #ifdef CONFIG_MESH
if (hapd->conf->mesh & MESH_ENABLED) { if (hapd->conf->mesh & MESH_ENABLED) {
/* if the mesh peer is not available, we don't do auth. /* if the mesh peer is not available, we don't do auth.
*/ */
wpa_printf(MSG_DEBUG, "Mesh peer " MACSTR wpa_printf(MSG_DEBUG, "Mesh peer " MACSTR
" not yet known - drop Authentiation frame", " not yet known - drop Authentication frame",
MAC2STR(mgmt->sa)); MAC2STR(mgmt->sa));
/* /*
* Save a copy of the frame so that it can be processed * Save a copy of the frame so that it can be processed