Signed-off-by: Dima Krasner <dima@xxxxxxxxxxxxxxx> --- 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 + + #ifndef CONFIG_LIBNL20 /* * libnl 1.1 has a bug, it tries to allocate socket numbers densely diff --git a/src/drivers/drivers.mak b/src/drivers/drivers.mak index c4f5f97..d3b8185 100644 --- a/src/drivers/drivers.mak +++ b/src/drivers/drivers.mak @@ -56,6 +56,7 @@ endif else ifdef CONFIG_LIBNL_TINY DRV_LIBS += -lnl-tiny + DRV_CFLAGS += -DCONFIG_LIBNL_TINY else ifndef CONFIG_OSX DRV_LIBS += -lnl @@ -172,6 +173,7 @@ ifdef CONFIG_LIBNL32 else ifdef CONFIG_LIBNL_TINY DRV_LIBS += -lnl-tiny + DRV_CFLAGS += -DCONFIG_LIBNL_TINY else DRV_LIBS += -lnl endif -- 2.1.4 -- Dima Krasner <dima@xxxxxxxxxxxxxxx> _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap