developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 1 | From 3ca32441ecd9d1a52f736d4a4fffdc24de629e90 Mon Sep 17 00:00:00 2001 |
| 2 | From: Aditya Kumar Singh <quic_adisi@quicinc.com> |
| 3 | Date: Thu, 28 Mar 2024 23:46:32 +0530 |
| 4 | Subject: [PATCH 002/104] hostapd: MLO: frame link add command on per BSS basis |
| 5 | |
| 6 | Currently function nl80211_link_add() creates the link add NL message on |
| 7 | drv basis which in turn uses drv's first BSS always. In order to support |
| 8 | link add for various other interfaces, use BSS handler to create the NL |
| 9 | message. |
| 10 | |
| 11 | Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com> |
| 12 | --- |
| 13 | src/drivers/driver_nl80211.c | 2 +- |
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 15 | |
| 16 | diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c |
| 17 | index 4949de577..042bc97a8 100644 |
| 18 | --- a/src/drivers/driver_nl80211.c |
| 19 | +++ b/src/drivers/driver_nl80211.c |
| 20 | @@ -13876,7 +13876,7 @@ static int nl80211_link_add(void *priv, u8 link_id, const u8 *addr, |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | - msg = nl80211_drv_msg(drv, 0, NL80211_CMD_ADD_LINK); |
| 25 | + msg = nl80211_bss_msg(bss, 0, NL80211_CMD_ADD_LINK); |
| 26 | if (!msg || |
| 27 | nla_put_u8(msg, NL80211_ATTR_MLO_LINK_ID, link_id) || |
| 28 | nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, addr)) { |
| 29 | -- |
| 30 | 2.39.2 |
| 31 | |