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 <quic_adisi@quicinc.com>
This commit is contained in:
parent
b162886fd0
commit
a576180cd8
1 changed files with 1 additions and 1 deletions
|
@ -9465,7 +9465,7 @@ static int nl80211_remove_link(struct i802_bss *bss, int link_id)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Remove the link from the kernel */
|
/* 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 ||
|
if (!msg ||
|
||||||
nla_put_u8(msg, NL80211_ATTR_MLO_LINK_ID, link_id)) {
|
nla_put_u8(msg, NL80211_ATTR_MLO_LINK_ID, link_id)) {
|
||||||
nlmsg_free(msg);
|
nlmsg_free(msg);
|
||||||
|
|
Loading…
Reference in a new issue