Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Herculean feature: radio bandwidth / channels occupied #58

Open
Artoria2e5 opened this issue Mar 11, 2024 · 0 comments
Open

Herculean feature: radio bandwidth / channels occupied #58

Artoria2e5 opened this issue Mar 11, 2024 · 0 comments

Comments

@Artoria2e5
Copy link

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).

  • On macOS, /blahblah/airport -s seems to already provide this information for 2.4G. For example, two of my neighbors' hotspots scan as channel 1,+1 and 6,-1. My fancy "Wifi Explorer" app says they are using 40 GHz: one starting from 1 and expanding up, the other starting from 6 and extending down. There is no similar indication for 5G, even though there are 80 MHz and 160 MHz hotspots around me.
  • On Windows, I am failing to find any of that indication for netsh. There is some neat information about channel utilization, but that's hardly relevant to our use case. I wonder what native API "inSSIDer" is calling for that.
  • On Linux,
    • 2.4GHz stations with 40 MHz capabilities give a "HT20/HT40" readout in iw dev wlan0 scan, as far as I can tell. The "secondary channel offset" line corresponds to which way it extends.
    • 5GHz stations might give its 160 capability in the VHT and HE sections, but the room my Linux box happens to be in is not in range of my neighbor's fancy 160 MHz hotspot.

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:

  • Nothing on mac.
  • Windows has it, but it caps at 54.
  • Linux iw has it, but it caps at 54. It provides enough information about MAC and other weird things for you'd need to multiply the 54 into the real, actual maximum rate, but parsing it might be too much work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant