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

Find the best wifi canal #42

Open
fheslouin opened this issue Oct 13, 2016 · 5 comments
Open

Find the best wifi canal #42

fheslouin opened this issue Oct 13, 2016 · 5 comments

Comments

@fheslouin
Copy link
Collaborator

In some crowded spot, the wifi canal is full and unusable.

We should try to checkout for a spectrum analyzer, find out the best canal and start hostapd with this canal. Of course this will increase the time for the AP to get ready.

@letompouce
Copy link
Member

iwlist wlan0 scan | awk ' /Frequency:2.*Channel/ { print $4 }' | tr -d ')' | sort -n | uniq -c | sort -r | tail -n 1 | awk '{ print $2 }'

@bochecha
Copy link
Contributor

I'd say don't spend too much time on this. @letompouce 's one liner is simple enough that if it improves things it is worth it.

But long term we're going to integrate the hotspot management into Ideascube (probably through Cockpit and NetworkManager), so it's probably not worth going much further than that.

(also, at home, the current hardcoded canal was the less crowded one, so my anecdata clearly shows conclusively that the status quo is perfect 😜 )

@letompouce
Copy link
Member

See comments around channel and acs_num_scans in /usr/share/doc/hostapd/examples/hostapd.conf.gz...

@fheslouin
Copy link
Collaborator Author

@letompouce I think your suggestion are quite interesting !

I'm willing to make some tests and adopt it if it work. I think it is better to let hostapd doing this job !

@fheslouin
Copy link
Collaborator Author

After a bit of research, ACS (Automatic Channel Selection) is not available for our driver.

Here is the list of supported driver :

  • ath9k
  • ath5k
  • ath10k

CONFIG_ACS=y has to be enable during compilation as well, see https://wireless.wiki.kernel.org/en/users/Documentation/acs#hostapd_setup for more details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants