aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/mesh_rsn.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-06-28 19:45:41 (GMT)
committerJouni Malinen <j@w1.fi>2016-06-28 19:45:41 (GMT)
commit1f2f3f1c4a1a500e23886b1832b35140d692a8bd (patch)
tree5144cef22d6b70335d2899f8c6b85334c2599092 /wpa_supplicant/mesh_rsn.c
parente8afaad7fd9a7fc9a761ed2f8a117bbb6ac9c730 (diff)
downloadhostap-1f2f3f1c4a1a500e23886b1832b35140d692a8bd.zip
hostap-1f2f3f1c4a1a500e23886b1832b35140d692a8bd.tar.gz
hostap-1f2f3f1c4a1a500e23886b1832b35140d692a8bd.tar.bz2
mesh: Indicate OPN_RJCT event if AES-SIV decrypt fails
REVmc/D6.0 14.5.5.2.2 (Processing Mesh Peering Open frames for AMPE) mandates the OPN_RJCT event to be invoked if AES-SIV decryption for received Mesh Peering Open frame fails. This allows a Mesh Peering Close frame to be sent in such a case. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/mesh_rsn.c')
-rw-r--r--wpa_supplicant/mesh_rsn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/mesh_rsn.c b/wpa_supplicant/mesh_rsn.c
index cc600e2..27ab8cb 100644
--- a/wpa_supplicant/mesh_rsn.c
+++ b/wpa_supplicant/mesh_rsn.c
@@ -653,7 +653,7 @@ int mesh_rsn_process_ampe(struct wpa_supplicant *wpa_s, struct sta_info *sta,
if (aes_siv_decrypt(sta->aek, crypt, crypt_len, 3,
aad, aad_len, ampe_buf)) {
wpa_printf(MSG_ERROR, "Mesh RSN: frame verification failed!");
- ret = -1;
+ ret = -2;
goto free;
}