about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMarc <foxtrot@malloc.me>2022-01-15 21:54:51 +0000
committerMarc <foxtrot@malloc.me>2022-01-15 21:54:51 +0000
commita9a46f40228429e128390d4d4979788e2778e8d0 (patch)
tree726969bee9dd6e62db4272a668cc9b8fe96fab12
parentd8911a911d493199e2caa66486b40ef7c5c9eef7 (diff)
downloadlibwifi-a9a46f40228429e128390d4d4979788e2778e8d0.tar.gz
libwifi-a9a46f40228429e128390d4d4979788e2778e8d0.tar.bz2
libwifi-a9a46f40228429e128390d4d4979788e2778e8d0.zip
test: Fix beacon generation function call
-rw-r--r--test/src/beacon_tests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/src/beacon_tests.c b/test/src/beacon_tests.c index d152d5e..bc94cbd 100644 --- a/test/src/beacon_tests.c +++ b/test/src/beacon_tests.c
@@ -24,7 +24,7 @@ const unsigned char beacon[] = "\x00\x00\x18\x00\x8e\x58\x00\x00\x10\x02\x6c\x09
24int test_beacon_gen_full() { 24int test_beacon_gen_full() {
25 struct libwifi_beacon beacon = {0}; 25 struct libwifi_beacon beacon = {0};
26 26
27 int ret = libwifi_create_beacon(&beacon, bcast, to, "Some SSID", 11); 27 int ret = libwifi_create_beacon(&beacon, bcast, to, to, "Some SSID", 11);
28 if (ret != 0) { 28 if (ret != 0) {
29 fprintf(stderr, "Failed to create beacon: %s\n", strerror(ret)); 29 fprintf(stderr, "Failed to create beacon: %s\n", strerror(ret));
30 return ret; 30 return ret;
@@ -54,7 +54,7 @@ int test_beacon_gen_full() {
54int test_beacon_add_tag() { 54int test_beacon_add_tag() {
55 struct libwifi_beacon beacon = {0}; 55 struct libwifi_beacon beacon = {0};
56 56
57 int ret = libwifi_create_beacon(&beacon, bcast, to, "Some SSID", 11); 57 int ret = libwifi_create_beacon(&beacon, bcast, to, to, "Some SSID", 11);
58 if (ret != 0) { 58 if (ret != 0) {
59 fprintf(stderr, "Failed to create beacon: %s\n", strerror(ret)); 59 fprintf(stderr, "Failed to create beacon: %s\n", strerror(ret));
60 return ret; 60 return ret;