From: Aditya Kumar Singh Date: Wed, 6 Mar 2024 06:38:58 +0000 (+0530) Subject: nl80211: Use per-BSS command for remove link X-Git-Tag: hostap_2_11~239 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a576180cd8430a69bfa3559de3b5ff74e12a1d7f;p=thirdparty%2Fhostap.git nl80211: Use per-BSS command for remove link Construct the nl80211 remove link command using the per-BSS approach instead of per-driver (drv->first_bss). Signed-off-by: Aditya Kumar Singh --- diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 7d743e3c8..e4695d0b2 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -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);