Skip to content

Commit 1938be8

Browse files
committed
Wifi (NetBSD): fix the ambiguous comment
1 parent 0980d5f commit 1938be8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/detection/wifi/wifi_nbsd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const char* ffDetectWifi(FFlist* result)
125125
if (ioctl(sock, SIOCG80211, &ireq) >= 0) {
126126
struct ieee80211req_sta_info* sta = stareq.req.info;
127127
if (sta->isi_len != 0) {
128-
int8_t rssi = (int8_t) sta->isi_rssi; // This is strange
128+
int8_t rssi = (int8_t) sta->isi_rssi; // Strangely, `sta->isi_rssi` is unsigned
129129
item->conn.signalQuality = (rssi >= -50 ? 100 : rssi <= -100 ? 0 : (rssi + 100) * 2);
130130

131131
if (sta->isi_txrate) {

0 commit comments

Comments
 (0)