[PATCH] nl80211: Fix compatibility with older version of libnl

Jouni Malinen j
Fri Oct 3 01:31:38 PDT 2014


On Wed, Oct 01, 2014 at 08:01:25AM +0200, Ilan Peer wrote:
> Commit "nl80211: Remove bridge FDB entry upon sta_remove()" used
> nl_sock and nl_socket_* functions which are not compatible with older
> versions of libnl. Fix this.

>  #ifdef CONFIG_LIBNL3_ROUTE
>  	if (bss->added_if_into_bridge) {
> -		drv->rtnl_sk = nl_socket_alloc();
> +		drv->rtnl_sk = nl80211_handle_alloc();

That breaks the build. nl80211_handle_alloc() maps to
nl_socket_alloc_cb() which requires struct nl_cb pointer as an argument.
I guess that could use drv->nl_cb or some other existing instance, but
it looks safer to just revert this part since this is within
CONFIG_LIBNL3_ROUTE and nl_socket_alloc() is available.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list