Repository navigation
fix: refuse up front when the WiFi channel can't host an AP (no IR) - #3
Merged
Merged
Conversation
Found on real hardware after 0.7.0: an Intel AX201 connected to a phone
hotspot on 5 GHz channel 44. The card marks 5 GHz 36-144 "no IR", and as a
single-channel radio it must host on the WiFi's channel, so hostapd failed
("Hardware does not support configured channel") and the NetworkManager
fallback failed with "No suitable device found".
- parse AP-capable frequencies from `iw phy info` (skip disabled, no IR,
radar detection); expose as capability.ap_frequencies
- channel plan: refuse an unusable WiFi channel with the 2.4 GHz workaround;
with --allow-disconnect only the single-interface method runs, on an
allowed channel; free choice picks allowed channels, falling back to 2.4 GHz
- detect and the GUI hardware report show 5 GHz hosting and warn in advance
- NM strategies wait until NetworkManager adopts the virtual interface
- tests reproduce the real case with the card's real channel flags
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.
Summary
Found on real hardware right after 0.7.0: an Intel AX201 connected to a phone hotspot on 5 GHz channel 44. The card marks 5 GHz channels 36–144
no IR(it may join, but not start, networks there). Being a single-channel radio, it must host on the WiFi's channel, so hostapd failed and the NetworkManager fallback failed with "No suitable device found".iw phy info(skipdisabled,no IR,radar detection).--allow-disconnecthosts on an allowed channel instead.detectand the GUI warn before starting;detect --jsonaddscapability.ap_frequenciesandverdict.warnings.Test plan
apsta detecton the affected laptop now warns: "Your WiFi is on 5 GHz channel 44, where this card can't host."