aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorproski <proski>2006-08-07 02:35:55 +0000
committerproski <proski>2006-08-07 02:35:55 +0000
commit4ab42f90102b14ba0925dcca053f1b75fdfd6331 (patch)
tree73ae2abdcc8e62b58fd6475456a87c6c55347a95
parent984e26a9b51d7a3514a612b4f4e636a27eabeb33 (diff)
Fix compatibility defines for old wireless extensionsversion_0_14beta1
-rw-r--r--at76c503.c13
1 files 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