Open dankamongmen opened 5 years ago
[schwarzgerat](0) $ env NLCB=debug iw phy
-- Debug: Sent Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[NETLINK HEADER] 16 octets
.nlmsg_len = 32
.type = 16 <genl/family::nlctrl>
.flags = 5 <REQUEST,ACK>
.seq = 1573128702
.port = 578815494
[GENERIC NETLINK HEADER] 4 octets
.cmd = 3
.version = 1
.unused = 0
[ATTR 02] 8 octets
6e 6c 38 30 32 31 31 00 nl80211.
--------------------------- END NETLINK MESSAGE ---------------------------
-- Debug: Received Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[NETLINK HEADER] 16 octets
.nlmsg_len = 2316
.type = 16 <genl/family::nlctrl>
.flags = 0 <>
.seq = 1573128702
.port = 578815494
[GENERIC NETLINK HEADER] 4 octets
.cmd = 1
.version = 2
.unused = 0
[ATTR 02] 8 octets
6e 6c 38 30 32 31 31 00 nl80211.
[ATTR 01] 2 octets
19 00 ..
[PADDING] 2 octets
00 00 ..
[ATTR 03] 4 octets
01 00 00 00 ....
[ATTR 04] 4 octets
00 00 00 00 ....
[ATTR 05] 4 octets
16 01 00 00 ....
[ATTR 06] 2100 octets
14 00 01 00 08 00 01 00 01 00 00 00 08 00 02 00 ................
0e 00 00 00 14 00 02 00 08 00 01 00 02 00 00 00 ................
08 00 02 00 1a 00 00 00 14 00 03 00 08 00 01 00 ................
iw
detects both network devices and the underlying PHYs. We should learn these, as well.