wifi: Ensure that entropy file exists
Change-Id: Ib5ea7a6767a4ab7c4244bfc27248ee04340018a7
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
diff --git a/SoftapController.cpp b/SoftapController.cpp
index c4a2b63..7592aad 100644
--- a/SoftapController.cpp
+++ b/SoftapController.cpp
@@ -188,9 +188,11 @@
#endif
if (!pid) {
#ifdef HAVE_HOSTAPD
+ ensure_entropy_file_exists();
if (execl("/system/bin/hostapd", "/system/bin/hostapd",
+ "-e", WIFI_ENTROPY_FILE,
HOSTAPD_CONF_FILE, (char *) NULL)) {
- LOGE("execl failed (%s)", strerror(errno));
+ LOGE("execl failed (%s)", strerror(errno));
}
#endif
LOGE("Should never get here!");