author | mickeyl <mickeyl> | 2003-02-19 10:40:55 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-02-19 10:40:55 (UTC) |
commit | bd6e39ba0c38070d07c76b67a98d2e3ab3f84cb8 (patch) (side-by-side diff) | |
tree | ddb3efba1b42674d3ba892ecd611554c04540392 /noncore/net/wellenreiter/libwellenreiter | |
parent | 2fdd5a12c624b5203b11d54eb9ffe529101f5470 (diff) | |
download | opie-bd6e39ba0c38070d07c76b67a98d2e3ab3f84cb8.zip opie-bd6e39ba0c38070d07c76b67a98d2e3ab3f84cb8.tar.gz opie-bd6e39ba0c38070d07c76b67a98d2e3ab3f84cb8.tar.bz2 |
minor bugfixes - major overhaul coming after public alpha
Diffstat (limited to 'noncore/net/wellenreiter/libwellenreiter') (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 @@ #include <sys/ioctl.h> #include <unistd.h> #include <linux/if.h> + +/* Following typedefs are needed here, because linux/wireless.h + includes linux/ethertool.h which is using them */ +typedef signed char s8; +typedef unsigned char u8; +typedef signed short s16; +typedef unsigned short u16; +typedef signed int s32; +typedef unsigned int u32; +typedef signed long long s64; +typedef unsigned long long u64; + #include <linux/wireless.h> #ifndef SIOCIWFIRSTPRIV #define SIOCIWFIRSTPRIV SIOCDEVPRIVATE #endif - extern "C" { #include <net/bpf.h> @@ -30,10 +41,10 @@ extern "C" /* Defines, used for the card setup */ #define DEFAULT_PATH "/proc/driver/aironet/%s/Config" #define CISCO_STATUS "/proc/driver/aironet/%s/Status" -#define CARD_TYPE_CISCO 1 -#define CARD_TYPE_NG 2 -#define CARD_TYPE_HOSTAP 3 -#define CARD_TYPE_ORINOCCO 4 +#define CARD_TYPE_CISCO 1 +#define CARD_TYPE_NG 2 +#define CARD_TYPE_HOSTAP 3 +#define CARD_TYPE_ORINOCCO 4 /* Some usefull constants for frequencies */ #define KILO 1e3 |