[kismac] [binaervarianz] r214 - branches/usb-drivers/Sources/Driver/USBJack
- From: svn@xxxxxxxxxxxxxxxx
- To: kismac@xxxxxxxxxxxxx
- Date: Wed, 25 Oct 2006 15:47:43 +0200
Author: gkruse
Date: 2006-10-25 15:47:40 +0200 (Wed, 25 Oct 2006)
New Revision: 214
Modified:
branches/usb-drivers/Sources/Driver/USBJack/RT73Jack.mm
branches/usb-drivers/Sources/Driver/USBJack/RalinkJack.mm
Log:
Move debug message to right driver. Also, we probably don't need to swap when
writing to the device, all writes are expexted to be in host endian
Modified: branches/usb-drivers/Sources/Driver/USBJack/RT73Jack.mm
===================================================================
--- branches/usb-drivers/Sources/Driver/USBJack/RT73Jack.mm 2006-10-24
14:55:46 UTC (rev 213)
+++ branches/usb-drivers/Sources/Driver/USBJack/RT73Jack.mm 2006-10-25
13:47:40 UTC (rev 214)
@@ -107,7 +107,9 @@
else
{
-#if __BIG_ENDIAN__
+#if 0
+ //__BIG_ENDIAN__
+ //I don't think we ever need to swap going to the device --geoff
//data is returned in the bus endian
//we need to swap
//this is going to be bad when we run on intel
@@ -522,10 +524,6 @@
do
{
RTUSBReadBBPRegister(BBP_R0, &Value);
- if (Value == 0) {
- NSLog(@"This is probably an rt73 chipset, please report your
vendor and product id to http://trac.kismac.de");
- return kIOReturnNoDevice;
- }
else NSLog(@"BBP version = %d\n", Value);
} while ((++Index < 100) && ((Value == 0xff) || (Value == 0x00)));
Modified: branches/usb-drivers/Sources/Driver/USBJack/RalinkJack.mm
===================================================================
--- branches/usb-drivers/Sources/Driver/USBJack/RalinkJack.mm 2006-10-24
14:55:46 UTC (rev 213)
+++ branches/usb-drivers/Sources/Driver/USBJack/RalinkJack.mm 2006-10-25
13:47:40 UTC (rev 214)
@@ -113,6 +113,10 @@
do
{
ret = RTUSBReadBBPRegister(BBP_Version, &Value);
+ if (Value == 0) {
+ NSLog(@"This is probably an rt73 chipset, please report your
vendor and product id to http://trac.kismac.de");
+ return kIOReturnNoDevice;
+ }
NSLog(@"Read BBP_Version Value = %d\n", Value);
i++;
}while (((Value == 0xff) || (Value == 0x00)) && (i < 50));
Other related posts:
- » [kismac] [binaervarianz] r214 - branches/usb-drivers/Sources/Driver/USBJack