From d5d9b307e950d9038215e4d63e64bc9cd5d85352 Mon Sep 17 00:00:00 2001 From: mickeyl Date: Tue, 28 Oct 2003 19:13:34 +0000 Subject: catch up with API changes in libopienet --- 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 @@ -351,8 +351,8 @@ void WLANImp::rescanNeighbourhood() 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; @@ -410,8 +410,8 @@ 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; -- cgit v0.9.0.2