aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/ieee802_11.c
diff options
context:
space:
mode:
authorMasashi Honma <masashi.honma@gmail.com>2016-02-17 10:48:53 (GMT)
committerJouni Malinen <j@w1.fi>2016-02-18 19:27:06 (GMT)
commit09d96de09e01b76170091ab6e697eb187a04b6f0 (patch)
tree5d609d1ec8b81c82f78ab413b88e96c0659fd6b8 /src/ap/ieee802_11.c
parent70c93963edefa37ef84b73efb9d04ea10268341c (diff)
downloadhostap-09d96de09e01b76170091ab6e697eb187a04b6f0.zip
hostap-09d96de09e01b76170091ab6e697eb187a04b6f0.tar.gz
hostap-09d96de09e01b76170091ab6e697eb187a04b6f0.tar.bz2
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>
Diffstat (limited to 'src/ap/ieee802_11.c')
-rw-r--r--src/ap/ieee802_11.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c
index dbabab8..f3d8968 100644
--- a/src/ap/ieee802_11.c
+++ b/src/ap/ieee802_11.c
@@ -1069,13 +1069,22 @@ static void handle_auth(struct hostapd_data *hapd,
seq_ctrl);
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 {
#ifdef CONFIG_MESH
if (hapd->conf->mesh & MESH_ENABLED) {
/* if the mesh peer is not available, we don't do auth.
*/
wpa_printf(MSG_DEBUG, "Mesh peer " MACSTR
- " not yet known - drop Authentiation frame",
+ " not yet known - drop Authentication frame",
MAC2STR(mgmt->sa));
/*
* Save a copy of the frame so that it can be processed