Commit Graph

34 Commits

Author SHA1 Message Date
Denis Kenzior 94ecdc799a ie: Rename _BIP to _BIP_CMAC 2022-10-24 11:05:24 -05:00
Denis Kenzior 08845fb19c ie: Change ie_tlv_builder_finalize signature
ie_tlv_builder_init takes a size_t as input, yet for some reason
ie_tlv_builder_finalize takes an unsigned int argument as output.  Fix
the latter to use size_t as well.
2021-07-14 09:58:42 -05:00
Denis Kenzior 297cde85bc unit: Remove test case
This has been superceded by tests in unit/test-band.c
2021-06-04 10:14:04 -05:00
James Prestwood 2ecf5ff0d7 unit: update test-ie with supported rates
For now this just tests supported rates with a zero length
IE.
2021-05-14 14:28:23 -05:00
Torstein Husebø 759dbdd37f treewide: fix typos 2020-01-21 16:03:28 -06:00
Marcel Holtmann 152b56a12a treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
Denis Kenzior f3db34aadf unit: Update to new RSNe builder behavior 2019-09-11 15:28:10 -05:00
James Prestwood a89e064d91 unit: update test-ie to use new builder APIs 2019-04-23 12:56:20 -05:00
James Prestwood 05dcbfd982 unit: update AKM values to 32 bits in test-ie 2019-04-04 16:11:32 -05:00
Andrew Zaborowski 786b93ffc4 unit: Add Extended Element ID tests in test-ie 2017-09-22 12:00:15 -05:00
Julien Massot dc3b17f496 unit: fix ie test comparison
Most likely here we want to compare the variable
not doing an assignment.

unit/test-ie.c:227:2: error: suggest parentheses around
assignment used as truth value [-Werror=parentheses]
assert(expected_len = final_len);
^~~~~~
2017-04-10 09:46:10 -05:00
Denis Kenzior 6a368c0f6e unit: Add ie encapsulation for wsc test 2015-09-10 22:47:50 -05:00
Denis Kenzior e6cb22f412 unit: add ie concatenation tests 2015-07-09 16:27:49 -05:00
Ravi kumar Veeramally c573abf3f3 unit: Unit tests for vendor specific IE 2015-03-16 12:17:07 -05:00
Denis Kenzior bcedd58249 unit: Add ie RSNE Builder test
This particular set of tests makes sure we can build the compact forms
of RSNE.  The test data are the most compact versions of the RSNE IE
examples found in 802.11, Section 8.4.2.27.1
2015-02-03 21:45:45 -06:00
Denis Kenzior 3b3de7923a unit: Add checking of Group Management Cipher 2015-01-20 00:31:13 -06:00
Denis Kenzior d7cd5dbae7 unit: Add checking of PMKIDs in RSNE tests 2015-01-19 23:27:41 -06:00
Denis Kenzior c2a2f29606 unit: Add Capability field comparisons 2015-01-15 23:59:19 -06:00
Denis Kenzior c8fb0b21f1 unit: Add test case #6 for RSNE parser 2015-01-15 23:59:18 -06:00
Denis Kenzior 7dd7ff7094 unit: Add test case #5 for RSNE parser 2015-01-15 23:59:18 -06:00
Denis Kenzior f8a051794a unit: Add test case #4 for RSNE parser 2015-01-15 23:59:18 -06:00
Denis Kenzior c71b70863c unit: Add test case #3 for RSNE parser 2015-01-15 23:59:18 -06:00
Denis Kenzior a01ecd64fa unit: Add test case #2 for RSNE parser 2015-01-15 23:59:18 -06:00
Denis Kenzior 693260befe unit: Add test case for RSNE parser 2015-01-15 23:59:18 -06:00
Marcel Holtmann 34d8b0d308 ie: Keep copyright notice the same for all source files 2014-08-03 08:14:16 +02:00
Denis Kenzior 1f65caf4e4 unit: Take out unused function 2014-07-31 10:18:47 -05:00
Denis Kenzior 70f6999a61 unit: Redo test data setup 2014-07-31 10:17:07 -05:00
Denis Kenzior 89b91b7629 unit: Fix warnings
unit/test-ie.c: In function ‘ie_test_writer’:
unit/test-ie.c:238:2: error: comparison between signed and unsigned
integer expressions [-Werror=sign-compare]
unit/test-ie.c:251:17: error: comparison between signed and unsigned
integer expressions [-Werror=sign-compare]
2014-07-31 09:59:55 -05:00
Jukka Rissanen b461863f78 unit: Add IE builder test cases 2014-07-31 09:59:01 -05:00
Jukka Rissanen 8cb16f41a8 unit: Refactor IE reader test
Use real beacon frame data when testing the IE reader API.
2014-07-30 17:14:46 -05:00
Denis Kenzior 5cf28c6dc7 unit: Fix memory leak
==7978== 29 bytes in 3 blocks are definitely lost in loss record 2 of 2
==7978==    at 0x4C2C66D: malloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==7978==    by 0x4012FD: l_malloc (util.c:62)
==7978==    by 0x4018EF: l_util_hexstring (util.c:372)
==7978==    by 0x40118E: ie_test (in
/home/denkenz/iwd-master/unit/test-ie)
==7978==    by 0x401BE7: l_test_run (test.c:83)
==7978==    by 0x401016: main (in /home/denkenz/iwd-master/unit/test-ie)
2014-07-15 19:18:08 -05:00
Denis Kenzior f2ae753964 unit: Fix compiler warning
unit/test-ie.c: In function ‘ie_test’:
unit/test-ie.c:70:2: error: comparison between signed and unsigned
integer expressions [-Werror=sign-compare]
2014-07-15 19:18:08 -05:00
Denis Kenzior d0e76fda03 unit: Fix style issue 2014-07-15 19:18:08 -05:00
Jukka Rissanen e12bdd02bd unit: Add information element parser unit test cases 2014-07-15 19:18:08 -05:00