3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 23:09:34 +01:00
Commit Graph

289 Commits

Author SHA1 Message Date
Marcel Holtmann
2d75ab55e7 tools: Add simple utility for interacting with mac80221_hwsim 2014-08-08 15:40:43 -07:00
Marcel Holtmann
9694998f28 monitor: Minor typo fix in usage text 2014-08-08 15:20:24 -07:00
Marcel Holtmann
218e38aa87 core: Store feature flags of wiphy devices 2014-08-07 15:41:30 -07:00
Marcel Holtmann
c9b3adbbcf core: Request current regulatory setting when starting up 2014-08-07 13:23:02 -07:00
Marcel Holtmann
a17584e680 core: First command should be to read protocol features 2014-08-07 13:13:31 -07:00
Marcel Holtmann
b7a421673c core: Add sanity check to sync RTNL link deletion with nl80211 2014-08-06 23:52:42 -07:00
Marcel Holtmann
46b9f4a0a8 core: Subscribe to all nl80211 multicast groups 2014-08-06 23:52:08 -07:00
Marcel Holtmann
442ba2412d core: Add network interface to beginning of list 2014-08-06 23:51:25 -07:00
Marcel Holtmann
f400e9dd44 core: Request list of all network interfaces 2014-08-07 06:27:32 +02:00
Marcel Holtmann
af2bb68e07 core: Only enable RTNL debugging when IWD_RTNL_DEBUG is set 2014-08-07 05:28:58 +02:00
Marcel Holtmann
32c415e4e8 core: Track wiphy devices and its network interfaces 2014-08-07 05:15:20 +02:00
Marcel Holtmann
d04ecde554 core: Only enable netlink debugging when IWD_GENL_DEBUG is set 2014-08-07 01:06:51 +02:00
Marcel Holtmann
34f5c56199 monitor: Print program description and version 2014-08-07 01:01:28 +02:00
Marcel Holtmann
609cc86717 monitor: Do not abort when receiving unknown ARPHRD 2014-08-06 06:52:09 +02:00
Marcel Holtmann
e4e45566d9 monitor: Some attributes are either flags or unsigned 16-bit integers 2014-08-06 05:49:12 +02:00
Marcel Holtmann
19bdbc3c2d monitor: Add support for nested array attributes 2014-08-06 04:47:10 +02:00
Marcel Holtmann
d5989e62ed monitor: Fix casting for 8-bit and 16-bit unsigned integers 2014-08-06 04:42:59 +02:00
Marcel Holtmann
f0e7bb7509 monitor: Add support for decoding attributes in BSS information 2014-08-06 04:02:15 +02:00
Marcel Holtmann
477682ad5d monitor: Add support for attributes containing signed 32-bit integers 2014-08-06 04:01:49 +02:00
Marcel Holtmann
080338ba41 monitor: Print address attributes as strings and not binary 2014-08-06 04:01:12 +02:00
Marcel Holtmann
8b11aedacd monitor: Read the generic netlink id from the trace file 2014-08-06 00:27:19 +02:00
Marcel Holtmann
d484715a17 monitor: Check that protocol type is set to generic netlink 2014-08-06 00:12:20 +02:00
Marcel Holtmann
d0068dcf4c monitor: Add support for reading traces from PCAP files 2014-08-05 22:40:43 +02:00
Marcel Holtmann
ce202ac843 monitor: Add helper functions for parsing-only netlink monitor 2014-08-05 22:37:31 +02:00
Marcel Holtmann
e260854da3 monitor: Add command line option for netlink monitor device 2014-08-05 21:39:54 +02:00
Marcel Holtmann
81118dfc1f monitor: Add initial support for nested attribute decoding 2014-08-03 22:07:07 +02:00
Marcel Holtmann
dfcb1ddbc1 monitor: Print data packet for unknown attributes 2014-08-03 08:38:55 +02:00
Marcel Holtmann
34d8b0d308 ie: Keep copyright notice the same for all source files 2014-08-03 08:14:16 +02:00
Marcel Holtmann
8894e213e5 README: Add notes about netlink monitoring requirements 2014-08-03 08:07:35 +02:00
Marcel Holtmann
db60e4d48f monitor: Add initial version of iwmon utitlity 2014-08-03 06:03:53 +02:00
Marcel Holtmann
e724c166fe linux: Update copy of kdbus.h public header 2014-08-03 00:10:37 +02:00
Marcel Holtmann
1262d53c20 linux: Update copy of nl80211.h public header 2014-08-03 00:09:49 +02:00
Denis Kenzior
2c0e997ee8 build: Avoid redefining _FORTIFY_SOURCE
Gentoo (and others) define _FORTIFY_SOURCE=2 by default.  Since we
always define it as well, this results in redefinition warnings &
configure failure.
2014-08-01 09:52:36 -05: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
b90d914a3f ie: Adding IE builder support
These functions can be used to create IE TLV messages.
2014-07-31 09:58:58 -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
Marcel Holtmann
999ba12f31 core: Add skeleton for nl80211 setup 2014-07-29 21:25:01 +02:00
Marcel Holtmann
3cb432a81c doc: Prefer !var over var == NULL checks 2014-07-20 17:48:48 +02:00
Denis Kenzior
54b0b7d9e9 doc: Add coding-style.txt from oFono 2014-07-19 23:17:51 -05:00
Jukka Rissanen
61245bc14e ie: Adding function to recurse when reading
This function is needed when building recursive IE.
2014-07-15 19:19:04 -05:00
Denis Kenzior
4943f2300d AUTHORS: Mention Jukka's contributions 2014-07-15 19:18:08 -05:00
Denis Kenzior
15d6663a54 .gitignore: Ignore test-ie 2014-07-15 19:18:08 -05:00
Denis Kenzior
119a1e7de3 ie: Add additional boundary checking
==20758== Invalid read of size 1
==20758==    at 0x401254: ie_tlv_iter_next (ie.c:55)
==20758==    by 0x40104B: ie_test (test-ie.c:57)
==20758==    by 0x4021C0: l_test_run (test.c:83)
==20758==    by 0x4011B7: main (test-ie.c:123)
==20758==  Address 0x51e10f3 is 0 bytes after a block of size 19 alloc'd
==20758==    at 0x4C2C874: realloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==20758==    by 0x4010CF: append_data (test-ie.c:101)
==20758==    by 0x40118F: main (test-ie.c:119)
==20758==
==20758== Invalid read of size 1
==20758==    at 0x401266: ie_tlv_iter_next (ie.c:56)
==20758==    by 0x40104B: ie_test (test-ie.c:57)
==20758==    by 0x4021C0: l_test_run (test.c:83)
==20758==    by 0x4011B7: main (test-ie.c:123)
==20758==  Address 0x51e10f4 is 1 bytes after a block of size 19 alloc'd
==20758==    at 0x4C2C874: realloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==20758==    by 0x4010CF: append_data (test-ie.c:101)
==20758==    by 0x40118F: main (test-ie.c:119)
2014-07-15 19:18:08 -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