Date: Tue, 3 Apr 2007 11:16:12 GMT From: Sepherosa Ziehau <sephe@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 117266 for review Message-ID: <200704031116.l33BGCe2064238@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=117266 Change 117266 by sephe@sephe_zealot:sam_wifi on 2007/04/03 11:15:38 RSSI correction value is in lower byte, not upper. Affected files ... .. //depot/projects/wifi/sys/dev/ral/rt2560.c#15 edit Differences ... ==== //depot/projects/wifi/sys/dev/ral/rt2560.c#15 (text) ==== @@ -2559,10 +2559,10 @@ } val = rt2560_eeprom_read(sc, RT2560_EEPROM_CALIBRATE); - if ((val & 0xff00) == 0xff00) + if ((val & 0xff) == 0xff) sc->rssi_corr = RT2560_DEFAULT_RSSI_CORR; else - sc->rssi_corr = val >> 8; + sc->rssi_corr = val & 0xff; DPRINTF(("rssi correction %d, calibrate 0x%02x\n", sc->rssi_corr, val)); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704031116.l33BGCe2064238>
