[kismac] [binaervarianz] r213 - branches/usb-drivers/Sources/Driver/USBJack

  • From: svn@xxxxxxxxxxxxxxxx
  • To: kismac@xxxxxxxxxxxxx
  • Date: Tue, 24 Oct 2006 16:55:49 +0200

Author: gkruse
Date: 2006-10-24 16:55:46 +0200 (Tue, 24 Oct 2006)
New Revision: 213

Modified:
   branches/usb-drivers/Sources/Driver/USBJack/RT73Jack.mm
   branches/usb-drivers/Sources/Driver/USBJack/USBJack.mm
Log:
Moved Belkin F5D7050 V3000FR to the rt73 driver.  There are probably others 
defined wrong, added infomative debug line urging users to report if there 
device might be rt73.  Should fix #173

Modified: branches/usb-drivers/Sources/Driver/USBJack/RT73Jack.mm
===================================================================
--- branches/usb-drivers/Sources/Driver/USBJack/RT73Jack.mm     2006-10-18 
17:43:58 UTC (rev 212)
+++ branches/usb-drivers/Sources/Driver/USBJack/RT73Jack.mm     2006-10-24 
14:55:46 UTC (rev 213)
@@ -522,7 +522,12 @@
        do 
        {
                RTUSBReadBBPRegister(BBP_R0, &Value);
-               NSLog(@"BBP version = %d\n", 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)));
                  
        // Initialize BBP register to default value

Modified: branches/usb-drivers/Sources/Driver/USBJack/USBJack.mm
===================================================================
--- branches/usb-drivers/Sources/Driver/USBJack/USBJack.mm      2006-10-18 
17:43:58 UTC (rev 212)
+++ branches/usb-drivers/Sources/Driver/USBJack/USBJack.mm      2006-10-24 
14:55:46 UTC (rev 213)
@@ -85,7 +85,6 @@
     {0x0411, 0x0067},  /* Melco */             
     {0x050d, 0x7050},  /* Belkin */            
     {0x050d, 0x7051},  /* Belkin */            
-    {0x050d, 0x705a},   /* Belkin */           
     {0x06f8, 0xe000},   /* GUILLEMOT */                
     {0x0707, 0xee13},  /* SMC */               
     {0x0b05, 0x1706},  /* ASUS */              
@@ -113,12 +112,13 @@
        // ralink RT73
     {0x07d1, 0x3c03},  /* D-LINK */
     {0x07d1, 0x3c04},  /* D-LINK */
+    {0x050d, 0x705a},   /* Belkin */
 };
 
 #define dIntersilDeviceCount 32
 #define dZydasDeviceCount 1
-#define dRalinkDeviceCount 29
-#define dRT73DeviceCount 2
+#define dRalinkDeviceCount 28
+#define dRT73DeviceCount 3
 
 #define dbgOutPutBuf(a) NSLog( @"0x%.4x 0x%.4x 0x%.4x 0x%.4x%.4x", 
NSSwapLittleShortToHost(*((UInt16*)&(a) )), 
NSSwapLittleShortToHost(*((UInt16*)&(a)+1)), 
NSSwapLittleShortToHost(*((UInt16*)&(a)+2)), 
NSSwapLittleShortToHost(*((UInt16*)&(a)+3)), 
NSSwapLittleShortToHost(*((UInt16*)&(a)+4)) );              
 


Other related posts:

  • » [kismac] [binaervarianz] r213 - branches/usb-drivers/Sources/Driver/USBJack