Move hostapd management logic to libwifi-system
This is the logic that existed in netd, but moved into a mockable
C++ object and formulated to support unittesting the config file
generation.
Bug: 30040724
Test: unit tests pass, data for tests extracted from config files
generated by existing netd code.
Test: netd continues to be able to set up APs for tethering using
libwifi-system rather than previous code.
Test: No SELinux policy violations during/after setup.
Test: Can sign in to network backed by hostapd started by netd using
libwifi-system.
Change-Id: I1156c494fc889a3fdf14182b11c7697d93fdf586
6 files changed