PERFORCE change 117266 for review

Sepherosa Ziehau sephe at FreeBSD.org
Tue Apr 3 11:16:12 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=117266

Change 117266 by sephe at 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));
 }


More information about the p4-projects mailing list