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

Refactor ISO countries + create IW parsing class #1443

Merged
merged 18 commits into from
Nov 7, 2023
Merged

Conversation

billz
Copy link
Member

@billz billz commented Nov 4, 2023

No description provided.

@billz billz linked an issue Nov 5, 2023 that may be closed by this pull request
@billz
Copy link
Member Author

billz commented Nov 6, 2023

This PR substantially changes how RaspAP interacts with wireless-regdb, the regulatory database used by the Linux kernel.

RaspAP's internal wireless.json is retired in favor of an IwParser class that leverages iw and thehostapd source code. Available frequencies (channels) now follow the regulatory data for a given country as determined by the Linux kernel.

Frequencies with the following regulatory restrictions are excluded:

  • (no IR): the AP won't Initiate Radiation until a DFS scan (or similar) is complete on these bands.
  • (radar detection): the specified channels are shared with radar equipment.
  • (disabled): self-explanatory.

Per the hostapd source, for frequencies > 5500 MHz only the following channels are allowed:
100 108 116 124 132 140 149 157 184 192

Selecting a country code in the Hotspot > Advanced now sets the wireless regulatory domain with iw reg set [ISO 3166-2 code]. Another nicety is the country select is populated with isoquery, which is more comprehensive, standardized and (most importantly) has locale support.

Configuring an AP now correctly sets the VHT center frequency segment value depending on the channel.

The end result is users are able to select their own country, rather than pick from a narrow list of 5GHz supported ones, and configure an 802.11ac AP using channels supported by both the Linux kernel and hostapd.

tl;dr: 802.11ac support for everyone — if your country (and hardware) permits it 😉

hostapd-basic

@Ekiben542 @godfuture thanks for reporting this, it's long overdue

@billz billz merged commit fbec450 into master Nov 7, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

802.11ac
1 participant