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

Add helper to force WiFi scan in AP mode #84

Merged
merged 1 commit into from
Jul 23, 2019
Merged

Conversation

fhunleth
Copy link
Member

For WiFi configuration, it is nice to start a WiFi module up in AP mode
so that users can connect to it and select a WiFi network for the device
to use. Scanning in AP mode is problematic since the WiFi module needs
to look at other frequencies than the one that it's on to see if there
are APs around. Currently the wpa_supplicant doesn't support doing this.
To work around that, this includes a small C program that sends the
right message through the nl80211 netlink interface. Discovered APs go
through the wpa_supplicant and are reported like normal.

For WiFi configuration, it is nice to start a WiFi module up in AP mode
so that users can connect to it and select a WiFi network for the device
to use. Scanning in AP mode is problematic since the WiFi module needs
to look at other frequencies than the one that it's on to see if there
are APs around. Currently the wpa_supplicant doesn't support doing this.
To work around that, this includes a small C program that sends the
right message through the nl80211 netlink interface. Discovered APs go
through the wpa_supplicant and are reported like normal.
@fhunleth
Copy link
Member Author

Tested on a custom board w/ USB WiFi dongle and RPi4.

@fhunleth fhunleth merged commit 3927949 into master Jul 23, 2019
@fhunleth fhunleth deleted the force-wifi-scan branch July 23, 2019 00:50
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

Successfully merging this pull request may close these issues.

None yet

3 participants