aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/nl80211.c
diff options
context:
space:
mode:
authorVeerendranath Jakkam <quic_vjakkam@quicinc.com>2022-07-08 17:56:07 +0530
committerJohannes Berg <johannes.berg@intel.com>2022-07-11 10:20:18 +0200
commit3c512307de4097aaaab3f4741c7a98fe88afa469 (patch)
tree67b1965fc397e3ba17e019fb5d298e43cb6a8593 /net/wireless/nl80211.c
parentwifi: cfg80211: fix a comment in cfg80211_mlme_mgmt_tx() (diff)
downloadlinux-dev-3c512307de4097aaaab3f4741c7a98fe88afa469.tar.xz
linux-dev-3c512307de4097aaaab3f4741c7a98fe88afa469.zip
wifi: nl80211: fix sending link ID info of associated BSS
commit dd374f84baec ("wifi: nl80211: expose link ID for associated BSSes") used a top-level attribute to send link ID of the associated BSS in the nested attribute NL80211_ATTR_BSS. But since NL80211_ATTR_BSS is a nested attribute of the attributes defined in enum nl80211_bss, define a new attribute in enum nl80211_bss and use it for sending the link ID of the BSS. Fixes: dd374f84baec ("wifi: nl80211: expose link ID for associated BSSes") Signed-off-by: Veerendranath Jakkam <quic_vjakkam@quicinc.com> Reviewed-by: Jeff Johnson <quic_jjohnson@quicinc.com> Link: https://lore.kernel.org/r/20220708122607.1836958-1-quic_vjakkam@quicinc.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/nl80211.c')
-rw-r--r--net/wireless/nl80211.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index e20d0fc9678a..22c4cf6fbb57 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -9991,7 +9991,8 @@ static int nl80211_send_bss(struct sk_buff *msg, struct netlink_callback *cb,
(nla_put_u32(msg, NL80211_BSS_STATUS,
NL80211_BSS_STATUS_ASSOCIATED) ||
(wdev->valid_links &&
- nla_put_u8(msg, NL80211_ATTR_MLO_LINK_ID, link_id))))
+ nla_put_u8(msg, NL80211_BSS_MLO_LINK_ID,
+ link_id))))
goto nla_put_failure;
}
break;