summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2003-10-28 19:13:34 (UTC)
committer mickeyl <mickeyl>2003-10-28 19:13:34 (UTC)
commitd5d9b307e950d9038215e4d63e64bc9cd5d85352 (patch) (unidiff)
treeccef170352625a48c9c7ff0e7ff119f8d23e2331
parent5acd7ce51829c317f6218ff059d0d2f63cdb0871 (diff)
downloadopie-d5d9b307e950d9038215e4d63e64bc9cd5d85352.zip
opie-d5d9b307e950d9038215e4d63e64bc9cd5d85352.tar.gz
opie-d5d9b307e950d9038215e4d63e64bc9cd5d85352.tar.bz2
catch up with API changes in libopienet
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
@@ -348,14 +348,14 @@ void WLANImp::rescanNeighbourhood()
348 else 348 else
349 { 349 {
350 qDebug( "rescanNeighbourhood(): unsupported device type for monitoring :(" ); 350 qDebug( "rescanNeighbourhood(): unsupported device type for monitoring :(" );
351 return; 351 return;
352 } 352 }
353 353
354 wiface->setMonitorMode( true ); 354 wiface->setMode( "monitor" );
355 if ( !wiface->monitorMode() ) 355 if ( wiface->mode() != "monitor" )
356 { 356 {
357 qWarning( "rescanNeighbourhood(): Unable to bring device into monitor mode (%s).", strerror( errno ) ); 357 qWarning( "rescanNeighbourhood(): Unable to bring device into monitor mode (%s).", strerror( errno ) );
358 return; 358 return;
359 } 359 }
360 360
361 // open a packet capturer 361 // open a packet capturer
@@ -407,14 +407,14 @@ void WLANImp::rescanNeighbourhood()
407 qDebug( "rescanNeighbourhood(): TADAA - something came in on channel %d", i ); 407 qDebug( "rescanNeighbourhood(): TADAA - something came in on channel %d", i );
408 handlePacket( p ); 408 handlePacket( p );
409 } 409 }
410 } 410 }
411 411
412 cap->close(); 412 cap->close();
413 wiface->setMonitorMode( false ); 413 wiface->setMode( "managed" ); // TODO: use previous mode
414 wiface->setPromiscuousMode( true ); 414 wiface->setPromiscuousMode( false );
415 415
416 splash->hide(); 416 splash->hide();
417 delete splash; 417 delete splash;
418 418
419} 419}
420 420