WEXT is linux only.
authorRoy Marples <roy@marples.name>
Mon, 18 May 2015 13:45:15 +0000 (13:45 +0000)
committerRoy Marples <roy@marples.name>
Mon, 18 May 2015 13:45:15 +0000 (13:45 +0000)
src/libdhcpcd/wpa.c

index 7be1b2538a112b62eaccecba49f0d006e914a6d0..26c121f301a8b0da15b4f230cab6371725416c17 100644 (file)
@@ -407,9 +407,11 @@ dhcpcd_wpa_scans_read(DHCPCD_WPA *wpa)
                        w->flags = WSF_WEP | WSF_PSK | WSF_SECURE;
 
                w->strength.value = w->level.value;
+#ifdef __linux__
                if (w->strength.value > 110 && w->strength.value < 256)
                        /* Convert WEXT level to dBm */
                        w->strength.value -= 256;
+#endif
 
                if (w->strength.value < 0) {
                        /* Assume dBm */