summaryrefslogtreecommitdiffstats
path: root/package/hostapd/patches/130-libnl_update.patch
blob: 51bc58a08adf305dcfb2a77a58e506e0a6d0faf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- a/hostapd/driver_nl80211.c
+++ b/hostapd/driver_nl80211.c
@@ -29,6 +29,7 @@
 #include "wireless_copy.h"
 #include <linux/filter.h>
 #include <net/if_arp.h>
+#include <linux/rtnetlink.h>
 
 #include "hostapd.h"
 #include "driver.h"
@@ -45,6 +46,7 @@
 /* libnl 2.0 compatibility code */
 #define nl_handle_alloc_cb nl_socket_alloc_cb
 #define nl_handle_destroy nl_socket_free
+#define nl_handle nl_sock
 #endif /* CONFIG_LIBNL20 */
 
 enum ieee80211_msg_type {