nl_socket_set_buffer_size usage

Jouni Malinen j
Mon Jan 26 15:52:51 PST 2015

On Mon, Jan 26, 2015 at 11:05:19AM -0500, Jonathan Bither wrote:
> I was unable to build hostapd this morning on CentOS6 again after
> commit "630b323 nl80211: Increase netlink receive buffer size".
> libnl1 doesn't provide "nl_socket_set_buffer_size()" so I fixed my
> build with the change below. I'm not sure if it was the appropriate
> method so I just wanted to check with you if this was the correct
> fix.

Thanks for reporting this.

> diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c

It would be possible to implement nl_socket_set_buffer_size() for libnl
1.1 as well, but I guess I don't really care enough about that old
version anymore to add such complexity and for now, it's fine to #ifdef
this out. That said, I'll fix this with CONFIG_LIBNL20 which is more
appropriate define to use here.

Jouni Malinen                                            PGP id EFC895FA

More information about the Hostap mailing list