From nobody Fri Apr 1 22:46:02 2022 X-Original-To: wireless@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 1DE291A51701 for ; Fri, 1 Apr 2022 22:46:08 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KVZyl5q36z4gvW; Fri, 1 Apr 2022 22:46:07 +0000 (UTC) (envelope-from bz@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648853167; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=PZCAH0UbVuA5DhF35s8GjGT3A8BI08MbElT8mD98yr8=; b=FR4X2w4reO64yuuPDmECnf3TSusa1b5endU4HVCpf92pEHlGvEMV8un/DVzGgcBKHp2mwY 1TXCw/MOn3wSehCxrXqGbn9WhRrIF62v2kSjcOOXTlm1q0J8sC/sMXPzpxdPi4zx9wwLKy KezFm4sJFSgf+K9+5FOEMGNyzOl0YogsjJDh4G0jaiVZcjZboAIJRhiwBB+sMkiVB6j7Al jVR7AbVnsmRDtpVnObFsQk5YR4Upr6LNIWq/FSP9xuVLx83M9S5F2DGaqUWKf3tasLtwtl hu+8mlFGsxcZuDYR+hWDlz55I50Pesdx65DXalA9lxy9cdiNlYwt/RXWf55jCQ== Received: from mx1.sbone.de (cross.sbone.de [195.201.62.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE" (not verified)) (Authenticated sender: bz/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4111C57D1; Fri, 1 Apr 2022 22:46:06 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id AD3768D4A170; Fri, 1 Apr 2022 22:46:05 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 32D3DE707BF; Fri, 1 Apr 2022 22:46:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id W2iYmzLOF3PC; Fri, 1 Apr 2022 22:46:03 +0000 (UTC) Received: from nv.sbone.de (nv.sbone.de [IPv6:fde9:577b:c1a9:31::2013:138]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 8794FE707B8; Fri, 1 Apr 2022 22:46:03 +0000 (UTC) Date: Fri, 1 Apr 2022 22:46:02 +0000 (UTC) From: "Bjoern A. Zeeb" To: "J.R. Oldroyd" cc: Takashi Inoue , FreeBSD wireless mailing list Subject: Re: wifimgr with iwlwifi In-Reply-To: <20220326165218.4934d148@opal.com> Message-ID: References: <86sfr5o9hj.fsf@kpiecuch.pl> <2dadd936-7bd6-ad0a-e2f8-b6f0e677b785@nihon-u.ac.jp> <20220326165218.4934d148@opal.com> X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 List-Id: Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-wireless List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648853167; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=PZCAH0UbVuA5DhF35s8GjGT3A8BI08MbElT8mD98yr8=; b=lcfP1Jf5L2LaJ1ygjWoITNSxHe4o0L4QGCg3Ei8JnxJGMO3SiAfTzFWbtHFosGZDp7LybK K96SCU1Ind7/xJaFlhU7GRyV/tmmFuT94kMEs6SMVIvq7C9fHM2XTx9U2ZYt92hs5JX4ZD yuJURon6xUX+zfu42ncMkv7InLk1oCgrgEtNUXNDWS5MeE3qJSeNPH0mAa4GNk+GYwYfYI Wpa4YVwRm9WnWeW/W5zIlOl53H2o7hBMiv13vFbD3BBp+HshaNavPfVXHvK29iWzgLeZqG ViwfcK6pP3fu8CCXmC9CCWiKIM1N2YgI+bDu1VXViLUejDXJ7SZF//qB4nIbHA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648853167; a=rsa-sha256; cv=none; b=Hcwsg3PLGnrnqAGFQnEwkO2VwESCn7vryv8IXyjG7+6LL2Zo4CB4gV9Xf0m/cTUX8tPu3r 8unF6cZaHGStzrrfuyLLnj/QXE1hStwv0avZ2LKeugA5jj+KsC71qJex2QDRGwLan3Yo6N 2vtAT8DFYLklGy1T3xmWNRilF+eiMEsutXxmSO7qtlBw7y5REc9yCNjHzxYZyKWxlYV3rn pzFYI8jScrI/r5ZKL6WnNmvNoNlPIT01sqfoJNsEBJVmjrMn/OqPagJxzu2fr/p6QnzBBV v7699g46ScOAZYWXmgnU/OZrlFkJRiE02JGXuMT2i0RV7G8dcjZZx8JMQGRHAQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On Sat, 26 Mar 2022, J.R. Oldroyd wrote: Hi, > On Sat, 26 Mar 2022 09:58:12 -0700 Kevin Oberman wrote: >> >> On Sat, Mar 26, 2022 at 3:28 AM Takashi Inoue >> wrote: >> >>> Do you use "wifimgr" which is a GUI tool to select AP. >>> When I use "if_iwlfiwi.ko", wave strength displayed >>> in wifimgr is 0 for all access point. >>> Do you see this phenomenon? Or, does someone see this? >>> >>> Best, >>> Takashi >>> >> >> I'll have to leave the wifimge to others. > > Wifimgr parses the output of "ifconfig -v wlanN list scan" in order to > compute the number of bars to display for the signal strength. > > With the iwm driver, I see s/n values like -49:-96 for my network. I am actually not sure if the values in iwm are correct; there is a factor-2 calculation in there which I believe is only done for max tx power of older cards based on eeprom values but not for the rssi anymore in iwlwifi. I haven't started digging where that originated, so hard to say. > But with the iwlwifi driver, the values for the same network are -121:-96 . > > This large negative value for the signal strength is causing wifimgr > to compute the number of bars as 0. Quick shot. I just pushed two changes to main for anyone who wants to try. If you are on stable/13 and want to test them early you can (unitl they'll be merged): git cherry-pick -x 4a22cd6c4e5f4fc4a38aa7400742d4005c5ae3de git cherry-pick -x 60970a328e280b25b05f1d9a9de1ef91af573c4a Let me know if values start to look more reasonable. Happy weekend, Bjoern -- Bjoern A. Zeeb r15:7