BACKPORT: wifi: nl80211: add MLD address to assoc BSS entries
Add an MLD address attribute to BSS entries that the interface is currently associated with to help userspace figure out what's going on. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Bug: 253289327 Change-Id: Ic50963e39a8b1ddaa4078d649f3ba24a78b92e5e (cherry picked from commit 6522047c65764c9aaec8009e73daa8c0b138c701) Signed-off-by: Kiran Kumar Lokere <quic_klokere@quicinc.com> Signed-off-by: Veerendranath Jakkam <quic_vjakkam@quicinc.com>
This commit is contained in:
@@ -4980,6 +4980,7 @@ enum nl80211_bss_scan_width {
|
||||
* using the nesting index as the antenna number.
|
||||
* @NL80211_BSS_FREQUENCY_OFFSET: frequency offset in KHz
|
||||
* @NL80211_BSS_MLO_LINK_ID: MLO link ID of the BSS (u8).
|
||||
* @NL80211_BSS_MLD_ADDR: MLD address of this BSS if connected to it.
|
||||
* @__NL80211_BSS_AFTER_LAST: internal
|
||||
* @NL80211_BSS_MAX: highest BSS attribute
|
||||
*/
|
||||
@@ -5006,7 +5007,7 @@ enum nl80211_bss {
|
||||
NL80211_BSS_CHAIN_SIGNAL,
|
||||
NL80211_BSS_FREQUENCY_OFFSET,
|
||||
NL80211_BSS_MLO_LINK_ID,
|
||||
NL80211_BSS_RESERVED_DO_NOT_USE_2 = 22,
|
||||
NL80211_BSS_MLD_ADDR,
|
||||
NL80211_BSS_RESERVED_DO_NOT_USE_3 = 23,
|
||||
NL80211_BSS_RESERVED_DO_NOT_USE_4 = 24,
|
||||
NL80211_BSS_RESERVED_DO_NOT_USE_5 = 25,
|
||||
|
||||
@@ -10165,8 +10165,10 @@ 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_BSS_MLO_LINK_ID,
|
||||
link_id))))
|
||||
(nla_put_u8(msg, NL80211_BSS_MLO_LINK_ID,
|
||||
link_id) ||
|
||||
nla_put(msg, NL80211_BSS_MLD_ADDR, ETH_ALEN,
|
||||
wdev->u.client.connected_addr)))))
|
||||
goto nla_put_failure;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user