From: Benjamin Berg Date: Thu, 7 Aug 2025 11:25:34 +0000 (+0200) Subject: nl80211: Silence bogus send_event_marker() warning X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=274d5014bd5016f72ccb19ddc8b696bb1a4364d1;p=thirdparty%2Fhostap.git nl80211: Silence bogus send_event_marker() warning 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 --- diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index cca5acf6a..6e46b67b9 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -494,7 +494,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;