author | mickeyl <mickeyl> | 2003-03-31 15:00:44 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-03-31 15:00:44 (UTC) |
commit | f3b37f3dd4ae27e809415af67dd4df052d72d076 (patch) (side-by-side diff) | |
tree | 36216a0e3543b11499da3ea56e2e0695c188c49d /noncore | |
parent | 13e8e8cbaede72948d3901a1a903eba43854d770 (diff) | |
download | opie-f3b37f3dd4ae27e809415af67dd4df052d72d076.zip opie-f3b37f3dd4ae27e809415af67dd4df052d72d076.tar.gz opie-f3b37f3dd4ae27e809415af67dd4df052d72d076.tar.bz2 |
only cardctl reset after sniffing. maybe later make calling dhcp client a configurable option.
-rw-r--r-- | noncore/net/wellenreiter/gui/wellenreiter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.cpp b/noncore/net/wellenreiter/gui/wellenreiter.cpp index d1dd73a..e294eb8 100644 --- a/noncore/net/wellenreiter/gui/wellenreiter.cpp +++ b/noncore/net/wellenreiter/gui/wellenreiter.cpp @@ -139,49 +139,49 @@ void Wellenreiter::startStopClicked() { if ( sniffing ) { disconnect( SIGNAL( receivedPacket(OPacket*) ), this, SLOT( receivePacket(OPacket*) ) ); iface->setChannelHopping(); // stop hopping channels pcap->close(); sniffing = false; #ifdef QWS oApp->setTitle(); #else qApp->mainWidget()->setCaption( "Wellenreiter II" ); #endif // get interface name from config window const QString& interface = configwindow->interfaceName->currentText(); ONetwork* net = ONetwork::instance(); iface = static_cast<OWirelessNetworkInterface*>(net->interface( interface )); // switch off monitor mode iface->setMonitorMode( false ); // switch off promisc flag iface->setPromiscuousMode( false ); - system( "cardctl reset; sleep 1; dhclient; udhcpc" ); //FIXME: Use OProcess + system( "cardctl reset; sleep 1" ); //FIXME: Use OProcess // message the user QMessageBox::information( this, "Wellenreiter II", "Your wireless card\nshould now be usable again." ); } else { // get configuration from config window const QString& interface = configwindow->interfaceName->currentText(); const int cardtype = configwindow->daemonDeviceType(); const int interval = configwindow->daemonHopInterval(); if ( ( interface == "" ) || ( cardtype == 0 ) ) { QMessageBox::information( this, "Wellenreiter II", "Your device is not\nproperly configured. Please reconfigure!" ); return; } // configure device ONetwork* net = ONetwork::instance(); iface = static_cast<OWirelessNetworkInterface*>(net->interface( interface )); |