summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings/wlan/wlanimp2.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/noncore/settings/networksettings/wlan/wlanimp2.cpp b/noncore/settings/networksettings/wlan/wlanimp2.cpp
index 7ce096f..e7d6ff5 100644
--- a/noncore/settings/networksettings/wlan/wlanimp2.cpp
+++ b/noncore/settings/networksettings/wlan/wlanimp2.cpp
@@ -352,6 +352,6 @@ void WLANImp::rescanNeighbourhood()
}
- wiface->setMonitorMode( true );
- if ( !wiface->monitorMode() )
+ wiface->setMode( "monitor" );
+ if ( wiface->mode() != "monitor" )
{
qWarning( "rescanNeighbourhood(): Unable to bring device into monitor mode (%s).", strerror( errno ) );
@@ -411,6 +411,6 @@ void WLANImp::rescanNeighbourhood()
cap->close();
- wiface->setMonitorMode( false );
- wiface->setPromiscuousMode( true );
+ wiface->setMode( "managed" ); // TODO: use previous mode
+ wiface->setPromiscuousMode( false );
splash->hide();