Skip to content

Commit

Permalink
cfg80211: pmsr: record netlink port ID
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Luca Coelho <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
  • Loading branch information
jmberg-intel committed Feb 11, 2019
1 parent ea18709 commit ff1bab1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/wireless/pmsr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ff1bab1

Please sign in to comment.