How openipc/devourer works
Devourer is a userspace Realtek Wi-Fi driver: an application configures and opens an adapter, then exchanges raw monitor-mode packets and radio-control operations through a common API, USB transport, and chip-specific backends. The driver also supports sensing, time coordination, hopping, and evidence-based channel migration. The README documents those capabilities; sampled sources confirm selected firmware, EFUSE, descriptor, sensing, and migration responsibilities. Many runtime call paths and unsampled backends are not shown, so their links are omitted rather than inferred.
Main entry points: RtlJaguarDevice.cpp Chip backends · RtlAdapter.cpp Adapter core · controller.py Adaptive controller · IRadio.h Radio API
Components 23
Driver API and transport
- Device configuration
src/DeviceConfig.h - Radio API
src/IRadio.h - USB transport
src/UsbTransport.cpp - Adapter core
src/RtlAdapter.cpp
Radio backends and setup
- Chip backends
src/jaguar1/RtlJaguarDevice.cpp - Firmware loading
src/jaguar1/FirmwareManager.cpp - EFUSE and power data
src/jaguar1/EepromManager.cpp - PHY tables
src/PhyTableLoader.cpp - Chip descriptors
src/jaguar3/FrameParserJaguar3.h
Link operation
- Radiotap framing
src/RadiotapBuilder.cpp - Packet injection
src/TxMode.cpp - Receive parsing
src/RxPacket.h - TX power control
src/TxPower.cpp - Link health
src/LinkHealth.cpp
Coordination and sensing
- Adaptive hopset
src/hopset/HopsetAuthority.h - Channel migration
src/chanmig/MigResponder.h - Channel survey
src/sensing/DwellExecutor.h - Radio timing
src/TsfSync.h - Sounding and reports
src/Sounding.h
Link modeling
- Energy model
tools/precoder/energy_model.py - Link model
tools/precoder/link_model.py - Adaptive controller
tools/precoder/controller.py
Other components
- Host application
Connections 22
- Host application → Device configuration: configures
- Host application → Radio API: controls
- Radio API → Adapter core: operates
- Adapter core → USB transport: transfers over
- Adapter core → Chip backends: selects
- Chip backends → Firmware loading: loads firmware
- Chip backends → EFUSE and power data: reads calibration
- Chip backends → PHY tables: configures PHY
- Chip backends → Chip descriptors: uses descriptors
- Host application → Packet injection: injects frames
- Host application → Receive parsing: receives frames
- Radiotap framing → Packet injection: sets per-frame controls
- Host application → TX power control: sets power
- Host application → Link health: diagnoses link
- Host application → Adaptive hopset: adapts hopset
- Adaptive hopset → Host application: agrees with peer
- Host application → Channel migration: coordinates channel move
- Host application → Channel survey: surveys channels
- Host application → Radio timing: synchronizes radios
- Host application → Sounding and reports: captures sounding
- Adaptive controller → Energy model: uses
tools/precoder/controller.py - Adaptive controller → Link model: builds link rows
tools/precoder/controller.py