This repository was archived by the owner on Oct 19, 2019. It is now read-only.
Open
Conversation
- attempted fixes for 'network scan failed' errors: - make sure directory exists to create wpa_supplicant-wlan0.conf - force wlan0 interface in network scan - wait 3s after initiating network scan before retrieving result - make sure directories /mnt/boot exist for wifi-copy-config to work - suppress error messages when trying to delete inexistent files - use tab delimiter to parse wpa_cli scan_results - properly escape wifi_network_setup.sh call from php
- `wpa_cli -i wlan0 scan` didn't work at initial boot - `iw wlan0 scan` always works
Member
|
Thanks @zehnm! |
Member
We have a separate repository for the web things, could you move the files there @zehnm ? |
Member
Author
|
Sure, I will get in contact with @nklerk once we are both online to coordinate. |
This was referenced Oct 18, 2019
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This should fix, or at least improve, the initial WiFi setup.
The issues with
wpa_cli scan & wpa_cli scan_resultswere manifold:Initial network configuration failed due to missing
/etc/wpa_supplicantdirectoryInitial network scan at first boot never worked for me due to invalid wpa_supplicant state.
Error:
Failed to connect to non-global ctrl_ifname: (nil) error: No such file or directoryThis was triggered from:
Subsequent scanning after a WiFi connection has been established was still unstable.
Sometimes the wrong interface
p2p-dev-wlan0was used.Scan results were not always available, or only a few networks were retrieved
I wasn't able to fix everything and the proposed fixes for the
Failed to connect to non-global ctrl_ifnameerror varied greatly. Therefore I decided to replace it withiw wlan0 scan.Cosmetic changes:
@martonborzak @nklerk could you please test the setup and WiFi scanning on your hardware (I'm not sure who else has one)?
I don't want to make things worse since I don't have the real thing to test with...