-rw-r--r-- | noncore/net/wellenreiter/gui/wellenreiter.cpp | 6 |
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 | |||
@@ -392,7 +392,7 @@ void Wellenreiter::stopClicked() | |||
392 | if ( iface ) | 392 | if ( iface ) |
393 | { | 393 | { |
394 | // switch off monitor mode | 394 | // switch off monitor mode |
395 | iface->setMonitorMode( false ); | 395 | iface->setMode( "managed" ); |
396 | // switch off promisc flag | 396 | // switch off promisc flag |
397 | iface->setPromiscuousMode( false ); | 397 | iface->setPromiscuousMode( false ); |
398 | 398 | ||
@@ -476,8 +476,8 @@ void Wellenreiter::startClicked() | |||
476 | if ( cardtype < DEVTYPE_FILE ) | 476 | if ( cardtype < DEVTYPE_FILE ) |
477 | { | 477 | { |
478 | if ( cardtype != DEVTYPE_MANUAL ) | 478 | if ( cardtype != DEVTYPE_MANUAL ) |
479 | iface->setMonitorMode( true ); | 479 | iface->setMode( "monitor" ); |
480 | if ( !iface->monitorMode() ) | 480 | if ( iface->mode() != "monitor" ) |
481 | { | 481 | { |
482 | if ( QMessageBox::warning( this, "Wellenreiter II", | 482 | if ( QMessageBox::warning( this, "Wellenreiter II", |
483 | tr( "Can't set interface '%1'\ninto monitor mode:\n" ).arg( iface->name() ) + strerror( errno ) + | 483 | tr( "Can't set interface '%1'\ninto monitor mode:\n" ).arg( iface->name() ) + strerror( errno ) + |