From e8764518bd5f839e40682ef8c3f61091c3e55a7c Mon Sep 17 00:00:00 2001 From: Aditya Kumar Singh Date: Thu, 28 Mar 2024 23:46:32 +0530 Subject: [PATCH] nl80211: Generate link add command on per-BSS basis for AP MLD Function nl80211_link_add() created the link add netlink message on drv basis which in turn always uses the drv's first BSS. To support link add for various other interfaces, use the per-BSS function to create the netlink message. Signed-off-by: Aditya Kumar Singh --- src/drivers/driver_nl80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 03c3014f8..d95e9f2df 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -13835,7 +13835,7 @@ static int nl80211_link_add(void *priv, u8 link_id, const u8 *addr, } } - msg = nl80211_drv_msg(drv, 0, NL80211_CMD_ADD_LINK); + msg = nl80211_bss_msg(bss, 0, NL80211_CMD_ADD_LINK); if (!msg || nla_put_u8(msg, NL80211_ATTR_MLO_LINK_ID, link_id) || nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, addr)) { -- 2.47.3