aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/mesh_mpm.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2018-11-24 11:36:54 (GMT)
committerJouni Malinen <j@w1.fi>2018-11-24 11:36:54 (GMT)
commit4929d556cc571bab10584a7a3cd09ca272a9cb65 (patch)
tree65c59065fd011dc0e8e31c371caaea2c4eef2b33 /wpa_supplicant/mesh_mpm.c
parent25778502d5ec45e0dc936a0c8e294c4a3a6c58c4 (diff)
downloadhostap-4929d556cc571bab10584a7a3cd09ca272a9cb65.zip
hostap-4929d556cc571bab10584a7a3cd09ca272a9cb65.tar.gz
hostap-4929d556cc571bab10584a7a3cd09ca272a9cb65.tar.bz2
mesh: Add Category and Action field to maximum buffer length
Make the buf_len calculation match more closely with the following wpa_buf*() operations. The extra room from the existing elements was apparently sufficiently large to cover this, but better add the two octet header explicitly. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/mesh_mpm.c')
-rw-r--r--wpa_supplicant/mesh_mpm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wpa_supplicant/mesh_mpm.c b/wpa_supplicant/mesh_mpm.c
index cbb1cd3..eafb0af 100644
--- a/wpa_supplicant/mesh_mpm.c
+++ b/wpa_supplicant/mesh_mpm.c
@@ -222,7 +222,8 @@ static void mesh_mpm_send_plink_action(struct wpa_supplicant *wpa_s,
if (!sta)
return;
- buf_len = 2 + /* capability info */
+ buf_len = 2 + /* Category and Action */
+ 2 + /* capability info */
2 + /* AID */
2 + 8 + /* supported rates */
2 + (32 - 8) +