Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 May 2013 15:00:12 -0700
From:      Adrian Chadd <adrian@freebsd.org>
To:        Eitan Adler <eadler@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, freebsd-wireless@freebsd.org
Subject:   Re: svn commit: r250528 - head/usr.sbin/wpa/wpa_supplicant
Message-ID:  <CAJ-VmokaGtXh8FV9jiSwmpPfX06PSrNuTHpUTv5%2BCTtWdGQZ4g@mail.gmail.com>
In-Reply-To: <201305112055.r4BKtFif062874@svn.freebsd.org>
References:  <201305112055.r4BKtFif062874@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
oh thank _god_ someone fixed this.

It's been bugging me for about a year, but I've been too slack (hah!)
to figure out why.

Next, teaching it about whether to prefer 2ghz or 5ghz APs..



Adrian

On 11 May 2013 13:55, Eitan Adler <eadler@freebsd.org> wrote:
> Author: eadler
> Date: Sat May 11 20:55:14 2013
> New Revision: 250528
> URL: http://svnweb.freebsd.org/changeset/base/250528
>
> Log:
>   Teach wpa_supplicant to properly compute wireless signal strength.
>
>   PR:           bin/170631
>   Submitted by: Daan Vreeken <Daan@vitsch.nl>
>   Reviewed by:  adrian
>
> Modified:
>   head/usr.sbin/wpa/wpa_supplicant/driver_freebsd.c
>
> Modified: head/usr.sbin/wpa/wpa_supplicant/driver_freebsd.c
> ==============================================================================
> --- head/usr.sbin/wpa/wpa_supplicant/driver_freebsd.c   Sat May 11 20:51:00 2013        (r250527)
> +++ head/usr.sbin/wpa/wpa_supplicant/driver_freebsd.c   Sat May 11 20:55:14 2013        (r250528)
> @@ -693,6 +693,11 @@ wpa_driver_bsd_add_scan_entry(struct wpa
>          result->caps = sr->isr_capinfo;
>          result->qual = sr->isr_rssi;
>          result->noise = sr->isr_noise;
> +        /*
> +         * the rssi value reported by the kernel is in 0.5dB steps relative to
> +         * the reported noise floor. see ieee80211_node.h for details.
> +         */
> +        result->level = sr->isr_rssi / 2 + sr->isr_noise;
>
>          pos = (u8 *)(result + 1);
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmokaGtXh8FV9jiSwmpPfX06PSrNuTHpUTv5%2BCTtWdGQZ4g>