[package] iwinfo: fix logic flaw in WPA OUI filtering, solves misdetecting various...
[openwrt.git] / package / iwinfo / src / iwinfo_cli.c
index 4f8f561..d60d7b8 100644 (file)
@@ -391,9 +391,14 @@ static char * print_frequency(const struct iwinfo_ops *iw, const char *ifname)
 
 static char * print_txpower(const struct iwinfo_ops *iw, const char *ifname)
 {
-       int pwr;
+       int pwr, off;
+       if (iw->txpower_offset(ifname, &off))
+               off = 0;
+
        if (iw->txpower(ifname, &pwr))
                pwr = -1;
+       else
+               pwr += off;
 
        return format_txpower(pwr);
 }
This page took 0.025506 seconds and 4 git commands to generate.