hostapd – Not enough entropy in /dev/random

Home Forums Conduit: mLinux Model hostapd – Not enough entropy in /dev/random

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #27712
    mskotis
    Participant

    Hi
    I’m trying to run hostapd with WPA2-PSK configuration. It starts correctly, but complains about not enough entropy in /dev/random and every connection attempt fails with the same entropy error.


    root@mtcdt:/home/mtadm# hostapd /etc/hostapd.conf
    Configuration file: /etc/hostapd.conf
    nl80211: Could not re-add multicast membership for vendor events: -2 (No such file or directory)
    Using interface wlan0 with hwaddr 00:e0:4c:03:74:d1 and ssid "alracnet"
    random: Only 15/20 bytes of strong random data available from /dev/random
    random: Not enough entropy pool available for secure operations
    WPA: Not enough entropy in random pool for secure operations - update keys later when the first station connects
    wlan0: interface state UNINITIALIZED->ENABLED
    wlan0: AP-ENABLED
    ...
    random: Cannot read from /dev/random: Resource temporarily unavailable
    random: Got 0/6 bytes from /dev/random
    random: Only 14/20 bytes of strong random data available from /dev/random
    random: Not enough entropy pool available for secure operations
    WPA: Not enough entropy in random pool to proceed - reject first 4-way handshake
    ...

    One solution to this problem would probably be to install haveged daemon, but it’s not available in opkg repositories.

    I also tried to pass an argument to hostapd to change random file to /dev/urandom, but it gives an error and falls back to /dev/random.

    root@mtcdt:/home/mtadm# hostapd -dd -e /dev/urandom /etc/hostapd.conf
    random: Invalid entropy file /dev/urandom
    random: Trying to read entropy from /dev/random

    Could anyone point me the direction to solve the problem please?

    Best regards

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.