[kismac] [binaervarianz] r125 - KisMACng/Sources/Driver/USBIntersilJack
- From: svn@xxxxxxxxxxxxxxxx
- To: kismac@xxxxxxxxxxxxx
- Date: Wed, 19 Apr 2006 16:41:19 +0200
Author: robin
Date: 2006-04-19 16:41:18 +0200 (Wed, 19 Apr 2006)
New Revision: 125
Modified:
KisMACng/Sources/Driver/USBIntersilJack/USBIntersil.mm
Log:
* Automatic reset code in R122/123 appeared to work, but scanning would not
find networks until after a further manual stop and start.
This revision adds the original fix (posted but not committed) to the automatic
reset following a setChannel() error. Resumed scan (either from sleep while
scanning, or when scanning manually stopped before and started after sleep)
appears to find networks again.
Modified: KisMACng/Sources/Driver/USBIntersilJack/USBIntersil.mm
===================================================================
--- KisMACng/Sources/Driver/USBIntersilJack/USBIntersil.mm 2006-04-19
03:42:31 UTC (rev 124)
+++ KisMACng/Sources/Driver/USBIntersilJack/USBIntersil.mm 2006-04-19
14:41:18 UTC (rev 125)
@@ -89,6 +89,11 @@
if (!_devicePresent) return false;
if (!_deviceInit) return false;
+ if (_doCommand(wlcInit, 0) != kIOReturnSuccess) {
+ NSLog(@"USBIntersilJack::startCapture: _doCommand(wlcInit, 0)
failed\n");
+ return false;
+ }
+
if ((!_isEnabled) && (_disable() != kIOReturnSuccess)) {
NSLog(@"USBIntersilJack::::startCapture: Couldn't disable card\n");
return false;
@@ -122,7 +127,7 @@
if (!_deviceInit) return false;
if (_doCommand(wlcMonitorOff, 0) != kIOReturnSuccess) {
- NSLog(@"MACJackCard::stopCapture: _doCommand(wlcMonitorOff) failed\n");
+ NSLog(@"USBIntersilJack::stopCapture: _doCommand(wlcMonitorOff)
failed\n");
return false;
}
Other related posts:
- » [kismac] [binaervarianz] r125 - KisMACng/Sources/Driver/USBIntersilJack