diff options
author | Marc <foxtrot@malloc.me> | 2021-12-17 18:52:36 +0000 |
---|---|---|
committer | Marc <foxtrot@malloc.me> | 2021-12-17 19:31:25 +0000 |
commit | cd1df65dc36ac35d526de195284d5ebf18e1f92b (patch) | |
tree | fc0c163cd9f86d452fec1eb90d48a22d67cf4256 /src/libwifi/gen/management/assoc_response.h | |
parent | 8e09d29df19312583747a3de00fe4269c17e6586 (diff) | |
download | libwifi-cd1df65dc36ac35d526de195284d5ebf18e1f92b.tar.gz libwifi-cd1df65dc36ac35d526de195284d5ebf18e1f92b.tar.bz2 libwifi-cd1df65dc36ac35d526de195284d5ebf18e1f92b.zip |
test: Add ctests for generation functions.
This commit also enforces error code checking on functions inside of the generation functions, such as for `libwifi_quick_add_tag`.
Diffstat (limited to 'src/libwifi/gen/management/assoc_response.h')
-rw-r--r-- | src/libwifi/gen/management/assoc_response.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libwifi/gen/management/assoc_response.h b/src/libwifi/gen/management/assoc_response.h index 9162d1c..07ad4b4 100644 --- a/src/libwifi/gen/management/assoc_response.h +++ b/src/libwifi/gen/management/assoc_response.h | |||
@@ -24,7 +24,7 @@ | |||
24 | * @param assoc_resp A libwifi_assoc_resp | 24 | * @param assoc_resp A libwifi_assoc_resp |
25 | * @param channel The new channel | 25 | * @param channel The new channel |
26 | */ | 26 | */ |
27 | void libwifi_set_assoc_resp_channel(struct libwifi_assoc_resp *assoc_resp, uint8_t channel); | 27 | int libwifi_set_assoc_resp_channel(struct libwifi_assoc_resp *assoc_resp, uint8_t channel); |
28 | 28 | ||
29 | /** | 29 | /** |
30 | * Calculate the length of a given libwifi_assoc_resp | 30 | * Calculate the length of a given libwifi_assoc_resp |
@@ -46,7 +46,7 @@ size_t libwifi_get_assoc_resp_length(struct libwifi_assoc_resp *assoc_resp); | |||
46 | * @param channel The desired channel of the assoc_resp | 46 | * @param channel The desired channel of the assoc_resp |
47 | * | 47 | * |
48 | */ | 48 | */ |
49 | void libwifi_create_assoc_resp(struct libwifi_assoc_resp *assoc_resp, const unsigned char receiver[6], | 49 | int libwifi_create_assoc_resp(struct libwifi_assoc_resp *assoc_resp, const unsigned char receiver[6], |
50 | const unsigned char transmitter[6], uint8_t channel); | 50 | const unsigned char transmitter[6], uint8_t channel); |
51 | 51 | ||
52 | /** | 52 | /** |