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
@@ -350,10 +350,10 @@ void WLANImp::rescanNeighbourhood()
qDebug( "rescanNeighbourhood(): unsupported device type for monitoring :(" );
return;
}
- 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 ) );
return;
}
@@ -409,10 +409,10 @@ void WLANImp::rescanNeighbourhood()
}
}
cap->close();
- wiface->setMonitorMode( false );
- wiface->setPromiscuousMode( true );
+ wiface->setMode( "managed" ); // TODO: use previous mode
+ wiface->setPromiscuousMode( false );
splash->hide();
delete splash;