about summary refs log tree commit diff stats
path: root/utils/src/test_parsing.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/src/test_parsing.c')
-rw-r--r--utils/src/test_parsing.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/utils/src/test_parsing.c b/utils/src/test_parsing.c index 293fbb0..339816e 100644 --- a/utils/src/test_parsing.c +++ b/utils/src/test_parsing.c
@@ -132,9 +132,9 @@ void print_tag_info(unsigned char *data, size_t data_len) {
132 } while (libwifi_tag_iterator_next(&it) != -1); 132 } while (libwifi_tag_iterator_next(&it) != -1);
133} 133}
134 134
135void parse_radiotap(const unsigned char *packet) { 135void parse_radiotap(const unsigned char *packet, size_t packet_len) {
136 struct libwifi_radiotap_info rtap_info; 136 struct libwifi_radiotap_info rtap_info;
137 libwifi_parse_radiotap_info(&rtap_info, packet); 137 libwifi_parse_radiotap_info(&rtap_info, packet, packet_len);
138 138
139 printf("=== Radiotap Parsing ===\n"); 139 printf("=== Radiotap Parsing ===\n");
140 printf("Radiotap Channel: %d\n", rtap_info.channel.freq); 140 printf("Radiotap Channel: %d\n", rtap_info.channel.freq);
@@ -166,7 +166,7 @@ void parse_beacon(struct libwifi_frame frame, unsigned char *args, const struct
166 } 166 }
167 167
168 if (got_radiotap && parse_radiotap_header) { 168 if (got_radiotap && parse_radiotap_header) {
169 parse_radiotap(packet); 169 parse_radiotap(packet, header->caplen);
170 } 170 }
171 171
172 print_bss_info(&bss); 172 print_bss_info(&bss);
@@ -184,7 +184,7 @@ void parse_probe_request(struct libwifi_frame frame, unsigned char *args, const
184 } 184 }
185 185
186 if (got_radiotap && parse_radiotap_header) { 186 if (got_radiotap && parse_radiotap_header) {
187 parse_radiotap(packet); 187 parse_radiotap(packet, header->caplen);
188 } 188 }
189 189
190 print_sta_info(&sta); 190 print_sta_info(&sta);
@@ -201,7 +201,7 @@ void parse_probe_response(struct libwifi_frame frame, unsigned char *args, const
201 } 201 }
202 202
203 if (got_radiotap && parse_radiotap_header) { 203 if (got_radiotap && parse_radiotap_header) {
204 parse_radiotap(packet); 204 parse_radiotap(packet, header->caplen);
205 } 205 }
206 206
207 print_bss_info(&bss); 207 print_bss_info(&bss);
@@ -219,7 +219,7 @@ void parse_deauth(struct libwifi_frame frame, unsigned char *args, const struct
219 } 219 }
220 220
221 if (got_radiotap && parse_radiotap_header) { 221 if (got_radiotap && parse_radiotap_header) {
222 parse_radiotap(packet); 222 parse_radiotap(packet, header->caplen);
223 } 223 }
224 224
225 printf("=== Deauthentication Frame ===\n"); 225 printf("=== Deauthentication Frame ===\n");
@@ -258,7 +258,7 @@ void parse_disassoc(struct libwifi_frame frame, unsigned char *args, const struc
258 } 258 }
259 259
260 if (got_radiotap && parse_radiotap_header) { 260 if (got_radiotap && parse_radiotap_header) {
261 parse_radiotap(packet); 261 parse_radiotap(packet, header->caplen);
262 } 262 }
263 263
264 printf("=== Disassociation Frame ===\n"); 264 printf("=== Disassociation Frame ===\n");
@@ -296,7 +296,7 @@ void parse_assoc_request(struct libwifi_frame frame, unsigned char *args, const
296 } 296 }
297 297
298 if (got_radiotap && parse_radiotap_header) { 298 if (got_radiotap && parse_radiotap_header) {
299 parse_radiotap(packet); 299 parse_radiotap(packet, header->caplen);
300 } 300 }
301 301
302 print_sta_info(&sta); 302 print_sta_info(&sta);
@@ -313,7 +313,7 @@ void parse_assoc_response(struct libwifi_frame frame, unsigned char *args, const
313 } 313 }
314 314
315 if (got_radiotap && parse_radiotap_header) { 315 if (got_radiotap && parse_radiotap_header) {
316 parse_radiotap(packet); 316 parse_radiotap(packet, header->caplen);
317 } 317 }
318 318
319 print_bss_info(&bss); 319 print_bss_info(&bss);
@@ -330,7 +330,7 @@ void parse_reassoc_request(struct libwifi_frame frame, unsigned char *args, cons
330 } 330 }
331 331
332 if (got_radiotap && parse_radiotap_header) { 332 if (got_radiotap && parse_radiotap_header) {
333 parse_radiotap(packet); 333 parse_radiotap(packet, header->caplen);
334 } 334 }
335 335
336 print_sta_info(&sta); 336 print_sta_info(&sta);
@@ -347,7 +347,7 @@ void parse_reassoc_response(struct libwifi_frame frame, unsigned char *args, con
347 } 347 }
348 348
349 if (got_radiotap && parse_radiotap_header) { 349 if (got_radiotap && parse_radiotap_header) {
350 parse_radiotap(packet); 350 parse_radiotap(packet, header->caplen);
351 } 351 }
352 352
353 print_bss_info(&bss); 353 print_bss_info(&bss);