author | mickeyl <mickeyl> | 2003-10-02 19:52:17 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-10-02 19:52:17 (UTC) |
commit | 0a9b6ef6ef6fd8d06d420fc25e8a67545815dc39 (patch) (side-by-side diff) | |
tree | 31d9aa2694b2275303cea430934924cd8748dfa5 | |
parent | a5622a23c3083e1ff8a526713aed6a36aaf7a5bd (diff) | |
download | opie-0a9b6ef6ef6fd8d06d420fc25e8a67545815dc39.zip opie-0a9b6ef6ef6fd8d06d420fc25e8a67545815dc39.tar.gz opie-0a9b6ef6ef6fd8d06d420fc25e8a67545815dc39.tar.bz2 |
add note to self to look about automatic channel switching with wlan-ng devices
-rw-r--r-- | libopie2/opienet/onetwork.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libopie2/opienet/onetwork.cpp b/libopie2/opienet/onetwork.cpp index 751d841..1f529d2 100644 --- a/libopie2/opienet/onetwork.cpp +++ b/libopie2/opienet/onetwork.cpp @@ -913,48 +913,49 @@ OWlanNGMonitoringInterface::~OWlanNGMonitoringInterface() void OWlanNGMonitoringInterface::setEnabled( bool b ) { //FIXME: do nothing if its already in the same mode QString enable = b ? "true" : "false"; QString prism = _prismHeader ? "true" : "false"; QString cmd; cmd.sprintf( "$(which wlanctl-ng) %s lnxreq_wlansniff channel=%d enable=%s prismheader=%s", (const char*) _if->name(), 1, (const char*) enable, (const char*) prism ); system( cmd ); } QString OWlanNGMonitoringInterface::name() const { return "wlan-ng"; } void OWlanNGMonitoringInterface::setChannel( int ) { // wlan-ng devices automatically switch channels when in monitor mode + // NOTE: The above note no longer seems to be true for recent driver versions! } /*====================================================================================== * OHostAPMonitoringInterface *======================================================================================*/ OHostAPMonitoringInterface::OHostAPMonitoringInterface( ONetworkInterface* iface, bool prismHeader ) :OMonitoringInterface( iface, prismHeader ) { iface->setMonitoring( this ); } OHostAPMonitoringInterface::~OHostAPMonitoringInterface() { } void OHostAPMonitoringInterface::setEnabled( bool b ) { // IW_MODE_MONITOR was introduced in Wireless Extensions Version 15 // Wireless Extensions < Version 15 need iwpriv commandos for monitoring #if WIRELESS_EXT > 14 if ( b ) |