booyaa / wifiscanner

A crate to list WiFi hotspots in your area
Apache License 2.0
59 stars 34 forks source link

Herculean feature: radio bandwidth / channels occupied #58

Open Artoria2e5 opened 7 months ago

Artoria2e5 commented 7 months ago

Is your feature request related to a problem? Please describe.

Wifiscanner currently only returns a single channel number. This is not quite enough for "site surveys" (channel-picking), because WiFi channels overlap to variable degrees depending on the radio mode used.

For example, for the notoriously crowded 2.4 GHz, hotspots may decide nicely to use 20 MHz, though the more common default is 40-if-possible (and routers sure have a liberal definition of "possible"). Just knowing another hotspot is "channel 3" is not enough to ensure enough spacing for my 20 MHz "channel 7" hotspot, because it’s unknown whether the gentleman on 3 is 20-wide or 40-wide. (See also https://commons.wikimedia.org/wiki/File:NonOverlappingChannels2.4GHz802.11-en.svg)

Describe the solution you'd like

Wifiscanner adds a new field to the Wifi struct to indicate bandwidth. This is... easier said than done -- that's why all the site survey apps are system-specific and paid (or at least require registration).

Describe alternatives you've considered

Well, don't do it because it's out of scope. It might be. People will have to resort to system-specific ways of doing this stuff... which they already are. But on the other hand, some of that information is already in the output.

Additional context

Nothing for now.

Well, we also lack "maximum speed" indication, but that's also complicated: