This repository was archived by the owner on Oct 19, 2019. It is now read-only.
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_results
were manifold:Initial network configuration failed due to missing
/etc/wpa_supplicant
directoryInitial 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 directory
This was triggered from:
Subsequent scanning after a WiFi connection has been established was still unstable.
Sometimes the wrong interface
p2p-dev-wlan0
was 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_ifname
error 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...