]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
mesh: Add Category and Action field to maximum buffer length
authorJouni Malinen <j@w1.fi>
Sat, 24 Nov 2018 11:36:54 +0000 (13:36 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 24 Nov 2018 11:36:54 +0000 (13:36 +0200)
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>
wpa_supplicant/mesh_mpm.c

index cbb1cd36ff7a0ce2fea826fd492597e009b770bf..eafb0af7b82a97a180473e97ffebd65024dac03d 100644 (file)
@@ -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) +