]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Android: Set CONFIG_NO_RANDOM_POOL=y
authorJeff Vander Stoep <jeffv@google.com>
Thu, 30 Nov 2017 22:46:26 +0000 (14:46 -0800)
committerJouni Malinen <j@w1.fi>
Sat, 9 Dec 2017 15:47:42 +0000 (17:47 +0200)
Wpa_supplicant's random pool is not necessary on Android. Randomness
is already provided by the entropymixer service which ensures
sufficient entropy is maintained across reboots. Commit b410eb1913
'Initialize /dev/urandom earlier in boot' seeds /dev/urandom with
that entropy before either wpa_supplicant or hostapd are run.

Signed-off-by: Jeff Vander Stoep <jeffv@google.com>
hostapd/android.config
hostapd/hostapd.android.rc
wpa_supplicant/android.config

index b293828928793765b0b72a2a4879593afebc3179..08d21f044aa7dfaff47a15fa31b93e2f9387d398 100644 (file)
@@ -203,3 +203,10 @@ CONFIG_WPA_CLI_EDIT=y
 # Opportunistic Wireless Encryption (OWE)
 # Experimental implementation of draft-harkins-owe-07.txt
 #CONFIG_OWE=y
+
+# Wpa_supplicant's random pool is not necessary on Android. Randomness is
+# already provided by the entropymixer service which ensures sufficient
+# entropy is maintained across reboots. Commit b410eb1913 'Initialize
+# /dev/urandom earlier in boot' seeds /dev/urandom with that entropy before
+# either wpa_supplicant or hostapd are run.
+CONFIG_NO_RANDOM_POOL=y
index d8e6a0698b6118a887fcea546ae9fcdcaccac5ab..26a87b8089141246d0fb8ad438550040a7c08a58 100644 (file)
@@ -10,7 +10,6 @@ on post-fs-data
     mkdir /data/misc/wifi/hostapd 0770 wifi wifi
 
 service hostapd /vendor/bin/hostapd \
-        -e /data/misc/wifi/entropy.bin \
         /data/misc/wifi/hostapd.conf
     class main
     user wifi
index a4b17b055d4459c8900dbb0347f235cb7907c31b..7dfaa0f14d8c013920c31f359aa2c7a182590959 100644 (file)
@@ -442,7 +442,13 @@ CONFIG_ANDROID_LOG=y
 # disabled. This will save some in binary size and CPU use. However, this
 # should only be considered for builds that are known to be used on devices
 # that meet the requirements described above.
-#CONFIG_NO_RANDOM_POOL=y
+
+# Wpa_supplicant's random pool is not necessary on Android. Randomness is
+# already provided by the entropymixer service which ensures sufficient
+# entropy is maintained across reboots. Commit b410eb1913 'Initialize
+# /dev/urandom earlier in boot' seeds /dev/urandom with that entropy before
+# either wpa_supplicant or hostapd are run.
+CONFIG_NO_RANDOM_POOL=y
 
 # IEEE 802.11n (High Throughput) support (mainly for AP mode)
 CONFIG_IEEE80211N=y