aboutsummaryrefslogtreecommitdiffstats
path: root/package/iwinfo/src/iwinfo_nl80211.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-05-28 00:52:26 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-05-28 00:52:26 +0000
commit672c216c6335e8872e6694be926843d5f3457e33 (patch)
tree9f2c248ced0b17871a733b324dbec4fcf497588c /package/iwinfo/src/iwinfo_nl80211.c
parent6e9f473afab16887ae0f3d455d8649278ba7410a (diff)
downloadmaster-187ad058-672c216c6335e8872e6694be926843d5f3457e33.tar.gz
master-187ad058-672c216c6335e8872e6694be926843d5f3457e33.tar.bz2
master-187ad058-672c216c6335e8872e6694be926843d5f3457e33.zip
[package] iwinfo: assume that no tx power information is available if nl80211 returns 0 dBm maximum
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31932 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/iwinfo/src/iwinfo_nl80211.c')
-rw-r--r--package/iwinfo/src/iwinfo_nl80211.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/iwinfo/src/iwinfo_nl80211.c b/package/iwinfo/src/iwinfo_nl80211.c
index 704049007a..4205336f6a 100644
--- a/package/iwinfo/src/iwinfo_nl80211.c
+++ b/package/iwinfo/src/iwinfo_nl80211.c
@@ -1371,7 +1371,7 @@ int nl80211_get_txpwrlist(const char *ifname, char *buf, int *len)
nl80211_free(req);
}
- if (dbm_max > -1)
+ if (dbm_max > 0)
{
for (dbm_cur = 0, dbm_cnt = 0;
dbm_cur < dbm_max;