wltrace.radiotap module

Radiotap header parser.

class wltrace.radiotap.RadiotapHeader(fh, *args, **kwargs)[source]

Bases: wltrace.common.GenericHeader

Radiotap header.

See this document for radiotap header format: http://www.radiotap.org/

See this document for all defined radiotap fields: http://www.radiotap.org/defined-fields/all

FIELDS = ['_it_version', '_it_pad', '_it_len', '_it_present']
PACK_PATTERN = '<BBHI'

Radiotap header is always in little endian.

PRESENT_FLAGS = [(0, 'Q', 'mactime', 8), (1, 'B', '_flags', 1), (2, 'B', 'rate', 1), (3, 'I', '_channel', 2), (4, 'xx', 'unused', 1), (5, 'b', 'signal', 1), (6, 'b', 'noise', 1), (7, 'xx', 'unused', 2), (8, 'xx', 'unused', 2), (9, 'xx', 'unused', 2), (10, 'x', 'unused', 1), (11, 'x', 'unused', 1), (12, 'x', 'unused', 1), (13, 'x', 'unused', 1), (14, 'xx', 'unused', 2), (19, 'bbb', 'mcs', 1), (20, 'IHxx', '_ampdu', 4)]
classmethod from_phy_info(phy)[source]
to_binary()[source]
to_phy()[source]