-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 | |||
@@ -31,17 +31,24 @@ | |||
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 | ||
@@ -554,9 +561,9 @@ class OHostAPMonitoringInterface : public OMonitoringInterface | |||
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 | }; |