[PATCH v3 09/12] driver_nl80211: remove signal from nl80211_mlo_signal_poll()

Johannes Berg johannes at sipsolutions.net
Thu May 7 10:21:36 PDT 2026


From: Johannes Berg <johannes.berg at intel.com>

This may sound strange, but the MLO_SIGNAL_POLL could also be
used for getting the link bandwidth (for example) and the API
to the kernel simply doesn't support getting per-link info
yet, nor will it ever support getting it this way (getting a
link station info by BSSID won't be done, it'll be the whole
MLD and then with nested link info.)

Fixes: b7f98d92dc31 ("MLD STA: Add per-link MLO signal poll")
Signed-off-by: Johannes Berg <johannes.berg at intel.com>
---
 src/drivers/driver_nl80211.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 8c2721d979fb..1d18759adaf5 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -10622,17 +10622,12 @@ static int nl80211_mlo_signal_poll(void *priv,
 	mlo_si->valid_links = drv->sta_mlo_info.valid_links;
 
 	for_each_link(mlo_si->valid_links, i) {
-		res = nl80211_get_link_signal(bss,
-					      drv->sta_mlo_info.links[i].bssid,
-					      &mlo_si->links[i].data);
-		if (res != 0)
-			return res;
-
 		mlo_si->links[i].center_frq1 = -1;
 		mlo_si->links[i].center_frq2 = -1;
 		mlo_si->links[i].chanwidth = CHAN_WIDTH_UNKNOWN;
 		mlo_si->links[i].current_noise = WPA_INVALID_NOISE;
 		mlo_si->links[i].frequency = drv->sta_mlo_info.links[i].freq;
+		mlo_si->links[i].data.signal = -WPA_INVALID_NOISE;
 	}
 
 	res = nl80211_get_links_channel_width(bss, mlo_si);
-- 
2.53.0




More information about the Hostap mailing list