]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Use per-BSS command for remove link
authorAditya Kumar Singh <quic_adisi@quicinc.com>
Wed, 6 Mar 2024 06:38:58 +0000 (12:08 +0530)
committerJouni Malinen <j@w1.fi>
Wed, 27 Mar 2024 16:12:39 +0000 (18:12 +0200)
Construct the nl80211 remove link command using the per-BSS approach
instead of per-driver (drv->first_bss).

Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com>
src/drivers/driver_nl80211.c

index 7d743e3c87e0992b3bf691183d6bc362236cbcc2..e4695d0b2df8d48de12410bbd119e5d47a80b56c 100644 (file)
@@ -9465,7 +9465,7 @@ static int nl80211_remove_link(struct i802_bss *bss, int link_id)
        }
 
        /* Remove the link from the kernel */
-       msg = nl80211_drv_msg(drv, 0, NL80211_CMD_REMOVE_LINK);
+       msg = nl80211_bss_msg(bss, 0, NL80211_CMD_REMOVE_LINK);
        if (!msg ||
            nla_put_u8(msg, NL80211_ATTR_MLO_LINK_ID, link_id)) {
                nlmsg_free(msg);