tests: Fix p2p fuzzer build after API change

Commit 7b121af26a ("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>
This commit is contained in:
Jouni Malinen 2020-12-23 14:09:52 +02:00 committed by Jouni Malinen
parent b6947f01a1
commit 581dfcc413

View file

@ -115,7 +115,7 @@ static void test_send(void *eloop_data, void *user_ctx)
os_memset(&rx_time, 0, sizeof(rx_time)); os_memset(&rx_time, 0, sizeof(rx_time));
p2p_scan_res_handler(ctx->p2p, (u8 *) "\x02\x00\x00\x00\x01\x00", 2412, p2p_scan_res_handler(ctx->p2p, (u8 *) "\x02\x00\x00\x00\x01\x00", 2412,
&rx_time, 0, ctx->data, ctx->data_len); &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", p2p_probe_req_rx(ctx->p2p, (u8 *) "\x02\x00\x00\x00\x01\x00",
(u8 *) "\x02\x00\x00\x00\x00\x00", (u8 *) "\x02\x00\x00\x00\x00\x00",