]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Generate link add command on per-BSS basis for AP MLD
authorAditya Kumar Singh <quic_adisi@quicinc.com>
Thu, 28 Mar 2024 18:16:32 +0000 (23:46 +0530)
committerJouni Malinen <j@w1.fi>
Tue, 16 Apr 2024 07:53:23 +0000 (10:53 +0300)
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 <quic_adisi@quicinc.com>
src/drivers/driver_nl80211.c

index 03c3014f822531e17de115cc527fd9950c83a082..d95e9f2df8ff9d5c528d122d25c9d07090deca11 100644 (file)
@@ -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)) {