mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
nl80211: Fix compatibility with older version of libnl
Commit 97ed9a06df
('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 <ilan.peer@intel.com>
This commit is contained in:
parent
d76426c3aa
commit
ca3c6b4da7
@ -331,7 +331,7 @@ struct wpa_driver_nl80211_data {
|
|||||||
|
|
||||||
int eapol_sock; /* socket for EAPOL frames */
|
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 default_if_indices[16];
|
||||||
int *if_indices;
|
int *if_indices;
|
||||||
@ -4938,7 +4938,7 @@ static void wpa_driver_nl80211_deinit(struct i802_bss *bss)
|
|||||||
"interface %s from bridge %s: %s",
|
"interface %s from bridge %s: %s",
|
||||||
bss->ifname, bss->brname, strerror(errno));
|
bss->ifname, bss->brname, strerror(errno));
|
||||||
if (drv->rtnl_sk)
|
if (drv->rtnl_sk)
|
||||||
nl_socket_free(drv->rtnl_sk);
|
nl80211_handle_destroy(drv->rtnl_sk);
|
||||||
}
|
}
|
||||||
if (bss->added_bridge) {
|
if (bss->added_bridge) {
|
||||||
if (linux_br_del(drv->global->ioctl_sock, bss->brname) < 0)
|
if (linux_br_del(drv->global->ioctl_sock, bss->brname) < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user