about summary refs log tree commit diff stats
path: root/test/src/action_tests.c
diff options
context:
space:
mode:
authorMarc <foxtrot@malloc.me>2022-01-29 00:17:41 +0000
committerGitHub <noreply@github.com>2022-01-29 00:17:41 +0000
commit62ea5defe6e5e71c5c90c0f3d3d5e8d5dd9c57f6 (patch)
tree626939c4b36126e285e1841912f2c2feb41f055b /test/src/action_tests.c
parenta9a46f40228429e128390d4d4979788e2778e8d0 (diff)
parentd26739cec88e2d798f07eafce0396fcd87c4ba1c (diff)
downloadlibwifi-62ea5defe6e5e71c5c90c0f3d3d5e8d5dd9c57f6.tar.gz
libwifi-62ea5defe6e5e71c5c90c0f3d3d5e8d5dd9c57f6.tar.bz2
libwifi-62ea5defe6e5e71c5c90c0f3d3d5e8d5dd9c57f6.zip
Merge pull request #5 from libwifi/fixup
Improve header comments, add ability to always specify Management frame Address 3 field
Diffstat (limited to 'test/src/action_tests.c')
-rw-r--r--test/src/action_tests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/src/action_tests.c b/test/src/action_tests.c index 997095d..c8377b5 100644 --- a/test/src/action_tests.c +++ b/test/src/action_tests.c
@@ -12,7 +12,7 @@ const unsigned char bcast[] = BCAST_MAC;
12int test_action_gen_full() { 12int test_action_gen_full() {
13 struct libwifi_action action = {0}; 13 struct libwifi_action action = {0};
14 14
15 int ret = libwifi_create_action(&action, bcast, to, ACTION_HT); 15 int ret = libwifi_create_action(&action, bcast, to, to, ACTION_HT);
16 if (ret != 0) { 16 if (ret != 0) {
17 fprintf(stderr, "Failed to create action: %s\n", strerror(ret)); 17 fprintf(stderr, "Failed to create action: %s\n", strerror(ret));
18 return ret; 18 return ret;
@@ -42,7 +42,7 @@ int test_action_gen_full() {
42int test_action_add_detail() { 42int test_action_add_detail() {
43 struct libwifi_action action = {0}; 43 struct libwifi_action action = {0};
44 44
45 int ret = libwifi_create_action(&action, bcast, to, ACTION_HT); 45 int ret = libwifi_create_action(&action, bcast, to, to, ACTION_HT);
46 if (ret != 0) { 46 if (ret != 0) {
47 fprintf(stderr, "Failed to create action: %s\n", strerror(ret)); 47 fprintf(stderr, "Failed to create action: %s\n", strerror(ret));
48 return ret; 48 return ret;