bsd: Prepare event buffer on init process
authorMasashi Honma <masashi.honma@gmail.com>
Tue, 7 Jan 2014 13:56:06 +0000 (15:56 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 7 Jan 2014 13:56:06 +0000 (15:56 +0200)
commit38bbd06ecff13b473e854f34719a1a36632fb5f4
treed9bbeb73105dccad0b089bab4e39bb75d8b896ec
parent3043b4f4550a71487bd9f0cc876d1baddbb7bb5d
bsd: Prepare event buffer on init process

Currently these three steps runs for each event.
1. get buffer size via system
2. allocate a memory for event
3. free the memory

The wpa_supplicant receives 4 events from boot to be connected.
So this patch prepare the event buffer at the init process.

I have tested wpa_supplicant on NetBSD 6.1.2.
But I could not tested hostapd because I do not have AP enabled device.

Signed-hostap: Masashi Honma <masashi.honma@gmail.com>
src/drivers/driver_bsd.c