-rw-r--r-- | libopie2/opienet/onetwork.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/libopie2/opienet/onetwork.h b/libopie2/opienet/onetwork.h index a953296..f5fbe1d 100644 --- a/libopie2/opienet/onetwork.h +++ b/libopie2/opienet/onetwork.h | |||
@@ -19,41 +19,48 @@ | |||
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 ONETWORK_H | 31 | #ifndef ONETWORK_H |
32 | #define ONETWORK_H | 32 | #define ONETWORK_H |
33 | 33 | ||
34 | #if !defined( OPIE_WE_VERSION ) | 34 | #if !defined( OPIE_WE_VERSION ) |
35 | #error Need to define a wireless extension version to build against! | 35 | #warning No wireless extension specified; autodetecting... |
36 | #endif | 36 | #include <linux/version.h> |
37 | #if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,23) | ||
38 | #define OPIE_WE_VERSION 15 | ||
39 | #else | ||
40 | #define OPIE_WE_VERSION 16 | ||
41 | #endif // LINUX_VERSION_CODE < KERNEL_VERSION(2.4.23) | ||
42 | #endif // !defined( OPIE_WE_VERSION ) | ||
37 | 43 | ||
38 | #if OPIE_WE_VERSION == 15 | 44 | #if OPIE_WE_VERSION == 15 |
39 | #include "wireless.15.h" | 45 | #include "wireless.15.h" |
46 | #warning Using WE V15 | ||
40 | #endif | 47 | #endif |
41 | |||
42 | #if OPIE_WE_VERSION == 16 | 48 | #if OPIE_WE_VERSION == 16 |
43 | #include "wireless.16.h" | 49 | #include "wireless.16.h" |
50 | #warning Using WE V16 | ||
44 | #endif | 51 | #endif |
45 | 52 | ||
46 | /* OPIE */ | 53 | /* OPIE */ |
47 | 54 | ||
48 | #include <opie2/onetutils.h> | 55 | #include <opie2/onetutils.h> |
49 | #include <opie2/ostation.h> | 56 | #include <opie2/ostation.h> |
50 | 57 | ||
51 | /* QT */ | 58 | /* QT */ |
52 | 59 | ||
53 | #include <qvaluelist.h> | 60 | #include <qvaluelist.h> |
54 | #include <qdict.h> | 61 | #include <qdict.h> |
55 | #include <qmap.h> | 62 | #include <qmap.h> |
56 | #include <qobject.h> | 63 | #include <qobject.h> |
57 | #include <qhostaddress.h> | 64 | #include <qhostaddress.h> |
58 | 65 | ||
59 | namespace Opie { | 66 | namespace Opie { |
@@ -542,33 +549,33 @@ class OWlanNGMonitoringInterface : public OMonitoringInterface | |||
542 | 549 | ||
543 | 550 | ||
544 | /*====================================================================================== | 551 | /*====================================================================================== |
545 | * OHostAPMonitoringInterface | 552 | * OHostAPMonitoringInterface |
546 | *======================================================================================*/ | 553 | *======================================================================================*/ |
547 | 554 | ||
548 | 555 | ||
549 | class OHostAPMonitoringInterface : public OMonitoringInterface | 556 | class OHostAPMonitoringInterface : public OMonitoringInterface |
550 | { | 557 | { |
551 | public: | 558 | public: |
552 | OHostAPMonitoringInterface( ONetworkInterface*, bool _prismHeader ); | 559 | OHostAPMonitoringInterface( ONetworkInterface*, bool _prismHeader ); |
553 | virtual ~OHostAPMonitoringInterface(); | 560 | virtual ~OHostAPMonitoringInterface(); |
554 | 561 | ||
555 | public: | 562 | public: |
556 | virtual void setEnabled( bool ); | 563 | virtual void setEnabled( bool ); |
557 | virtual QString name() const; | 564 | virtual QString name() const; |
558 | 565 | ||
559 | private: | 566 | private: |
560 | class Private; | 567 | class Private; |
561 | Private *d; | 568 | Private *d; |
562 | }; | 569 | }; |
563 | 570 | ||
564 | 571 | ||
565 | /*====================================================================================== | 572 | /*====================================================================================== |
566 | * OOrinocoMonitoringInterface | 573 | * OOrinocoMonitoringInterface |
567 | *======================================================================================*/ | 574 | *======================================================================================*/ |
568 | 575 | ||
569 | 576 | ||
570 | class OOrinocoMonitoringInterface : public OMonitoringInterface | 577 | class OOrinocoMonitoringInterface : public OMonitoringInterface |
571 | { | 578 | { |
572 | public: | 579 | public: |
573 | OOrinocoMonitoringInterface( ONetworkInterface*, bool _prismHeader ); | 580 | OOrinocoMonitoringInterface( ONetworkInterface*, bool _prismHeader ); |
574 | virtual ~OOrinocoMonitoringInterface(); | 581 | virtual ~OOrinocoMonitoringInterface(); |