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

Consider new hotspot channel selection #203

Open
trickeydan opened this issue Jan 24, 2023 · 5 comments
Open

Consider new hotspot channel selection #203

trickeydan opened this issue Jan 24, 2023 · 5 comments
Labels
A | astwifid This relates to astwifid good first issue Good for newcomers

Comments

@trickeydan
Copy link
Contributor

We currently hardcode the WiFi channel for the hotspot. We should make this an option in Astoria.toml so that we can change it without changing code.

@trickeydan trickeydan added A | astwifid This relates to astwifid good first issue Good for newcomers labels Jan 24, 2023
@RealOrangeOne
Copy link
Member

Are we not able to let the Pi chose the best channel at the time? At a competition event, whatever the default channel is is probably going to get pretty crowded.

@trickeydan
Copy link
Contributor Author

trickeydan commented Jan 25, 2023

Are we not able to let the Pi chose the best channel at the time? At a competition event, whatever the default channel is is probably going to get pretty crowded.

That sounds like a separate thing to me and also is a much larger and complex task to implement scanning and channel selection. There's a thing in the kernel for ACS, but we'd need to test it with the Pi WiFi driver and things.

@trickeydan trickeydan changed the title Add WiFi channel for hotspot to config Consider new hotspot channel selection Jan 25, 2023
@RealOrangeOne
Copy link
Member

Ah I see, I had thought it was as simple as pick_the_best_channel = true. I agree if it's something we'd have to implement ourselves it's a separate thing probably not worth doing for a while.

@trickeydan
Copy link
Contributor Author

Ah I see, I had thought it was as simple as pick_the_best_channel = true

It is sometimes. We need to make sure that both the kernel and hostapd are being compiled with ACS enabled (I haven't checked yet), that the Broadcom driver supports it (this is the biggest question) and then we need to add the config option to hostapd.

Unfortunately hostapd silently fails if any of the above isn't true, so I'd rather we were really sure. The fallback mechanism appears to be a random channel.

@raccube
Copy link
Member

raccube commented Jan 25, 2023

The other approach would be to manually do a network scan before starting the hotspot to find an uncongested channel. However that would delay the start of the hotspot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A | astwifid This relates to astwifid good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants