summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/wellenreiter.cpp2
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
@@ -151,25 +151,25 @@ void Wellenreiter::startStopClicked()
151 #endif 151 #endif
152 152
153 // get interface name from config window 153 // get interface name from config window
154 const QString& interface = configwindow->interfaceName->currentText(); 154 const QString& interface = configwindow->interfaceName->currentText();
155 ONetwork* net = ONetwork::instance(); 155 ONetwork* net = ONetwork::instance();
156 iface = static_cast<OWirelessNetworkInterface*>(net->interface( interface )); 156 iface = static_cast<OWirelessNetworkInterface*>(net->interface( interface ));
157 157
158 // switch off monitor mode 158 // switch off monitor mode
159 iface->setMonitorMode( false ); 159 iface->setMonitorMode( false );
160 // switch off promisc flag 160 // switch off promisc flag
161 iface->setPromiscuousMode( false ); 161 iface->setPromiscuousMode( false );
162 162
163 system( "cardctl reset; sleep 1; dhclient; udhcpc" ); //FIXME: Use OProcess 163 system( "cardctl reset; sleep 1" ); //FIXME: Use OProcess
164 164
165 // message the user 165 // message the user
166 QMessageBox::information( this, "Wellenreiter II", "Your wireless card\nshould now be usable again." ); 166 QMessageBox::information( this, "Wellenreiter II", "Your wireless card\nshould now be usable again." );
167 } 167 }
168 168
169 else 169 else
170 { 170 {
171 // get configuration from config window 171 // get configuration from config window
172 172
173 const QString& interface = configwindow->interfaceName->currentText(); 173 const QString& interface = configwindow->interfaceName->currentText();
174 const int cardtype = configwindow->daemonDeviceType(); 174 const int cardtype = configwindow->daemonDeviceType();
175 const int interval = configwindow->daemonHopInterval(); 175 const int interval = configwindow->daemonHopInterval();