Android: Set 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.

Signed-off-by: Jeff Vander Stoep <jeffv@google.com>
This commit is contained in:
Jeff Vander Stoep 2017-11-30 14:46:26 -08:00 committed by Jouni Malinen
parent ff28df739a
commit b65353a767
3 changed files with 14 additions and 2 deletions

View File

@ -203,3 +203,10 @@ CONFIG_WPA_CLI_EDIT=y
# Opportunistic Wireless Encryption (OWE) # Opportunistic Wireless Encryption (OWE)
# Experimental implementation of draft-harkins-owe-07.txt # Experimental implementation of draft-harkins-owe-07.txt
#CONFIG_OWE=y #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

View File

@ -10,7 +10,6 @@ on post-fs-data
mkdir /data/misc/wifi/hostapd 0770 wifi wifi mkdir /data/misc/wifi/hostapd 0770 wifi wifi
service hostapd /vendor/bin/hostapd \ service hostapd /vendor/bin/hostapd \
-e /data/misc/wifi/entropy.bin \
/data/misc/wifi/hostapd.conf /data/misc/wifi/hostapd.conf
class main class main
user wifi user wifi

View File

@ -442,7 +442,13 @@ CONFIG_ANDROID_LOG=y
# disabled. This will save some in binary size and CPU use. However, this # 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 # should only be considered for builds that are known to be used on devices
# that meet the requirements described above. # 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) # IEEE 802.11n (High Throughput) support (mainly for AP mode)
CONFIG_IEEE80211N=y CONFIG_IEEE80211N=y