nl80211: Add CMD_CONTROL_PORT_FRAME API
authorDenis Kenzior <denkenz@gmail.com>
Mon, 26 Mar 2018 17:52:41 +0000 (12:52 -0500)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 29 Mar 2018 11:44:04 +0000 (13:44 +0200)
commit6a671a50f8199b3e1fe49fa8afff0fc8335da79c
tree2c363b4dadd770bd6cac7d6e37a0ec4d688c873f
parent4d191c75365a0067a9d5b8c8746b1bd9310c5a70
nl80211: Add CMD_CONTROL_PORT_FRAME API

This commit also adds cfg80211_rx_control_port function.  This is used
to generate a CMD_CONTROL_PORT_FRAME event out to userspace.  The
conn_owner_nlportid is used as the unicast destination.  This means that
userspace must specify NL80211_ATTR_SOCKET_OWNER flag if control port
over nl80211 routing is requested in NL80211_CMD_CONNECT,
NL80211_CMD_ASSOCIATE, NL80211_CMD_START_AP or IBSS/mesh join.

Signed-off-by: Denis Kenzior <denkenz@gmail.com>
[johannes: fix return value of cfg80211_rx_control_port()]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
include/uapi/linux/nl80211.h
net/wireless/nl80211.c
net/wireless/trace.h