Re: [PATCH] wpa_supplicant: fix libnl-tiny support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2016-02-23 at 20:53 +0200, Dima Krasner wrote:
> 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
> 

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

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux