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
commit83758220ae125618cab5108265b586ac5f47baf7 (patch)
treee2a02c9c41ad320c91548602ecc69db39f99ce06 /package/iwinfo/src/iwinfo_nl80211.c
parent022fa36b40b02248436584cf0f71bb26d79eb644 (diff)
downloadupstream-83758220ae125618cab5108265b586ac5f47baf7.tar.gz
upstream-83758220ae125618cab5108265b586ac5f47baf7.tar.bz2
upstream-83758220ae125618cab5108265b586ac5f47baf7.zip
iwinfo: assume that no tx power information is available if nl80211 returns 0 dBm maximum
SVN-Revision: 31932
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;