diff options
author | Denis Kenzior <denkenz@gmail.com> | 2018-03-26 12:52:47 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2018-03-29 10:47:28 +0200 |
commit | 466a306142c002b40deaa58da94741af4153d1c4 (patch) | |
tree | 886ee98c98f80307cf3e497a2bba67f48af7fadd /net/wireless/nl80211.c | |
parent | 188c1b3c04d69e842122daf201f07a34fcfad039 (diff) | |
download | linux-466a306142c002b40deaa58da94741af4153d1c4.tar.bz2 |
nl80211: Add SOCKET_OWNER support to START_AP
Signed-off-by: Denis Kenzior <denkenz@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/nl80211.c')
-rw-r--r-- | net/wireless/nl80211.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 1d6e81e5b2c8..cfaf2aeb9783 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -4134,6 +4134,9 @@ static int nl80211_start_ap(struct sk_buff *skb, struct genl_info *info) wdev->chandef = params.chandef; wdev->ssid_len = params.ssid_len; memcpy(wdev->ssid, params.ssid, wdev->ssid_len); + + if (info->attrs[NL80211_ATTR_SOCKET_OWNER]) + wdev->conn_owner_nlportid = info->snd_portid; } wdev_unlock(wdev); |