1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

hostapd: update to 2012-09-10

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33392 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd
2012-09-13 12:38:51 +00:00
parent 8579664108
commit 4de4955622
28 changed files with 198 additions and 313 deletions

View File

@@ -1,6 +1,6 @@
--- a/src/crypto/random.c
+++ b/src/crypto/random.c
@@ -32,6 +32,8 @@
@@ -33,6 +33,8 @@
#include "sha1.h"
#include "random.h"
@@ -9,7 +9,7 @@
#define POOL_WORDS 32
#define POOL_WORDS_MASK (POOL_WORDS - 1)
#define POOL_TAP1 26
@@ -42,6 +44,8 @@
@@ -43,6 +45,8 @@
#define EXTRACT_LEN 16
#define MIN_READY_MARK 2
@@ -18,7 +18,7 @@
static u32 pool[POOL_WORDS];
static unsigned int input_rotate = 0;
static unsigned int pool_pos = 0;
@@ -122,7 +126,7 @@ static void random_extract(u8 *out)
@@ -123,7 +127,7 @@ static void random_extract(u8 *out)
}
@@ -27,7 +27,7 @@
{
struct os_time t;
static unsigned int count = 0;
@@ -191,16 +195,22 @@ int random_get_bytes(void *buf, size_t l
@@ -213,16 +217,22 @@ int random_get_bytes(void *buf, size_t l
int random_pool_ready(void)
{
#ifdef __linux__
@@ -51,7 +51,7 @@
/*
* Try to fetch some more data from the kernel high quality
@@ -235,6 +245,7 @@ int random_pool_ready(void)
@@ -257,6 +267,7 @@ int random_pool_ready(void)
if (dummy_key_avail == sizeof(dummy_key)) {
if (own_pool_ready < MIN_READY_MARK)
own_pool_ready = MIN_READY_MARK;
@@ -59,7 +59,7 @@
random_write_entropy();
return 1;
}
@@ -247,6 +258,7 @@ int random_pool_ready(void)
@@ -269,6 +280,7 @@ int random_pool_ready(void)
total_collected + 10 * own_pool_ready > MIN_COLLECT_ENTROPY) {
wpa_printf(MSG_INFO, "random: Allow operation to proceed "
"based on internal entropy");
@@ -67,7 +67,7 @@
return 1;
}
@@ -262,10 +274,16 @@ int random_pool_ready(void)
@@ -284,10 +296,16 @@ int random_pool_ready(void)
void random_mark_pool_ready(void)
{
@@ -84,7 +84,7 @@
}
@@ -422,3 +440,22 @@ void random_deinit(void)
@@ -444,3 +462,22 @@ void random_deinit(void)
os_free(random_entropy_file);
random_entropy_file = NULL;
}
@@ -109,7 +109,7 @@
+}
--- a/wpa_supplicant/Makefile
+++ b/wpa_supplicant/Makefile
@@ -1161,9 +1161,8 @@ endif
@@ -1217,9 +1217,8 @@ endif
ifdef CONFIG_NO_RANDOM_POOL
CFLAGS += -DCONFIG_NO_RANDOM_POOL
@@ -122,7 +122,7 @@
ifeq ($(CONFIG_CTRL_IFACE), y)
--- a/wpa_supplicant/Android.mk
+++ b/wpa_supplicant/Android.mk
@@ -1139,9 +1139,8 @@ endif
@@ -1161,9 +1161,8 @@ endif
ifdef CONFIG_NO_RANDOM_POOL
L_CFLAGS += -DCONFIG_NO_RANDOM_POOL
@@ -135,7 +135,7 @@
ifeq ($(CONFIG_CTRL_IFACE), y)
--- a/hostapd/Android.mk
+++ b/hostapd/Android.mk
@@ -724,11 +724,11 @@ endif
@@ -748,11 +748,11 @@ endif
ifdef CONFIG_NO_RANDOM_POOL
L_CFLAGS += -DCONFIG_NO_RANDOM_POOL
else
@@ -151,7 +151,7 @@
L_CFLAGS += -DRADIUS_SERVER
--- a/hostapd/Makefile
+++ b/hostapd/Makefile
@@ -719,12 +719,12 @@ endif
@@ -755,12 +755,12 @@ endif
ifdef CONFIG_NO_RANDOM_POOL
CFLAGS += -DCONFIG_NO_RANDOM_POOL
else