author | skyhusker <skyhusker> | 2005-04-20 10:20:20 (UTC) |
---|---|---|
committer | skyhusker <skyhusker> | 2005-04-20 10:20:20 (UTC) |
commit | f6b9c85c09692f298ffa5ee95e1f171a9e158502 (patch) (unidiff) | |
tree | d147bc5b67eb9bc3c7f042a4fa2fb1868d37faef /libopie2/opienet/ostation.h | |
parent | 6ec538f7e4a84e4f76addaf558c415b7dffc659b (diff) | |
download | opie-f6b9c85c09692f298ffa5ee95e1f171a9e158502.zip opie-f6b9c85c09692f298ffa5ee95e1f171a9e158502.tar.gz opie-f6b9c85c09692f298ffa5ee95e1f171a9e158502.tar.bz2 |
Added function to set the associated AP address. Some improvements to scanNetwork(): read the signal quality, AP rates and fix channel reading when driver reports values < 1000.
-rw-r--r-- | libopie2/opienet/ostation.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libopie2/opienet/ostation.h b/libopie2/opienet/ostation.h index 5219d92..86c9a52 100644 --- a/libopie2/opienet/ostation.h +++ b/libopie2/opienet/ostation.h | |||
@@ -16,68 +16,70 @@ | |||
16 | : .. .:, . . . without even the implied warranty of | 16 | : .. .:, . . . without even the implied warranty of |
17 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 17 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
18 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | 18 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU |
19 | ..}^=.= = ; Library General Public License for more | 19 | ..}^=.= = ; Library General Public License for more |
20 | ++= -. .` .: details. | 20 | ++= -. .` .: details. |
21 | : = ...= . :.=- | 21 | : = ...= . :.=- |
22 | -. .:....=;==+<; You should have received a copy of the GNU | 22 | -. .:....=;==+<; You should have received a copy of the GNU |
23 | -_. . . )=. = Library General Public License along with | 23 | -_. . . )=. = Library General Public License along with |
24 | -- :-=` this library; see the file COPYING.LIB. | 24 | -- :-=` this library; see the file COPYING.LIB. |
25 | If not, write to the Free Software Foundation, | 25 | If not, write to the Free Software Foundation, |
26 | Inc., 59 Temple Place - Suite 330, | 26 | Inc., 59 Temple Place - Suite 330, |
27 | Boston, MA 02111-1307, USA. | 27 | Boston, MA 02111-1307, USA. |
28 | 28 | ||
29 | */ | 29 | */ |
30 | 30 | ||
31 | #ifndef OSTATION_H | 31 | #ifndef OSTATION_H |
32 | #define OSTATION_H | 32 | #define OSTATION_H |
33 | 33 | ||
34 | #include <opie2/onetutils.h> | 34 | #include <opie2/onetutils.h> |
35 | 35 | ||
36 | #include <qlist.h> | 36 | #include <qlist.h> |
37 | #include <qstring.h> | 37 | #include <qstring.h> |
38 | #include <qhostaddress.h> | 38 | #include <qhostaddress.h> |
39 | #include <qobject.h> | 39 | #include <qobject.h> |
40 | #include <qvaluelist.h> | ||
40 | 41 | ||
41 | #include <sys/types.h> | 42 | #include <sys/types.h> |
42 | 43 | ||
43 | namespace Opie { | 44 | namespace Opie { |
44 | namespace Net { | 45 | namespace Net { |
45 | 46 | ||
46 | class OStation; | 47 | class OStation; |
47 | 48 | ||
48 | 49 | ||
49 | typedef QList<OStation> OStationList; | 50 | typedef QList<OStation> OStationList; |
50 | 51 | ||
51 | /*====================================================================================== | 52 | /*====================================================================================== |
52 | * OStation | 53 | * OStation |
53 | *======================================================================================*/ | 54 | *======================================================================================*/ |
54 | 55 | ||
55 | class OStation | 56 | class OStation |
56 | { | 57 | { |
57 | public: | 58 | public: |
58 | OStation(); | 59 | OStation(); |
59 | ~OStation(); | 60 | ~OStation(); |
60 | 61 | ||
61 | void dump(); | 62 | void dump(); |
62 | 63 | ||
63 | /* Ethernet */ | 64 | /* Ethernet */ |
64 | QString type; | 65 | QString type; |
65 | OMacAddress macAddress; | 66 | OMacAddress macAddress; |
66 | QHostAddress ipAddress; | 67 | QHostAddress ipAddress; |
67 | 68 | ||
68 | /* WaveLan */ | 69 | /* WaveLan */ |
69 | QString ssid; | 70 | QString ssid; |
70 | OMacAddress apAddress; | 71 | OMacAddress apAddress; |
71 | int channel; | 72 | int channel; |
72 | int level; | 73 | int level; |
73 | bool encrypted; | 74 | bool encrypted; |
75 | QValueList <int> rates; | ||
74 | private: | 76 | private: |
75 | class Private; | 77 | class Private; |
76 | Private *d; | 78 | Private *d; |
77 | }; | 79 | }; |
78 | 80 | ||
79 | } | 81 | } |
80 | } | 82 | } |
81 | 83 | ||
82 | #endif // OSTATION_H | 84 | #endif // OSTATION_H |
83 | 85 | ||