From 4ab42f90102b14ba0925dcca053f1b75fdfd6331 Mon Sep 17 00:00:00 2001 From: proski Date: Mon, 7 Aug 2006 02:35:55 +0000 Subject: Fix compatibility defines for old wireless extensions --- at76c503.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/at76c503.c b/at76c503.c index 594ee7e..a8449bd 100644 --- a/at76c503.c +++ b/at76c503.c @@ -48,15 +48,18 @@ #include "at76c503.h" -#if WIRELESS_EXT < 20 -#define IW_QUAL_QUAL_UPDATED 0x01 /* Value was updated since last read */ +#if WIRELESS_EXT < 17 +#define IW_QUAL_QUAL_UPDATED 0x01 #define IW_QUAL_LEVEL_UPDATED 0x02 #define IW_QUAL_NOISE_UPDATED 0x04 -#define IW_QUAL_ALL_UPDATED 0x07 -#define IW_QUAL_DBM 0x08 /* Level + Noise are dBm */ -#define IW_QUAL_QUAL_INVALID 0x10 /* Driver doesn't provide value */ +#define IW_QUAL_QUAL_INVALID 0x10 #define IW_QUAL_LEVEL_INVALID 0x20 #define IW_QUAL_NOISE_INVALID 0x40 +#endif + +#if WIRELESS_EXT < 19 +#define IW_QUAL_ALL_UPDATED 0x07 +#define IW_QUAL_DBM 0x08 #define IW_QUAL_ALL_INVALID 0x70 #endif -- cgit v1.2.3