NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/39364: wpa_cli scan_results shows '0' signal level



The following patch fixes the problem for me. Can someone verify its correctness?

Index: driver_netbsd.c
===================================================================
RCS file: /cvsroot/src/usr.sbin/wpa/wpa_supplicant/driver_netbsd.c,v
retrieving revision 1.6
diff -u -r1.6 driver_netbsd.c
--- driver_netbsd.c     15 Jun 2008 18:33:32 -0000      1.6
+++ driver_netbsd.c     29 Aug 2008 00:05:48 -0000
@@ -695,8 +695,8 @@
                wsr->ssid_len = sr->isr_ssid_len;
                wsr->freq = sr->isr_freq;
                wsr->noise = sr->isr_noise;
-               wsr->qual = sr->isr_rssi;
-               wsr->level = 0;              /* XXX? */
+               wsr->qual = 0;                       /* XXX? */
+               wsr->level = sr->isr_rssi;
                wsr->caps = sr->isr_capinfo;
                wsr->maxrate = getmaxrate(sr->isr_rates, sr->isr_nrates);
                vp = (u_int8_t *)(sr+1);


Home | Main Index | Thread Index | Old Index