X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2Fap-utils.h;h=306275fec0c3b90d39c2aead977e4fde69e3d6a9;hb=dfbb336f793df897e24bd34d6cae780d5bdef3cf;hp=cd9c8c1610a2cb56d6b3a70c0a90329275de072b;hpb=17cd5711411f45df26b33c51288780627b7377e2;p=ap-utils.git diff --git a/lib/ap-utils.h b/lib/ap-utils.h index cd9c8c1..306275f 100644 --- a/lib/ap-utils.h +++ b/lib/ap-utils.h @@ -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: ")