svn commit: r250528 - head/usr.sbin/wpa/wpa_supplicant

Adrian Chadd adrian at freebsd.org
Wed May 15 05:04:43 UTC 2013


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 at 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 at 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);
>
_______________________________________________
svn-src-all at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe at freebsd.org"


More information about the svn-src-head mailing list