diff options
author | Ningyuan Wang <nywang@google.com> | 2017-03-28 17:11:23 -0700 |
---|---|---|
committer | Ningyuan Wang <nywang@google.com> | 2017-03-31 13:18:24 -0700 |
commit | ff66f41f8f457bf5e9c0c75d72dbe74f9dfc3102 (patch) | |
tree | 76875487f95874f04e7fb473e5d07523619226e7 /libwifi_system/hostapd_manager.cpp | |
parent | 6236c87501a724cdb4e727b1631ee11db106460c (diff) | |
download | wifi-ff66f41f8f457bf5e9c0c75d72dbe74f9dfc3102.tar.gz |
lib-wifisystem: Remove unused dependencies
This removes ununsed libwpa_client, libnetutils, libnl from
libwifi-system.
This also removes wifi.h and wifi.cpp.
The only useful function ensure_entropy_file_exists() is moved
to SupplicantManager.
Bug: 36697996
Test: compile, manual test: wifi works with toggling
Change-Id: I1f55813ee43a821d18d2368c1cc28a3bf95b6c93
Diffstat (limited to 'libwifi_system/hostapd_manager.cpp')
-rw-r--r-- | libwifi_system/hostapd_manager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libwifi_system/hostapd_manager.cpp b/libwifi_system/hostapd_manager.cpp index 62ea7dbfa..13bacae22 100644 --- a/libwifi_system/hostapd_manager.cpp +++ b/libwifi_system/hostapd_manager.cpp @@ -30,7 +30,7 @@ #include <openssl/sha.h> #include <private/android_filesystem_config.h> -#include "wifi_system/wifi.h" +#include "wifi_system/supplicant_manager.h" using android::base::ParseInt; using android::base::ReadFileToString; @@ -77,7 +77,7 @@ string GeneratePsk(const vector<uint8_t>& ssid, } // namespace bool HostapdManager::StartHostapd() { - if (ensure_entropy_file_exists() < 0) { + if (!SupplicantManager::EnsureEntropyFileExists()) { LOG(WARNING) << "Wi-Fi entropy file was not created"; } |