diff options
author | Johannes Berg <johannes.berg@intel.com> | 2022-07-18 10:42:19 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2022-07-22 14:28:32 +0200 |
commit | 2ec833a5aafc49142a9b2988a3225ebfa47ccd27 (patch) | |
tree | 22be42c7850152b7dd282ede18ab82888eaf1d03 /net/mac80211 | |
parent | wifi: cfg80211: report link ID in NL80211_CMD_FRAME (diff) | |
download | linux-2ec833a5aafc49142a9b2988a3225ebfa47ccd27.tar.xz linux-2ec833a5aafc49142a9b2988a3225ebfa47ccd27.zip |
wifi: mac80211: report link ID to cfg80211 on mgmt RX
For frames received on an MLD, report the link ID to
userspace.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/rx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index ef9c2fcd68f5..6cb5989c6ae2 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -3647,7 +3647,9 @@ ieee80211_rx_h_userspace_mgmt(struct ieee80211_rx_data *rx) struct cfg80211_rx_info info = { .freq = ieee80211_rx_status_to_khz(status), .buf = rx->skb->data, - .len = rx->skb->len + .len = rx->skb->len, + .link_id = rx->link_id, + .have_link_id = rx->link_id >= 0, }; /* skip known-bad action frames and return them in the next handler */ |