Diffstat (limited to 'noncore/net/wellenreiter/libwellenreiter/source') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh index 652b3ed..58e99ac 100644 --- a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh +++ b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh | |||
@@ -14,13 +14,24 @@ | |||
14 | #include <sys/ioctl.h> | 14 | #include <sys/ioctl.h> |
15 | #include <unistd.h> | 15 | #include <unistd.h> |
16 | #include <linux/if.h> | 16 | #include <linux/if.h> |
17 | |||
18 | /* Following typedefs are needed here, because linux/wireless.h | ||
19 | includes linux/ethertool.h which is using them */ | ||
20 | typedef signed char s8; | ||
21 | typedef unsigned char u8; | ||
22 | typedef signed short s16; | ||
23 | typedef unsigned short u16; | ||
24 | typedef signed int s32; | ||
25 | typedef unsigned int u32; | ||
26 | typedef signed long long s64; | ||
27 | typedef unsigned long long u64; | ||
28 | |||
17 | #include <linux/wireless.h> | 29 | #include <linux/wireless.h> |
18 | 30 | ||
19 | #ifndef SIOCIWFIRSTPRIV | 31 | #ifndef SIOCIWFIRSTPRIV |
20 | #define SIOCIWFIRSTPRIV SIOCDEVPRIVATE | 32 | #define SIOCIWFIRSTPRIV SIOCDEVPRIVATE |
21 | #endif | 33 | #endif |
22 | 34 | ||
23 | |||
24 | extern "C" | 35 | extern "C" |
25 | { | 36 | { |
26 | #include <net/bpf.h> | 37 | #include <net/bpf.h> |
@@ -30,10 +41,10 @@ extern "C" | |||
30 | /* Defines, used for the card setup */ | 41 | /* Defines, used for the card setup */ |
31 | #define DEFAULT_PATH "/proc/driver/aironet/%s/Config" | 42 | #define DEFAULT_PATH "/proc/driver/aironet/%s/Config" |
32 | #define CISCO_STATUS "/proc/driver/aironet/%s/Status" | 43 | #define CISCO_STATUS "/proc/driver/aironet/%s/Status" |
33 | #define CARD_TYPE_CISCO 1 | 44 | #define CARD_TYPE_CISCO 1 |
34 | #define CARD_TYPE_NG 2 | 45 | #define CARD_TYPE_NG 2 |
35 | #define CARD_TYPE_HOSTAP3 | 46 | #define CARD_TYPE_HOSTAP 3 |
36 | #define CARD_TYPE_ORINOCCO 4 | 47 | #define CARD_TYPE_ORINOCCO 4 |
37 | 48 | ||
38 | /* Some usefull constants for frequencies */ | 49 | /* Some usefull constants for frequencies */ |
39 | #define KILO 1e3 | 50 | #define KILO 1e3 |