From e5832d90a9a0dad45350956cb6f8802ffd6afb16 Mon Sep 17 00:00:00 2001 From: Marc Date: Fri, 28 Jan 2022 23:28:38 +0000 Subject: test: Fixup tests for new gen function prototypes --- test/src/reassoc_resp_tests.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/src/reassoc_resp_tests.c') diff --git a/test/src/reassoc_resp_tests.c b/test/src/reassoc_resp_tests.c index 8167916..fbfd448 100644 --- a/test/src/reassoc_resp_tests.c +++ b/test/src/reassoc_resp_tests.c @@ -6,13 +6,15 @@ #define BCAST_MAC "\xff\xff\xff\xff\xff\xff" #define TO_MAC "\x00\x20\x91\xAA\xBB\xCC" +#define CURRENT_AP "\x00\x20\x91\x00\x11\x22" const unsigned char to[] = TO_MAC; const unsigned char bcast[] = BCAST_MAC; +const unsigned char current_ap[] = CURRENT_AP; int test_reassoc_resp_gen_full() { struct libwifi_reassoc_resp reassoc_resp = {0}; - int ret = libwifi_create_reassoc_resp(&reassoc_resp, bcast, to, 11); + int ret = libwifi_create_reassoc_resp(&reassoc_resp, bcast, to, current_ap, 11); if (ret != 0) { fprintf(stderr, "Failed to create reassoc_resp: %s\n", strerror(ret)); return ret; @@ -42,7 +44,7 @@ int test_reassoc_resp_gen_full() { int test_reassoc_resp_add_tag() { struct libwifi_reassoc_resp reassoc_resp = {0}; - int ret = libwifi_create_reassoc_resp(&reassoc_resp, bcast, to, 11); + int ret = libwifi_create_reassoc_resp(&reassoc_resp, bcast, to, current_ap, 11); if (ret != 0) { fprintf(stderr, "Failed to create reassoc_resp: %s\n", strerror(ret)); return ret; -- cgit 1.4.1