[RFC 09/30] wlantest: Allow longer PTK
Ilan Peer
ilan.peer at intel.com
Wed Oct 21 06:43:27 PDT 2026
Now with the SMD KDK, we need up to 112 bytes.
Signed-off-by: Ilan Peer <ilan.peer at intel.com>
---
wlantest/wlantest.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wlantest/wlantest.c b/wlantest/wlantest.c
index 6dfaf120f61e..10c9a3f8cc2d 100644
--- a/wlantest/wlantest.c
+++ b/wlantest/wlantest.c
@@ -266,7 +266,7 @@ static int add_ptk_file(struct wlantest *wt, const char *ptk_file)
{
FILE *f;
u8 ptk[WPA_KCK_MAX_LEN + WPA_KEK_MAX_LEN + WPA_TK_MAX_LEN +
- WPA_KDK_MAX_LEN];
+ WPA_KDK_MAX_LEN + WPA_SMD_KDK_MAX_LEN];
size_t ptk_len;
char buf[2 * sizeof(ptk) + 10], *pos;
struct wlantest_ptk *p;
--
2.55.0
More information about the Hostap
mailing list