summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2003-10-02 19:52:17 (UTC)
committer mickeyl <mickeyl>2003-10-02 19:52:17 (UTC)
commit0a9b6ef6ef6fd8d06d420fc25e8a67545815dc39 (patch) (unidiff)
tree31d9aa2694b2275303cea430934924cd8748dfa5
parenta5622a23c3083e1ff8a526713aed6a36aaf7a5bd (diff)
downloadopie-0a9b6ef6ef6fd8d06d420fc25e8a67545815dc39.zip
opie-0a9b6ef6ef6fd8d06d420fc25e8a67545815dc39.tar.gz
opie-0a9b6ef6ef6fd8d06d420fc25e8a67545815dc39.tar.bz2
add note to self to look about automatic channel switching with wlan-ng devices
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opienet/onetwork.cpp1
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()
913 913
914 914
915void OWlanNGMonitoringInterface::setEnabled( bool b ) 915void OWlanNGMonitoringInterface::setEnabled( bool b )
916{ 916{
917 //FIXME: do nothing if its already in the same mode 917 //FIXME: do nothing if its already in the same mode
918 918
919 QString enable = b ? "true" : "false"; 919 QString enable = b ? "true" : "false";
920 QString prism = _prismHeader ? "true" : "false"; 920 QString prism = _prismHeader ? "true" : "false";
921 QString cmd; 921 QString cmd;
922 cmd.sprintf( "$(which wlanctl-ng) %s lnxreq_wlansniff channel=%d enable=%s prismheader=%s", 922 cmd.sprintf( "$(which wlanctl-ng) %s lnxreq_wlansniff channel=%d enable=%s prismheader=%s",
923 (const char*) _if->name(), 1, (const char*) enable, (const char*) prism ); 923 (const char*) _if->name(), 1, (const char*) enable, (const char*) prism );
924 system( cmd ); 924 system( cmd );
925} 925}
926 926
927 927
928QString OWlanNGMonitoringInterface::name() const 928QString OWlanNGMonitoringInterface::name() const
929{ 929{
930 return "wlan-ng"; 930 return "wlan-ng";
931} 931}
932 932
933 933
934void OWlanNGMonitoringInterface::setChannel( int ) 934void OWlanNGMonitoringInterface::setChannel( int )
935{ 935{
936 // wlan-ng devices automatically switch channels when in monitor mode 936 // wlan-ng devices automatically switch channels when in monitor mode
937 // NOTE: The above note no longer seems to be true for recent driver versions!
937} 938}
938 939
939 940
940/*====================================================================================== 941/*======================================================================================
941 * OHostAPMonitoringInterface 942 * OHostAPMonitoringInterface
942 *======================================================================================*/ 943 *======================================================================================*/
943 944
944OHostAPMonitoringInterface::OHostAPMonitoringInterface( ONetworkInterface* iface, bool prismHeader ) 945OHostAPMonitoringInterface::OHostAPMonitoringInterface( ONetworkInterface* iface, bool prismHeader )
945 :OMonitoringInterface( iface, prismHeader ) 946 :OMonitoringInterface( iface, prismHeader )
946{ 947{
947 iface->setMonitoring( this ); 948 iface->setMonitoring( this );
948} 949}
949 950
950OHostAPMonitoringInterface::~OHostAPMonitoringInterface() 951OHostAPMonitoringInterface::~OHostAPMonitoringInterface()
951{ 952{
952} 953}
953 954
954void OHostAPMonitoringInterface::setEnabled( bool b ) 955void OHostAPMonitoringInterface::setEnabled( bool b )
955{ 956{
956 // IW_MODE_MONITOR was introduced in Wireless Extensions Version 15 957 // IW_MODE_MONITOR was introduced in Wireless Extensions Version 15
957 // Wireless Extensions < Version 15 need iwpriv commandos for monitoring 958 // Wireless Extensions < Version 15 need iwpriv commandos for monitoring
958 959
959 #if WIRELESS_EXT > 14 960 #if WIRELESS_EXT > 14
960 if ( b ) 961 if ( b )