[PATCH] nl80211: silence bogus send_event_marker warning
Benjamin Berg
benjamin at sipsolutions.net
Thu Aug 7 04:25:34 PDT 2025
From: Benjamin Berg <benjamin.berg at intel.com>
The err variable only contains an error if it is negative and positive
values are success. Fix the check to silence the message.
Fixes: 645ec9b58a85 ("nl80211: Do a roundtrip to reset event supressions")
Signed-off-by: Benjamin Berg <benjamin.berg at intel.com>
---
src/drivers/driver_nl80211.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 0cc5b4b0e1..ac459ca0b3 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -486,7 +486,7 @@ static int send_event_marker(struct wpa_driver_nl80211_data *drv)
out:
nlmsg_free(msg);
- if (err)
+ if (err < 0)
wpa_printf(MSG_INFO, "nl80211: %s failed: %s",
__func__, nl_geterror(err));
return res;
--
2.50.1
More information about the Hostap
mailing list