summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2019-02-06 12:17:07 +0100
committerJohannes Berg <johannes.berg@intel.com>2019-02-11 15:50:56 +0100
commitff1bab1ba19165d4402447dd39abae9e21880ebf (patch)
treef44317b2b106e01c5b57f558943b0174f320e358
parentnl80211: Fix FTM per burst maximum value (diff)
downloadlinux-ff1bab1ba19165d4402447dd39abae9e21880ebf.tar.xz
linux-ff1bab1ba19165d4402447dd39abae9e21880ebf.zip
cfg80211: pmsr: record netlink port ID
Without recording the netlink port ID, we cannot return the results or complete messages to userspace, nor will we be able to abort if the socket is closed, so clearly we need to fill the value. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r--net/wireless/pmsr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/wireless/pmsr.c b/net/wireless/pmsr.c
index 78c3f5633692..0216ab555249 100644
--- a/net/wireless/pmsr.c
+++ b/net/wireless/pmsr.c
@@ -271,6 +271,7 @@ int nl80211_pmsr_start(struct sk_buff *skb, struct genl_info *info)
req->n_peers = count;
req->cookie = cfg80211_assign_cookie(rdev);
+ req->nl_portid = info->snd_portid;
err = rdev_start_pmsr(rdev, wdev, req);
if (err)