summaryrefslogtreecommitdiff
path: root/libopie2/opienet/onetwork.h
Side-by-side diff
Diffstat (limited to 'libopie2/opienet/onetwork.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opienet/onetwork.h29
1 files changed, 22 insertions, 7 deletions
diff --git a/libopie2/opienet/onetwork.h b/libopie2/opienet/onetwork.h
index b170ea2..e1545dd 100644
--- a/libopie2/opienet/onetwork.h
+++ b/libopie2/opienet/onetwork.h
@@ -362,5 +362,5 @@ class OWirelessNetworkInterface : public ONetworkInterface
* @see OMonitoringInterface
*/
- virtual void setMonitorMode( bool ); //FIXME: ==> setMode( "monitor" );
+ virtual void setMonitorMode( bool ); //FIXME: ==> setMode( "monitor" ); Use IW_MONITOR first, if this doesn't work, then use iwpriv!
/**
* @returns true if the device is listening in IEEE 802.11 monitor mode
@@ -398,10 +398,12 @@ class OWirelessNetworkInterface : public ONetworkInterface
virtual bool hasPrivate( const QString& command );
virtual void getPrivate( const QString& command ); //FIXME: Implement and document this
-
- virtual bool isAssociated() const {}; //FIXME: Implement and document this
/**
- * @returns the MAC address of the Access Point if the
- * device is in infrastructure mode. @returns a (more or less random) CELL
- * address if the device is in adhoc mode.
+ * @returns true if the interface is associated to an access point
+ * @note: This information is only valid if the interface is in managed mode.
+ */
+ virtual bool isAssociated() const;
+ /**
+ * @returns the MAC address of the Access Point if the device is in infrastructure mode.
+ * @returns a (more or less random) cell ID address if the device is in adhoc mode.
*/
virtual QString associatedAP() const;
@@ -415,8 +417,14 @@ class OWirelessNetworkInterface : public ONetworkInterface
*/
virtual QString SSID() const;
+ /**
+ * Perform scanning the wireless network neighbourhood.
+ * @note: UNSTABLE API - UNDER CONSTRUCTION - DON'T USE!
+ */
+ virtual int scanNetwork();
protected:
- void buildChannelList();
+ void buildInformation();
void buildPrivateList();
+ void dumpInformation() const;
virtual void init();
struct iwreq& iwr() const;
@@ -427,4 +435,5 @@ class OWirelessNetworkInterface : public ONetworkInterface
mutable struct iwreq _iwr;
QMap<int,int> _channels;
+ struct iw_range _range;
private:
@@ -476,8 +485,10 @@ class OCiscoMonitoringInterface : public OMonitoringInterface
};
+
/*======================================================================================
* OWlanNGMonitoringInterface
*======================================================================================*/
+
class OWlanNGMonitoringInterface : public OMonitoringInterface
{
@@ -493,8 +504,10 @@ class OWlanNGMonitoringInterface : public OMonitoringInterface
};
+
/*======================================================================================
* OHostAPMonitoringInterface
*======================================================================================*/
+
class OHostAPMonitoringInterface : public OMonitoringInterface
{
@@ -508,8 +521,10 @@ class OHostAPMonitoringInterface : public OMonitoringInterface
};
+
/*======================================================================================
* OOrinocoMonitoringInterface
*======================================================================================*/
+
class OOrinocoMonitoringInterface : public OMonitoringInterface
{