summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2003-10-28 16:39:26 (UTC)
committer mickeyl <mickeyl>2003-10-28 16:39:26 (UTC)
commit5acd7ce51829c317f6218ff059d0d2f63cdb0871 (patch) (side-by-side diff)
tree8db30d3910ebd8c6936ea4aaa35b03da1faa2f1e
parent877bc5c756d94db71a745596dd7e48104a2ec9a1 (diff)
downloadopie-5acd7ce51829c317f6218ff059d0d2f63cdb0871.zip
opie-5acd7ce51829c317f6218ff059d0d2f63cdb0871.tar.gz
opie-5acd7ce51829c317f6218ff059d0d2f63cdb0871.tar.bz2
catch up with API changes in libopienet
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/wellenreiter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.cpp b/noncore/net/wellenreiter/gui/wellenreiter.cpp
index 60bf231..365efb0 100644
--- a/noncore/net/wellenreiter/gui/wellenreiter.cpp
+++ b/noncore/net/wellenreiter/gui/wellenreiter.cpp
@@ -387,17 +387,17 @@ void Wellenreiter::stopClicked()
killTimers();
pcap->close();
sniffing = false;
if ( iface )
{
// switch off monitor mode
- iface->setMonitorMode( false );
+ iface->setMode( "managed" );
// switch off promisc flag
iface->setPromiscuousMode( false );
system( "cardctl reset; sleep 1" ); //FIXME: Use OProcess
}
logwindow->log( "(i) Stopped Scanning." );
assert( parent() );
@@ -471,18 +471,18 @@ void Wellenreiter::startClicked()
case DEVTYPE_FILE: qDebug( "Wellenreiter: Capturing from file '%s'", (const char*) interface ); break;
default: assert( 0 ); // shouldn't reach this
}
// switch device into monitor mode
if ( cardtype < DEVTYPE_FILE )
{
if ( cardtype != DEVTYPE_MANUAL )
- iface->setMonitorMode( true );
- if ( !iface->monitorMode() )
+ iface->setMode( "monitor" );
+ if ( iface->mode() != "monitor" )
{
if ( QMessageBox::warning( this, "Wellenreiter II",
tr( "Can't set interface '%1'\ninto monitor mode:\n" ).arg( iface->name() ) + strerror( errno ) +
tr( "\nContinue with limited functionality?" ), QMessageBox::Yes, QMessageBox::No ) == QMessageBox::No )
return;
}
}