aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/mesh_rsn.h
diff options
context:
space:
mode:
authorBob Copeland <me@bobcopeland.com>2015-12-27 02:20:52 (GMT)
committerJouni Malinen <j@w1.fi>2015-12-28 15:21:08 (GMT)
commitb2817cd5c2ee87d2b4812155bee82d74d331b5aa (patch)
tree23fce798654e837f3f3df53819a087f43b5cd4b1 /wpa_supplicant/mesh_rsn.h
parent6c33eed3ee7fd6bd9c561295e001a6b63adbb88d (diff)
downloadhostap-b2817cd5c2ee87d2b4812155bee82d74d331b5aa.zip
hostap-b2817cd5c2ee87d2b4812155bee82d74d331b5aa.tar.gz
hostap-b2817cd5c2ee87d2b4812155bee82d74d331b5aa.tar.bz2
mesh: Check PMKID in AMPE Action frames
From IEEE Std 802.11-2012 13.3.5: If the incoming Mesh Peering Management frame is for AMPE and the Chosen PMK from the received frame contains a PMKID that does not identify a valid mesh PMKSA, the frame shall be silently discarded. We were not checking the PMKID previously, and we also weren't parsing it correctly, so fix both. Signed-off-by: Bob Copeland <me@bobcopeland.com>
Diffstat (limited to 'wpa_supplicant/mesh_rsn.h')
-rw-r--r--wpa_supplicant/mesh_rsn.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/mesh_rsn.h b/wpa_supplicant/mesh_rsn.h
index b1471b2..89601d4 100644
--- a/wpa_supplicant/mesh_rsn.h
+++ b/wpa_supplicant/mesh_rsn.h
@@ -30,6 +30,7 @@ int mesh_rsn_protect_frame(struct mesh_rsn *rsn, struct sta_info *sta,
const u8 *cat, struct wpabuf *buf);
int mesh_rsn_process_ampe(struct wpa_supplicant *wpa_s, struct sta_info *sta,
struct ieee802_11_elems *elems, const u8 *cat,
+ const u8 *chosen_pmk,
const u8 *start, size_t elems_len);
void mesh_auth_timer(void *eloop_ctx, void *user_data);