summaryrefslogtreecommitdiff
path: root/noncore
authormickeyl <mickeyl>2004-03-28 13:39:39 (UTC)
committer mickeyl <mickeyl>2004-03-28 13:39:39 (UTC)
commitca32f9c2a799aec751efd82e73c3154de1afe957 (patch) (unidiff)
tree4577ffe310acac81451235a4b11f0bf2ec86c3bc /noncore
parent0821e9018b0a3b1ea11ff5a4454db2e047d94d88 (diff)
downloadopie-ca32f9c2a799aec751efd82e73c3154de1afe957.zip
opie-ca32f9c2a799aec751efd82e73c3154de1afe957.tar.gz
opie-ca32f9c2a799aec751efd82e73c3154de1afe957.tar.bz2
fix stupid bug that broke replaying capture files
Diffstat (limited to 'noncore') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/wellenreiter.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.cpp b/noncore/net/wellenreiter/gui/wellenreiter.cpp
index e8d9de7..c8d77a7 100644
--- a/noncore/net/wellenreiter/gui/wellenreiter.cpp
+++ b/noncore/net/wellenreiter/gui/wellenreiter.cpp
@@ -509,37 +509,38 @@ void Wellenreiter::startClicked()
509 if ( ( interface == "" ) || ( cardtype == 0 ) ) 509 if ( ( interface == "" ) || ( cardtype == 0 ) )
510 { 510 {
511 QMessageBox::information( this, "Wellenreiter II", 511 QMessageBox::information( this, "Wellenreiter II",
512 tr( "Your device is not\nproperly configured. Please reconfigure!" ) ); 512 tr( "Your device is not\nproperly configured. Please reconfigure!" ) );
513 return; 513 return;
514 } 514 }
515 515
516 // configure device 516 // configure device
517 ONetwork* net = ONetwork::instance(); 517 ONetwork* net = ONetwork::instance();
518 518
519 // TODO: check if interface is wireless and support sniffing for non-wireless interfaces 519 // TODO: check if interface is wireless and support sniffing for non-wireless interfaces
520 520
521 if ( cardtype != DEVTYPE_FILE )
522 {
523
521 if ( !net->isPresent( interface ) ) 524 if ( !net->isPresent( interface ) )
522 { 525 {
523 QMessageBox::information( this, "Wellenreiter II", 526 QMessageBox::information( this, "Wellenreiter II",
524 tr( "The configured device (%1)\nis not available on this system\n. Please reconfigure!" ).arg( interface ) ); 527 tr( "The configured device (%1)\nis not available on this system\n. Please reconfigure!" ).arg( interface ) );
525 return; 528 return;
526 } 529 }
527 530
528 iface = static_cast<OWirelessNetworkInterface*>(net->interface( interface )); // fails if network is not wireless! 531 iface = static_cast<OWirelessNetworkInterface*>(net->interface( interface )); // fails if network is not wireless!
529 assert( iface ); 532 assert( iface );
530 533
531 // bring device UP 534 // bring device UP
532 if ( cardtype != DEVTYPE_FILE )
533 {
534 iface->setUp( true ); 535 iface->setUp( true );
535 if ( !iface->isUp() ) 536 if ( !iface->isUp() )
536 { 537 {
537 QMessageBox::warning( this, "Wellenreiter II", 538 QMessageBox::warning( this, "Wellenreiter II",
538 tr( "Can't bring interface '%1' up:\n" ).arg( iface->name() ) + strerror( errno ) ); 539 tr( "Can't bring interface '%1' up:\n" ).arg( iface->name() ) + strerror( errno ) );
539 return; 540 return;
540 } 541 }
541 } 542 }
542 // set monitor mode 543 // set monitor mode
543 bool usePrism = configwindow->usePrismHeader(); 544 bool usePrism = configwindow->usePrismHeader();
544 545
545 switch ( cardtype ) 546 switch ( cardtype )