]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix p2p fuzzer build after API change
authorJouni Malinen <jouni@codeaurora.org>
Wed, 23 Dec 2020 12:09:52 +0000 (14:09 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 23 Dec 2020 12:09:52 +0000 (14:09 +0200)
Commit 7b121af26af5 ("P2P: Delay P2P scan when an external scan is in
progress") added a new argument to p2p_scan_res_handled(), but did not
update this test tool. Fix this by using hardcoded value 0 for the new
delay argument.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/fuzzing/p2p/p2p.c

index 8ffcbbda6be2d50b9bdbe6831f8fe6790f03a21e..fc83c3561c1aea5f5f0e1c663101e60a1f94d717 100644 (file)
@@ -115,7 +115,7 @@ static void test_send(void *eloop_data, void *user_ctx)
        os_memset(&rx_time, 0, sizeof(rx_time));
        p2p_scan_res_handler(ctx->p2p, (u8 *) "\x02\x00\x00\x00\x01\x00", 2412,
                             &rx_time, 0, ctx->data, ctx->data_len);
-       p2p_scan_res_handled(ctx->p2p);
+       p2p_scan_res_handled(ctx->p2p, 0);
 
        p2p_probe_req_rx(ctx->p2p, (u8 *) "\x02\x00\x00\x00\x01\x00",
                         (u8 *) "\x02\x00\x00\x00\x00\x00",