All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] wifi: nl80211: fix sending link ID info of associated BSS
@ 2022-07-08 12:26 Veerendranath Jakkam
  2022-07-08 19:27 ` Jeff Johnson
  0 siblings, 1 reply; 2+ messages in thread
From: Veerendranath Jakkam @ 2022-07-08 12:26 UTC (permalink / raw)
  To: johannes; +Cc: linux-wireless

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>
---
v2:
 - Write more appropriate and detailed commit text
---
 include/uapi/linux/nl80211.h | 2 ++
 net/wireless/nl80211.c       | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h
index 279f9715919e..7bb1ae59f3a5 100644
--- a/include/uapi/linux/nl80211.h
+++ b/include/uapi/linux/nl80211.h
@@ -4904,6 +4904,7 @@ enum nl80211_bss_scan_width {
  *	Contains a nested array of signal strength attributes (u8, dBm),
  *	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_AFTER_LAST: internal
  * @NL80211_BSS_MAX: highest BSS attribute
  */
@@ -4929,6 +4930,7 @@ enum nl80211_bss {
 	NL80211_BSS_PARENT_BSSID,
 	NL80211_BSS_CHAIN_SIGNAL,
 	NL80211_BSS_FREQUENCY_OFFSET,
+	NL80211_BSS_MLO_LINK_ID,
 
 	/* keep last */
 	__NL80211_BSS_AFTER_LAST,
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index eda2ad029c90..5d6351d3a484 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;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] wifi: nl80211: fix sending link ID info of associated BSS
  2022-07-08 12:26 [PATCH v2] wifi: nl80211: fix sending link ID info of associated BSS Veerendranath Jakkam
@ 2022-07-08 19:27 ` Jeff Johnson
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Johnson @ 2022-07-08 19:27 UTC (permalink / raw)
  To: Veerendranath Jakkam, johannes; +Cc: linux-wireless

On 7/8/2022 5:26 AM, Veerendranath Jakkam wrote:
> 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>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-08 19:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-08 12:26 [PATCH v2] wifi: nl80211: fix sending link ID info of associated BSS Veerendranath Jakkam
2022-07-08 19:27 ` Jeff Johnson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.