Open schuyler opened 4 years ago
@schuyler Quick question here—why is iwconfig
better than wpa_cli
?
@schuyler Quick question here—why is
iwconfig
better thanwpa_cli
?
The only good answer I have is that it works when wpa_supplicant
isn't running, e.g. when the Wi-Fi network is open and doesn't require WPA security. This is not a use case the project currently has, at least not that I know of, but it was impossible for me to test the networking stack otherwise last week when the only Wi-Fi network I could use was an open one.
A less good answer is that iwconfig
has been around longer and is more mature? But I wouldn't be sold on that myself per se.
Happy to take out this particular commit out of the PR if we're concerned about this choice.
@zestyping bump for review?
Some improvements to
buendia-wifi-watchdog
made while testing #247 in the hopes of making it more robust:iwconfig
rather thanwpa_cli
to ensure that what we're looking at is network association, and ensure thatwireless-tools
is required by the packageip
to check that we actually have an IP addressTested on the NUC by watching
buendia-wifi-watchdog.log
for several minutes, both with the network unconfigured and subsequently configured, to ensure the desired behavior. Also tested with and without a wifi interface defined. Performed same manual tests across multiple boots for confirmation.