feat(wifi): allow single WiFi channel monitoring - #3
Open
wnagele wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
--channel CHto bothdump3411.pyand the standalonewifi_feeder.py: pin the monitor-mode radio to a single fixed 2.4 GHz channel (1–11) instead of hopping 1–11.--channel-dwellis ignored in this mode.Why
The default channel hopper spreads reception across eleven channels (0.2 s dwell each), so a single stationary transmitter is only heard a fraction of the time. When the transmitter's channel is already known — a bench test, or a fixed site you have characterised — full dwell on that channel means no frames lost to hops. Trade-off: the other ten channels go dark, so keep hopping for discovery and pin only for targeted monitoring.
How
WiFiFeederaccepts achannelargument; when set, noChannelHopperthread is created andrun()puts the interface on that channel once via the existingset_channel()(log line:Fixed channel: N (hopping disabled)). The shutdown path is guarded for the absent hopper.--channelis validated againstCHANNELS_24in both entry points (dump3411.pyandwifi_feeder.py's standalonemain()), with a clear error outside 1–11.