aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-11-01 19:16:52 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-11-01 19:16:52 +0000
commit2afada967ca0114468074fea5f80a8ce945b680b (patch)
tree70679365c9326d6cdc397d252e062cb0b9aa3f2a /package
parent4c985724af47d1e98c14913c1073572dfd82e564 (diff)
downloadupstream-2afada967ca0114468074fea5f80a8ce945b680b.tar.gz
upstream-2afada967ca0114468074fea5f80a8ce945b680b.tar.bz2
upstream-2afada967ca0114468074fea5f80a8ce945b680b.zip
iw: fix setting txpower (#10254)
SVN-Revision: 28710
Diffstat (limited to 'package')
-rw-r--r--package/iw/patches/130-fix_txpower.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/iw/patches/130-fix_txpower.patch b/package/iw/patches/130-fix_txpower.patch
new file mode 100644
index 0000000000..9e0c2df323
--- /dev/null
+++ b/package/iw/patches/130-fix_txpower.patch
@@ -0,0 +1,11 @@
+--- a/phy.c
++++ b/phy.c
+@@ -277,7 +277,7 @@ static int handle_txpower(struct nl80211
+ }
+
+ mbm = strtol(argv[1], &endptr, 10);
+- if (!*endptr)
++ if (*endptr)
+ return 2;
+ NLA_PUT_U32(msg, NL80211_ATTR_WIPHY_TX_POWER_LEVEL, mbm);
+ } else if (argc != 1)