How ramonfontes/wmediumd works
wmediumd is a Linux wireless-medium simulator for mac80211_hwsim. A user supplies interface and channel-model configuration; the daemon registers with the kernel, then mediates wireless frames with simulated loss and delay. Its documented channel options include per-link probabilities or SNR, path loss, and Nakagami fading; the server also supports live medium updates. The graph preserves these capabilities, but the frame-processing and model-dispatch excerpts are incomplete, so uncertain implementation links are omitted. Source-index references support several module links; README statements support the documented workflow.
Main entry points: wmediumd.c Simulator daemon · wserver.c Update server · wserver_messages.c Control messages · config.c Config parsing
Components 21
Simulation runtime
- Simulator daemon
wmediumd/wmediumd.c - Stations and links
wmediumd/wmediumd.h - Frame protocol
wmediumd/ieee80211.h - Internal lists
wmediumd/list.h - Config parsing
wmediumd/config.c - Config interface
wmediumd/config.h
Channel modeling
- Error-rate tables
wmediumd/per.c - SNR and loss
wmediumd/wmediumd.c - Path loss and fading
wmediumd/wmediumd.c
Live control
- Update server
wmediumd/wserver.c - Station lifecycle
wmediumd/wmediumd_dynamic.c - Control messages
wmediumd/wserver_messages.c - Network encoding
wmediumd/wserver_messages_network.c - Message definitions
wmediumd/wserver_messages.h - Codec declarations
wmediumd/wserver_messages_network.h - Server interface
wmediumd/wserver.h - Dynamic interface
wmediumd/wmediumd_dynamic.h - Server API types
wmediumd/wserver.h
Other components
- Operator
- Medium config
- mac80211_hwsim
Connections 23
- Operator → Medium config: provides settings
README.md - Medium config → Config parsing: parsed by
README.md - Operator → Simulator daemon: starts daemon
README.md - Simulator daemon → Config parsing: uses parser
wmediumd/wmediumd.c - Simulator daemon → mac80211_hwsim: registers with
wmediumd/wmediumd.c - mac80211_hwsim → Simulator daemon: forwards frames
README.md - Simulator daemon → Stations and links: maintains context
wmediumd/wmediumd.c - Simulator daemon → Frame protocol: uses frame definitions
wmediumd/wmediumd.c - Simulator daemon → Update server: starts update service
wmediumd/wmediumd.c - Config parsing → Config interface: implements
wmediumd/config.c - Simulator daemon → Error-rate tables: uses PER model
- Simulator daemon → SNR and loss: selects link loss
wmediumd/wmediumd.c - Simulator daemon → Path loss and fading: computes channel effects
wmediumd/wmediumd.c - Operator → Update server: sends live updates
- Update server → Station lifecycle: changes stations
wmediumd/wserver.c - Update server → Stations and links: updates link state
wmediumd/wserver.c - Update server → Control messages: sends responses
wmediumd/wserver.c - Control messages → Network encoding: uses byte conversion
wmediumd/wserver_messages.c - Control messages → Message definitions: uses message types
wmediumd/wserver_messages.c - Network encoding → Codec declarations: implements declarations
wmediumd/wserver_messages_network.c - Update server → Server interface: implements interface
wmediumd/wserver.c - Station lifecycle → Dynamic interface: implements interface
wmediumd/wmediumd_dynamic.c - Simulator daemon → Internal lists: uses list utilities
wmediumd/wmediumd.c