On Wed, 2022-03-09 at 15:55 -0500, Bruce A. Johnson wrote:
Does anyone have a recommendation on how to obtain usable link speed
information from iwd? Not finding anything in the API, I resorted to
the iw tool, and that gave me unbelievable information like:
iw dev wlan0 link
Connected to 94:a6:7e:e0:9b:10 (on wlan0)
SSID: NETGEAR62-5G
freq: 5180
RX: 729218722 bytes (698037 packets)
TX: 649796954 bytes (597324 packets)
signal: -36 dBm
rx bitrate: 24.0 MBit/s
tx bitrate: 6.0 MBit/s
bss flags: short-slot-time
dtim period: 1
beacon int: 100
When the connection was in this state, I was able to pass data with
iperf3 at nearly 100 Mbps in either direction with no packet loss on
the transmit and about 1% packet loss on the receive. When I moved
the router 10-12 meters further away, iw reported a higher bit rate.
(I couldn't test throughput because there was no connection on the
WAN side in the new location.)
# iw dev wlan0 link
Connected to 94:a6:7e:e0:9b:10 (on wlan0)
SSID: NETGEAR62-5G
freq: 5180
RX: 24944 bytes (170 packets)
TX: 1949 bytes (12 packets)
signal: -64 dBm
rx bitrate: 260.0 MBit/s VHT-MCS 3 80MHz short GI VHT-NSS 2
Ah I missed this. For whatever reason VHT (Very High Throughput) was
not enabled before. This isn't something IWD has a choice over, the AP
controls whether its using HT, VHT, or legacy and as you've seen here
there are other heuristics to determine whether it is used.
tx bitrate: 6.0 MBit/s
bss flags: short-slot-time
dtim period: 1
beacon int: 100
I must have a misunderstanding of what those figures mean. Is it that
the only reasonable indication of link quality is the signal
strength?
--
Bruce Johnson
Chantilly, Virginia
OpenPGP key ID: 296D1CD6F2B84CAB
https://keys.openpgp.org/
_______________________________________________
iwd mailing list -- iwd(a)lists.01.org
To unsubscribe send an email to iwd-leave(a)lists.01.org