From e3c6d2e16948f7a2667d6cb837f15565676085c9 Mon Sep 17 00:00:00 2001 From: Andrew Zaborowski Date: Mon, 22 May 2017 10:49:48 +0200 Subject: [PATCH] netdev: Use NL80211_ATTR_SOCKET_OWNER flag Use the new NL80211_ATTR_SOCKET_OWNER with CMD_CONNECT and CMD_ASSOCIATE to make sure an iwd crash results in deauthentication. --- src/netdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/netdev.c b/src/netdev.c index 6cc4e0bd..c343091b 100644 --- a/src/netdev.c +++ b/src/netdev.c @@ -1495,6 +1495,7 @@ static struct l_genl_msg *netdev_build_cmd_ft_reassociate(struct netdev *netdev, l_genl_msg_append_attr(msg, NL80211_ATTR_PREV_BSSID, ETH_ALEN, prev_bssid); l_genl_msg_append_attr(msg, NL80211_ATTR_SSID, hs->ssid_len, hs->ssid); + l_genl_msg_append_attr(msg, NL80211_ATTR_SOCKET_OWNER, 0, NULL); if (is_rsn) { uint32_t nl_cipher; @@ -1968,6 +1969,8 @@ static struct l_genl_msg *netdev_build_cmd_connect(struct netdev *netdev, if (bss->capability & IE_BSS_CAP_PRIVACY) l_genl_msg_append_attr(msg, NL80211_ATTR_PRIVACY, 0, NULL); + l_genl_msg_append_attr(msg, NL80211_ATTR_SOCKET_OWNER, 0, NULL); + if (is_rsn) { uint32_t nl_cipher; uint32_t nl_akm;