projectbuendia / buendia

Main project repository (see the Wiki for details)
Apache License 2.0
117 stars 36 forks source link

Robustness improvements to buendia-wifi-watchdog #249

Open schuyler opened 4 years ago

schuyler commented 4 years ago

Some improvements to buendia-wifi-watchdog made while testing #247 in the hopes of making it more robust:

Tested 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.

zestyping commented 4 years ago

@schuyler Quick question here—why is iwconfig better than wpa_cli?

schuyler commented 4 years ago

@schuyler Quick question here—why is iwconfig better than wpa_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.

schuyler commented 4 years ago

@zestyping bump for review?