about summary refs log tree commit diff stats
path: root/test/src/reassoc_resp_tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/src/reassoc_resp_tests.c')
-rw-r--r--test/src/reassoc_resp_tests.c6
1 files changed, 4 insertions, 2 deletions
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 @@
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"
9const unsigned char to[] = TO_MAC; 10const unsigned char to[] = TO_MAC;
10const unsigned char bcast[] = BCAST_MAC; 11const unsigned char bcast[] = BCAST_MAC;
12const unsigned char current_ap[] = CURRENT_AP;
11 13
12int test_reassoc_resp_gen_full() { 14int test_reassoc_resp_gen_full() {
13 struct libwifi_reassoc_resp reassoc_resp = {0}; 15 struct libwifi_reassoc_resp reassoc_resp = {0};
14 16
15 int ret = libwifi_create_reassoc_resp(&reassoc_resp, bcast, to, 11); 17 int ret = libwifi_create_reassoc_resp(&reassoc_resp, bcast, to, current_ap, 11);
16 if (ret != 0) { 18 if (ret != 0) {
17 fprintf(stderr, "Failed to create reassoc_resp: %s\n", strerror(ret)); 19 fprintf(stderr, "Failed to create reassoc_resp: %s\n", strerror(ret));
18 return ret; 20 return ret;
@@ -42,7 +44,7 @@ int test_reassoc_resp_gen_full() {
42int test_reassoc_resp_add_tag() { 44int test_reassoc_resp_add_tag() {
43 struct libwifi_reassoc_resp reassoc_resp = {0}; 45 struct libwifi_reassoc_resp reassoc_resp = {0};
44 46
45 int ret = libwifi_create_reassoc_resp(&reassoc_resp, bcast, to, 11); 47 int ret = libwifi_create_reassoc_resp(&reassoc_resp, bcast, to, current_ap, 11);
46 if (ret != 0) { 48 if (ret != 0) {
47 fprintf(stderr, "Failed to create reassoc_resp: %s\n", strerror(ret)); 49 fprintf(stderr, "Failed to create reassoc_resp: %s\n", strerror(ret));
48 return ret; 50 return ret;