net80211 ALQ logging

Overview

The net80211 ALQ logging routine(s) were something added by AdrianChadd around 2011/2012 to facilitate adding event tracing to the net80211 stack and drivers. The ath(4) driver implements its own ALQ support (see sys/dev/ath/if_ath_alq.[ch]). The desire is to provide a single serialised tracing method between wireless stack and drivers to aid in debugging both.

Interface

The single entry point is ieee80211_alq_log(). It takes:

The intention is that high throughput net80211 handling would optionally generate net80211 binary trace logs - such as encryption/decryption status, per-packet transmit handling, per-packet receive handling, receive A-MPDU reordering - which a tool would then decode. It could also capture/generate said binary data on an embedded device and then decode it on a workstation.

Drivers would then also call ieee80211_alq_log() for their trace data, but set the source id to a unique per-driver ID and then populate the op, flags and payload with their own information. The same tool could then decode those fields as appropriate.

TODO



CategoryWiFi

WiFi/AlqLogging (last edited 2024-12-04T04:17:47+0000 by MarkLinimon)