Move set_iface_flags to libwifi-system

Rename to the more accurate set_iface_up().
Expose an alias to encode assumptions about global iface names.
Return an error when buffer overflow is averted.
Handle EINTR from ioctls.
Wrap socket fd in a scoped closer.
Minor refactors to clean up logic and remove dead logging.

Bug: 29417819
Change-Id: Ib1fde6dae5e3068643950d0905f5761d0c9b6daf
Test: Compiles, WiFi still associates on bullhead.
5 files changed
tree: 8440d69fbcc4527f211ba1fe49a25be41a81fbb8
  1. libwifi_hal/
  2. libwifi_system/
  3. service/
  4. tests/