* [PATCH] netdev: initialize RSSI polling station info
@ 2026-09-12 14:57 Alessandro Di Marco
0 siblings, 0 replies; only message in thread
From: Alessandro Di Marco @ 2026-09-12 14:57 UTC (permalink / raw)
To: iwd; +Cc: Alessandro Di Marco
netdev_rssi_poll_cb() uses netdev_parse_sta_info() and then checks
have_cur_rssi. If NL80211_STA_INFO_SIGNAL is not present in the
response, the parser leaves this field untouched.
Initialize the diagnostic station info before parsing, matching
netdev_get_station_cb().
Fixes: 08de8186c6f2 ("netdev: update RSSI polling to use station info parser")
---
src/netdev.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/netdev.c b/src/netdev.c
index e639a1f8..a4cb06d4 100644
--- a/src/netdev.c
+++ b/src/netdev.c
@@ -735,6 +735,8 @@ static void netdev_rssi_poll_cb(struct l_genl_msg *msg, void *user_data)
if (!l_genl_attr_init(&attr, msg))
goto done;
+ memset(&info, 0, sizeof(info));
+
found = false;
while (l_genl_attr_next(&attr, &type, &len, &data)) {
if (type != NL80211_ATTR_STA_INFO)
--
2.55.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-12 14:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-12 14:57 [PATCH] netdev: initialize RSSI polling station info Alessandro Di Marco
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox