author | mickeyl <mickeyl> | 2004-02-23 15:59:05 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-02-23 15:59:05 (UTC) |
commit | 20b0e62e6c23cdaed9a30d6fad73431edc60be53 (patch) (side-by-side diff) | |
tree | a179f858449e56b04883267c61141f163b4dfbac /libopie2/opienet | |
parent | 68c8d3eb878f9ba913c42368fbb253d7320c62be (diff) | |
download | opie-20b0e62e6c23cdaed9a30d6fad73431edc60be53.zip opie-20b0e62e6c23cdaed9a30d6fad73431edc60be53.tar.gz opie-20b0e62e6c23cdaed9a30d6fad73431edc60be53.tar.bz2 |
addition to API: OWirelessNetworkInterface::signalStrength() [wip]
-rw-r--r-- | libopie2/opienet/onetwork.cpp | 8 | ||||
-rw-r--r-- | libopie2/opienet/onetwork.h | 18 |
2 files changed, 20 insertions, 6 deletions
diff --git a/libopie2/opienet/onetwork.cpp b/libopie2/opienet/onetwork.cpp index d918193..16fa8ae 100644 --- a/libopie2/opienet/onetwork.cpp +++ b/libopie2/opienet/onetwork.cpp @@ -966,2 +966,10 @@ OStationList* OWirelessNetworkInterface::scanNetwork() +int OWirelessNetworkInterface::signalStrength() const
+{
+ int max = _range.max_qual.level;
+ odebug << "signalStrength(): max quality seems to be " << max << "dBM" << oendl;
+ return 50;
+}
+
+
bool OWirelessNetworkInterface::wioctl( int call, struct iwreq& iwreq ) const
diff --git a/libopie2/opienet/onetwork.h b/libopie2/opienet/onetwork.h index bc9e299..9b8a0d4 100644 --- a/libopie2/opienet/onetwork.h +++ b/libopie2/opienet/onetwork.h @@ -2,4 +2,4 @@ This file is part of the Opie Project - Copyright (C) 2003 by Michael 'Mickey' Lauer <mickey@Vanille.de> - =. + Copyright (C) 2003-2004 by Michael 'Mickey' Lauer + =. <mickey@Vanille.de> .=l. @@ -62,3 +62,3 @@ class OMonitoringInterface; * - * @author Michael 'Mickey' Lauer <mickey@tm.informatik.uni-frankfurt.de> + * @author Michael 'Mickey' Lauer <mickey@vanille.de> */ @@ -126,3 +126,3 @@ class ONetwork : public QObject * - * @author Michael 'Mickey' Lauer <mickey@tm.informatik.uni-frankfurt.de> + * @author Michael 'Mickey' Lauer <mickey@vanille.de> */ @@ -236,3 +236,3 @@ class ONetworkInterface : public QObject * - * @author Michael 'Mickey' Lauer <mickey@tm.informatik.uni-frankfurt.de> + * @author Michael 'Mickey' Lauer <mickey@vanille.de> */ @@ -296,3 +296,3 @@ class OChannelHopper : public QObject * - * @author Michael 'Mickey' Lauer <mickey@tm.informatik.uni-frankfurt.de> + * @author Michael 'Mickey' Lauer <mickey@vanille.de> */ @@ -416,2 +416,8 @@ class OWirelessNetworkInterface : public ONetworkInterface virtual OStationList* scanNetwork(); + /** + * @return signal strength to associated neighbour (in percent). + * In infrastructure mode, this is the signal strength of the Access Point. + * In other modes the result is driver dependent. + */ + virtual int signalStrength() const; /** @internal commit pending changes to the driver |