NetBSD Problem Report #55428
From gson@gson.org Sun Jun 28 11:13:59 2020
Return-Path: <gson@gson.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 6127A1A9217
for <gnats-bugs@gnats.NetBSD.org>; Sun, 28 Jun 2020 11:13:59 +0000 (UTC)
Message-Id: <20200628111354.19FE0253EE5@guava.gson.org>
Date: Sun, 28 Jun 2020 14:13:54 +0300 (EEST)
From: gson@gson.org (Andreas Gustafsson)
Reply-To: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@NetBSD.org
Subject: run(4) signal strength indication is backwards
X-Send-Pr-Version: 3.95
>Number: 55428
>Category: kern
>Synopsis: run(4) signal strength indication is backwards
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jun 28 11:15:00 +0000 2020
>Originator: Andreas Gustafsson
>Release: NetBSD-current 9.99.59
>Organization:
>Environment:
System: NetBSD
Architecture: i386
Machine: i386
>Description:
Attaching a USB WiFi adapter supported by the run(4) driver and
running "ifconfig run0 list scan", the signal strength reported
in the "S" part of the "S:N" column increases when I move the
adapter and access point further apart, and decreases when I move
them closer. I would expect it to be the other way round.
Here is output from multiple runs of "ifconfig run0 list scan", edited
to remove duplicate column headers and unrelated access points, and
annotated with the approximate distance to the access point in square
brackets at the end of each line:
SSID BSSID CHAN RATE S:N INT CAPS
test 78:6a:89:5b:06:12 1 54M 45:0 100 E WME [10 m]
test 78:6a:89:5b:06:12 1 54M 19:0 100 E WME [2 m]
test 78:6a:89:5b:06:12 1 54M 17:0 100 E WME [1 m]
test 78:6a:89:5b:06:12 1 54M 15:0 100 E WME [50 cm]
test 78:6a:89:5b:06:12 11 54M 9:0 100 E WME [20 cm]
At very close distance (a few centimeters), the signal strength
value appears to wrap around from 0 to 255:
test 78:6a:89:5b:06:12 11 54M 251:0 100 E WME [10 cm]
Here is dmesg output for the adapter in case:
run0: Ralink (0x148f) 802.11 n WLAN (0x3070), rev 2.00/1.01, addr 2
run0: MAC/BBP RT3070 (rev 0x0201), RF RT3020 (MIMO 1T1R), address 00:e0:4c:b8:16:5e
I'm also getting similar results with another, newer adapter:
run0: Ralink (0x148f) 802.11 n WLAN (0x5370), rev 2.00/1.01, addr 2
run0: MAC/BBP RT5390 (rev 0x0502), RF RT5370 (MIMO 1T1R), address 00:e1:27:01:1e:53
>How-To-Repeat:
>Fix:
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.