aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/mesh_rsn.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-06-18 11:45:35 (GMT)
committerJouni Malinen <j@w1.fi>2016-06-19 17:18:09 (GMT)
commita4eec3c2305856bfb228daac6b047f6baf80c12e (patch)
treef2bfa3c16a3198edf297d14a86ce24ca35b8744b /wpa_supplicant/mesh_rsn.c
parentfccba2c946407f39b546ad0b6ba42b60577777ac (diff)
downloadhostap-a4eec3c2305856bfb228daac6b047f6baf80c12e.zip
hostap-a4eec3c2305856bfb228daac6b047f6baf80c12e.tar.gz
hostap-a4eec3c2305856bfb228daac6b047f6baf80c12e.tar.bz2
mesh: Use variable length MGTK for RX
This extends the data structures to allow variable length MGTK to be stored for RX. This is needed as an initial step towards supporting different cipher suites. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/mesh_rsn.c')
-rw-r--r--wpa_supplicant/mesh_rsn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/mesh_rsn.c b/wpa_supplicant/mesh_rsn.c
index 0fa0fbf..db2a608 100644
--- a/wpa_supplicant/mesh_rsn.c
+++ b/wpa_supplicant/mesh_rsn.c
@@ -640,6 +640,7 @@ int mesh_rsn_process_ampe(struct wpa_supplicant *wpa_s, struct sta_info *sta,
os_memcpy(sta->peer_nonce, ampe->local_nonce,
sizeof(ampe->local_nonce));
os_memcpy(sta->mgtk, ampe->mgtk, sizeof(ampe->mgtk));
+ sta->mgtk_len = sizeof(ampe->mgtk);
/* todo parse mgtk expiration */
free: