James Prestwood
e90356285b
nlmon: update to use ie_owe_transition_info
2021-09-22 13:53:40 -05:00
James Prestwood
bfde5d4d09
nlmon: print RSNXE
2021-09-21 16:37:57 -05:00
James Prestwood
4dff4b2336
nlmon: print Mobility Domain element
2021-09-21 16:37:44 -05:00
James Prestwood
5c7b5920b0
nlmon: print Fast BSS Transition element
2021-09-21 16:37:36 -05:00
Denis Kenzior
805920dc68
monitor: print OCVC bit in RSNE
2021-09-17 08:21:49 -05:00
James Prestwood
4b7138b05c
monitor: parse WFA OWE Transition IE
2021-09-16 11:22:25 -05:00
Denis Kenzior
eab0bf6e8a
monitor: Fix invalid read
...
ERROR: AddressSanitizer: global-buffer-overflow on address 0x000000512c08 at pc 0x00000041848d bp 0x7ffcdde71870 sp 0x7ffcdde71860
READ of size 8 at 0x000000512c08 thread T0
#0 0x41848c in print_attributes monitor/nlmon.c:6268
#1 0x42ac53 in print_message monitor/nlmon.c:6544
#2 0x438968 in nlmon_message monitor/nlmon.c:6698
#3 0x43d5e4 in nlmon_receive monitor/nlmon.c:7658
#4 0x4b3cd0 in io_callback ell/io.c:120
#5 0x4b085a in l_main_iterate ell/main.c:478
#6 0x4b0ee3 in l_main_run ell/main.c:525
#7 0x4b0ee3 in l_main_run ell/main.c:507
#8 0x4b13ac in l_main_run_with_signal ell/main.c:647
#9 0x4072fe in main monitor/main.c:811
2021-07-14 19:10:34 -05:00
Denis Kenzior
5120f46199
monitor: Dump NL80211_BAND_ATTR_HT_CAPA
2021-05-25 18:42:57 -05:00
Denis Kenzior
ec6ee1c20b
monitor: Dump NL80211_BAND_ATTR_HT_MCS_SET
2021-05-25 18:42:57 -05:00
Denis Kenzior
1cde7c9f3e
monitor: Fix wrong bitmask for VHT capabilities
...
The bitmask was erroneously allowing bits 16 and 17 to be examined, but
these bits belong to the Number of Sounding Dimensions field.
2021-05-25 18:42:23 -05:00
Denis Kenzior
a20a61dca4
monitor: Dump EXPECTED_THROUGHPUT attribute
2021-05-25 18:42:23 -05:00
Denis Kenzior
0dca744d4b
monitor: Print out VHT Operation & VHT Capabilities
2021-05-24 14:31:04 -05:00
James Prestwood
b531444a7c
monitor: print out extended feature name
...
This prints out the NL80211_* enum name for extended features
rather than a hex string.
2021-03-24 14:38:32 -05:00
Denis Kenzior
ea3dedffd9
monitor: Use test_bit from ell
2021-03-12 13:46:04 -06:00
Denis Kenzior
e467566866
monitor: Use bit_field from ell
2021-03-11 22:31:50 -06:00
Denis Kenzior
7de5b4adef
treewide: replace util_mem_is_zero with l_memeqzero
2021-03-09 15:40:35 -06:00
Denis Kenzior
6a7c7df7fd
monitor: Dump more scan attributes
2021-02-03 13:34:11 -06:00
Denis Kenzior
996700e207
monitor: Print MEASUREMENT_DURATION* attributes
2021-02-02 15:32:49 -06:00
Denis Kenzior
83e1265c6b
monitor: Add --noies option
...
To help understand scanning results a bit better and cut down on scan
output add an option to not print the contents of the IEs. Only the
SSID IE will be printed.
2021-02-02 12:04:53 -06:00
Denis Kenzior
8bf43c95a8
monitor: Pretty-print NL80211_SCAN_FLAGS
2021-02-02 10:37:12 -06:00
Denis Kenzior
8d76cae6b1
monitor: Dump some additional ROUTE attributes
2020-11-04 14:51:03 -06:00
Denis Kenzior
7c5fb5aad4
monitor: Pretty-print IFA_CACHEINFO entries
2020-11-04 14:51:00 -06:00
Denis Kenzior
609f9c8f43
monitor: Also print IPv6 addresses
2020-11-04 14:29:21 -06:00
Denis Kenzior
5ec8a9f116
monitor: Pretty-print family for RTM_*ROUTE messages
2020-11-04 13:33:58 -06:00
Denis Kenzior
ef7d33ee86
monitor: Pretty-print RTPROT_* values
2020-11-04 13:33:26 -06:00
Denis Kenzior
62810ca3e7
monitor: pid_t is signed on Linux
2020-11-04 10:56:13 -06:00
Alvin Sipraga
01912a427a
monitor: print survey info results
...
Example output:
> Result: New Survey Results (0x33) len 76 [multi] 14.062327
Interface Index: 6 (0x00000006)
Survey Info: len 64
Frequency: 2472 (0x000009a8)
Noise dBm: -89
Survey Time: 100 (0x0000000000000064)
Busy Time: 4 (0x0000000000000004)
RX Time: 3 (0x0000000000000003)
TX Time: 0 (0x0000000000000000)
2020-10-27 09:53:49 -05:00
Denis Kenzior
84e32ba448
monitor: Improve RTM_NEWADDR/GETADDR/DELADDR decoding
2020-10-05 22:42:13 -05:00
Denis Kenzior
e9179c4270
monitor: Nicely print scope field
2020-10-05 22:40:29 -05:00
Denis Kenzior
f9f112b4f5
monitor: Prettify CQM event decoding
2020-05-01 21:40:07 -05:00
Rosen Penev
a47609acbe
iwd: remove unnecessary semicolons
...
Found with clang's -Wextra-semi-stmt
2020-04-08 21:02:15 -05:00
Rosen Penev
6b12593ec0
nlmon: fix -Wformat under musl 1.2.0
...
musl 1.2.0 uses 64-bit time, even under 32-bit OSes. Cast to int64_t
and use the proper macro.
2020-04-02 00:30:59 -05:00
Andrew Zaborowski
e705c4382a
monitor: Print WFD IE contents
...
Only print the WFD version 2.1.0 spec subelements which removed all the
low level video format details from the IEs so this code is much
shorter.
2020-03-20 10:47:26 -05:00
Denis Kenzior
98e1d38056
monitor: Fix crash
...
NLMSG_OK and NLMSG_NEXT expect to operate on nlmsg_len which is an int
(signed type). The current code uses an unsigned type which means that
it cannot detect underflows. Such underflows can happen when NLMSG_NEXT
tries to advance nlmsg_len by a number of bytes (due to alignment) which
are greater than the current nlmsg_len itself. This causes iwmon to
crash on certain messages.
Reported-By: Daniel Wagner <wagi@monom.org>
2020-01-22 11:52:28 -06:00
Torstein Husebø
759dbdd37f
treewide: fix typos
2020-01-21 16:03:28 -06:00
Andrew Zaborowski
b715022ce6
iwmon: Update to use NL80211_ATTR_SOCKET_OWNER
...
NL80211_ATTR_IFACE_SOCKET_OWNER was renamed to NL80211_ATTR_SOCKET_OWNER.
2019-12-08 21:47:21 -06:00
Andrew Zaborowski
6b6e205f0f
iwmon: Print WSC AuthorizedMACs extended attributes
2019-12-08 21:47:17 -06:00
James Prestwood
05c8a1af47
monitor: print START_TIME_TSF/BSSID values
2019-11-20 20:04:27 -06:00
James Prestwood
772061a7d0
monitor: print parent TSF
2019-11-15 14:17:39 -06:00
James Prestwood
f2a7966897
monitor: add support for parsing RRM Reports
...
Only beacon reports are parsed for now
2019-11-14 17:46:35 -06:00
James Prestwood
b7cccb6bcc
monitor: add support for parsing RRM Requests
...
Only beacon requests are parsed for now
2019-11-14 17:46:35 -06:00
Denis Kenzior
d090747c06
monitor: Dump ATTR_RATES
2019-10-28 12:44:57 -05:00
Andrew Zaborowski
580fd757c7
monitor: Fix the OUI check for P2P action frames
...
wsc_wfa_oui is different from wifi_alliance_oui. Also use wsc_wfa_oui
instead of a local copy in print_wsc_vendor_extension.
2019-10-25 13:33:07 -05:00
Marcel Holtmann
152b56a12a
treewide: Move the Intel copyright forward to 2019
2019-10-25 00:43:08 +02:00
Denis Kenzior
7397903234
monitor: Fix unused variable warning
2019-10-17 12:36:44 -05:00
Denis Kenzior
e4dc23a523
monitor: Use print_ie in auth frame dumper
...
Do not assume that the challenge IE is present or the only IE in the
authentication frame
2019-10-17 12:04:08 -05:00
Denis Kenzior
0b8de3d5df
monitor: Fix p2p channel list dumper
...
This dumper probably intended to update pos after invoking strncpy.
However, strncpy returns the number of bytes that *would* have been
copied and so the logic gets a bit complex to get completely right.
Instead, switch to using l_string since this is inside the monitor and
not particularly performance critical.
2019-10-17 11:49:11 -05:00
James Prestwood
2fd667af94
monitor: print QoS Map
...
The actual data in the map is very low level, but this at least shows
us that the IE was included.
2019-09-13 17:05:31 -05:00
James Prestwood
6902bb9dae
monitor: print association response events
2019-09-09 15:41:15 -05:00
Denis Kenzior
e01a036a41
monitor: decode additional Extended Capability bits
2019-08-23 08:54:17 -05:00