]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - include/net/cfg80211.h
cfg80211: NL80211_ATTR_SOCKET_OWNER support for CMD_CONNECT
authorAndrzej Zaborowski <andrew.zaborowski@intel.com>
Fri, 6 Jan 2017 21:33:43 +0000 (16:33 -0500)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 9 Jan 2017 12:08:47 +0000 (13:08 +0100)
commitbd2522b168847106c1885f0319a2833bdf88bf9a
treeec3f75dc8494db6c426e7f25a86cfd13ae99e2f3
parent4ef8c1c93f848e360754f10eb2e7134c872b6597
cfg80211: NL80211_ATTR_SOCKET_OWNER support for CMD_CONNECT

Disconnect or deauthenticate when the owning socket is closed if this
flag is supplied to CMD_CONNECT or CMD_ASSOCIATE.  This may be used
to ensure userspace daemon doesn't leave an unmanaged connection behind.

In some situations it would be possible to account for that, to some
degree, in the deamon restart code or in the up/down scripts without
the use of this attribute.  But there will be systems where the daemon
can go away for varying periods without a warning due to local resource
management.

Signed-off-by: Andrew Zaborowski <andrew.zaborowski@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
include/uapi/linux/nl80211.h
net/wireless/core.c
net/wireless/core.h
net/wireless/mlme.c
net/wireless/nl80211.c
net/wireless/sme.c