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_req_tests.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'test/src/reassoc_req_tests.c') diff --git a/test/src/reassoc_req_tests.c b/test/src/reassoc_req_tests.c index 00e2b53..53cf6b9 100644 --- a/test/src/reassoc_req_tests.c +++ b/test/src/reassoc_req_tests.c @@ -4,15 +4,17 @@ #include #include -#define BCAST_MAC "\xff\xff\xff\xff\xff\xff" -#define TO_MAC "\x00\x20\x91\xAA\xBB\xCC" +#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_req_gen_full() { struct libwifi_reassoc_req reassoc_req = {0}; - int ret = libwifi_create_reassoc_req(&reassoc_req, bcast, to, to, "Some SSID", 11); + int ret = libwifi_create_reassoc_req(&reassoc_req, bcast, to, to, current_ap, "Some SSID", 11); if (ret != 0) { fprintf(stderr, "Failed to create reassoc_req: %s\n", strerror(ret)); return ret; @@ -42,7 +44,7 @@ int test_reassoc_req_gen_full() { int test_reassoc_req_add_tag() { struct libwifi_reassoc_req reassoc_req = {0}; - int ret = libwifi_create_reassoc_req(&reassoc_req, bcast, to, to, "Some SSID", 11); + int ret = libwifi_create_reassoc_req(&reassoc_req, bcast, to, to, current_ap, "Some SSID", 11); if (ret != 0) { fprintf(stderr, "Failed to create reassoc_req: %s\n", strerror(ret)); return ret; -- cgit 1.4.1