编译完成的HOSTAPD在开启AP的过程中报错误日志。
错误日志如下:
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
日志大概就是说他需向随机池子取数取不够了,源码程序是从/dev/random取数据,解决方法把/dev/random替换成/dev/urandom。
打开src/crypto/random.c文件,找到下面语句
fd = open(“/dev/random”, O_RDONLY | O_NONBLOCK);
修改成:
fd = open(“/dev/urandom”, O_RDONLY | O_NONBLOCK);