[PATCH] wpa_supplicant: fix libnl-tiny support

Johannes Berg johannes at sipsolutions.net
Wed Mar 2 06:00:32 PST 2016


On Tue, 2016-02-23 at 20:53 +0200, Dima Krasner wrote:
> Signed-off-by: Dima Krasner <dima at dimakrasner.com>
> ---
>  src/drivers/driver_nl80211.c | 7 +++++++
>  src/drivers/drivers.mak      | 2 ++
>  2 files changed, 9 insertions(+)
> 
> diff --git a/src/drivers/driver_nl80211.c
> b/src/drivers/driver_nl80211.c
> index 5fec430..937cb0c 100644
> --- a/src/drivers/driver_nl80211.c
> +++ b/src/drivers/driver_nl80211.c
> @@ -39,6 +39,13 @@
>  #include "driver_nl80211.h"
>  
>  
> +#ifdef CONFIG_LIBNL_TINY
> +#define nl_handle nl_sock
> +#define nl_handle_alloc_cb nl_socket_alloc_cb
> +#define nl_handle_destroy nl_socket_free
> +#endif
> 

Same comment as on the iw patch - you're doing this in a very
roundabout way; the code already has the ability to deal with libnl 1.1
(or compatible) API, so you don't need to redefine everything afaict.

johannes



More information about the Hostap mailing list