softap: Ensure entropy file creation
Bug: 17408011
Change-Id: I558270f1ce2603f305d38ad8604379ea533f0a47
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
diff --git a/server/SoftapController.cpp b/server/SoftapController.cpp
index 07c77b0..270bd51 100644
--- a/server/SoftapController.cpp
+++ b/server/SoftapController.cpp
@@ -59,6 +59,10 @@
return ResponseCode::SoftapStatusResult;
}
+ if (ensure_entropy_file_exists() < 0) {
+ ALOGE("Wi-Fi entropy file was not created");
+ }
+
if ((pid = fork()) < 0) {
ALOGE("fork failed (%s)", strerror(errno));
return ResponseCode::ServiceStartFailed;