From ca3c6b4da762a6e08bcda649c676d9b7b077070a Mon Sep 17 00:00:00 2001 From: Ilan Peer Date: Wed, 1 Oct 2014 08:01:25 +0200 Subject: [PATCH] nl80211: Fix compatibility with older version of libnl Commit 97ed9a06df566357f0ebe57f8080f78726e78db6 ('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. Signed-off-by: Ilan Peer --- src/drivers/driver_nl80211.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 5c922a057..026cb7d46 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -331,7 +331,7 @@ struct wpa_driver_nl80211_data { int eapol_sock; /* socket for EAPOL frames */ - struct nl_sock *rtnl_sk; /* nl_sock for NETLINK_ROUTE */ + struct nl_handle *rtnl_sk; /* nl_sock for NETLINK_ROUTE */ int default_if_indices[16]; int *if_indices; @@ -4938,7 +4938,7 @@ static void wpa_driver_nl80211_deinit(struct i802_bss *bss) "interface %s from bridge %s: %s", bss->ifname, bss->brname, strerror(errno)); if (drv->rtnl_sk) - nl_socket_free(drv->rtnl_sk); + nl80211_handle_destroy(drv->rtnl_sk); } if (bss->added_bridge) { if (linux_br_del(drv->global->ioctl_sock, bss->brname) < 0)