diff options
author | Marc <foxtrot@malloc.me> | 2022-01-28 23:28:38 +0000 |
---|---|---|
committer | Marc <foxtrot@malloc.me> | 2022-01-28 23:28:45 +0000 |
commit | e5832d90a9a0dad45350956cb6f8802ffd6afb16 (patch) | |
tree | 4f74de2cdce9395464164432e52a00c612fc1fa2 /test/src/reassoc_req_tests.c | |
parent | 4c1232aaccdafcd213b615f7e8f36e5b5604fb59 (diff) | |
download | libwifi-e5832d90a9a0dad45350956cb6f8802ffd6afb16.tar.gz libwifi-e5832d90a9a0dad45350956cb6f8802ffd6afb16.tar.bz2 libwifi-e5832d90a9a0dad45350956cb6f8802ffd6afb16.zip |
test: Fixup tests for new gen function prototypes
Diffstat (limited to 'test/src/reassoc_req_tests.c')
-rw-r--r-- | test/src/reassoc_req_tests.c | 10 |
1 files changed, 6 insertions, 4 deletions
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 @@ | |||
4 | #include <stdio.h> | 4 | #include <stdio.h> |
5 | #include <string.h> | 5 | #include <string.h> |
6 | 6 | ||
7 | #define BCAST_MAC "\xff\xff\xff\xff\xff\xff" | 7 | #define BCAST_MAC "\xff\xff\xff\xff\xff\xff" |
8 | #define TO_MAC "\x00\x20\x91\xAA\xBB\xCC" | 8 | #define TO_MAC "\x00\x20\x91\xAA\xBB\xCC" |
9 | #define CURRENT_AP "\x00\x20\x91\x00\x11\x22" | ||
9 | const unsigned char to[] = TO_MAC; | 10 | const unsigned char to[] = TO_MAC; |
10 | const unsigned char bcast[] = BCAST_MAC; | 11 | const unsigned char bcast[] = BCAST_MAC; |
12 | const unsigned char current_ap[] = CURRENT_AP; | ||
11 | 13 | ||
12 | int test_reassoc_req_gen_full() { | 14 | int test_reassoc_req_gen_full() { |
13 | struct libwifi_reassoc_req reassoc_req = {0}; | 15 | struct libwifi_reassoc_req reassoc_req = {0}; |
14 | 16 | ||
15 | int ret = libwifi_create_reassoc_req(&reassoc_req, bcast, to, to, "Some SSID", 11); | 17 | int ret = libwifi_create_reassoc_req(&reassoc_req, bcast, to, to, current_ap, "Some SSID", 11); |
16 | if (ret != 0) { | 18 | if (ret != 0) { |
17 | fprintf(stderr, "Failed to create reassoc_req: %s\n", strerror(ret)); | 19 | fprintf(stderr, "Failed to create reassoc_req: %s\n", strerror(ret)); |
18 | return ret; | 20 | return ret; |
@@ -42,7 +44,7 @@ int test_reassoc_req_gen_full() { | |||
42 | int test_reassoc_req_add_tag() { | 44 | int test_reassoc_req_add_tag() { |
43 | struct libwifi_reassoc_req reassoc_req = {0}; | 45 | struct libwifi_reassoc_req reassoc_req = {0}; |
44 | 46 | ||
45 | int ret = libwifi_create_reassoc_req(&reassoc_req, bcast, to, to, "Some SSID", 11); | 47 | int ret = libwifi_create_reassoc_req(&reassoc_req, bcast, to, to, current_ap, "Some SSID", 11); |
46 | if (ret != 0) { | 48 | if (ret != 0) { |
47 | fprintf(stderr, "Failed to create reassoc_req: %s\n", strerror(ret)); | 49 | fprintf(stderr, "Failed to create reassoc_req: %s\n", strerror(ret)); |
48 | return ret; | 50 | return ret; |