add support for new NL80211_ATTR_IFACE_SOCKET_OWNER netlink attribute

This commit is contained in:
Andreas Schultz 2016-03-07 14:45:43 +01:00
parent 973bf5eab7
commit d366a98717
1 changed files with 3 additions and 0 deletions

View File

@ -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);