]> git.decadent.org.uk Git - ap-utils.git/blobdiff - lib/ap-utils.h
Imported Upstream version 1.5.1~pre1
[ap-utils.git] / lib / ap-utils.h
index cd9c8c1610a2cb56d6b3a70c0a90329275de072b..306275fec0c3b90d39c2aead977e4fde69e3d6a9 100644 (file)
@@ -76,8 +76,11 @@ typedef unsigned int uint32_t;
 #define rshort(a)      ((a) = swap2(a))
 #define wshort(a)      ((a) = swap2(a))
 
+/* commented because of wrong results displaying on SBRIDGES ATMEL410 APs
 #define dbmconv(x)     (ap_type == ATMEL410 && ap_vendorext == SBRIDGES) ? \
-                           (int)(-95 + x * (float)2.125) : -96 + x
+                           (int)(-95 + x * (float)2.125) : -96 + x */
+                           
+#define dbmconv(x)     -96 + x
 
 #define MAC _("MAC address: ")
 #define TRAPS _("[S] SNMP traps: ")