From d366a987173b9b4165abd449b6353a7443d8f607 Mon Sep 17 00:00:00 2001 From: Andreas Schultz Date: Mon, 7 Mar 2016 14:45:43 +0100 Subject: [PATCH] add support for new NL80211_ATTR_IFACE_SOCKET_OWNER netlink attribute --- src/wtp/binding/ieee80211/wifi_nl80211.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wtp/binding/ieee80211/wifi_nl80211.c b/src/wtp/binding/ieee80211/wifi_nl80211.c index 22a3d02..a4442e3 100644 --- a/src/wtp/binding/ieee80211/wifi_nl80211.c +++ b/src/wtp/binding/ieee80211/wifi_nl80211.c @@ -572,6 +572,9 @@ static wifi_wlan_handle nl80211_wlan_create(struct wifi_device* device, struct w nla_put_u32(msg, NL80211_ATTR_WIPHY, device->phyindex); nla_put_u32(msg, NL80211_ATTR_IFTYPE, NL80211_IFTYPE_STATION); nla_put_string(msg, NL80211_ATTR_IFNAME, wlan->virtname); +#if defined(NL80211_ATTR_IFACE_SOCKET_OWNER) + nla_put_flag(msg, NL80211_ATTR_IFACE_SOCKET_OWNER); +#endif /* */ result = nl80211_send_and_recv_msg(devicehandle->globalhandle, msg, NULL, NULL);