From 1938be86ff29241e454811f3dc8fb767472a562d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Tue, 29 Apr 2025 13:53:45 +0800 Subject: [PATCH] Wifi (NetBSD): fix the ambiguous comment --- src/detection/wifi/wifi_nbsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detection/wifi/wifi_nbsd.c b/src/detection/wifi/wifi_nbsd.c index 25325031d..6bb9df8ac 100644 --- a/src/detection/wifi/wifi_nbsd.c +++ b/src/detection/wifi/wifi_nbsd.c @@ -125,7 +125,7 @@ const char* ffDetectWifi(FFlist* result) if (ioctl(sock, SIOCG80211, &ireq) >= 0) { struct ieee80211req_sta_info* sta = stareq.req.info; if (sta->isi_len != 0) { - int8_t rssi = (int8_t) sta->isi_rssi; // This is strange + int8_t rssi = (int8_t) sta->isi_rssi; // Strangely, `sta->isi_rssi` is unsigned item->conn.signalQuality = (rssi >= -50 ? 100 : rssi <= -100 ? 0 : (rssi + 100) * 2); if (sta->isi_txrate) {