aboutsummaryrefslogtreecommitdiffstats
path: root/package/wireless-tools/patches/002-fix-iwconfig-power-argument-parsing.patch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-06-17 14:42:24 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-06-17 14:42:24 +0000
commitbb5799aa95f09625beee7301b4ef93b54d6a5ea7 (patch)
treeed3478893c177a7d1fc2bb4d514aa3f66751acf4 /package/wireless-tools/patches/002-fix-iwconfig-power-argument-parsing.patch
parent606193fc1f6cc9e2bd21b501ece67ff5dc54bfb2 (diff)
downloadupstream-bb5799aa95f09625beee7301b4ef93b54d6a5ea7.tar.gz
upstream-bb5799aa95f09625beee7301b4ef93b54d6a5ea7.tar.bz2
upstream-bb5799aa95f09625beee7301b4ef93b54d6a5ea7.zip
wireless-tools: fix a bug in iwconfig power command
SVN-Revision: 16491
Diffstat (limited to 'package/wireless-tools/patches/002-fix-iwconfig-power-argument-parsing.patch')
-rw-r--r--package/wireless-tools/patches/002-fix-iwconfig-power-argument-parsing.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/wireless-tools/patches/002-fix-iwconfig-power-argument-parsing.patch b/package/wireless-tools/patches/002-fix-iwconfig-power-argument-parsing.patch
new file mode 100644
index 0000000000..2b61ef291e
--- /dev/null
+++ b/package/wireless-tools/patches/002-fix-iwconfig-power-argument-parsing.patch
@@ -0,0 +1,13 @@
+--- a/iwconfig.c
++++ b/iwconfig.c
+@@ -1034,8 +1034,8 @@ set_power_info(int skfd,
+ wrq.u.power.disabled = 0;
+
+ /* Is there any value to grab ? */
+- value = strtod(args[0], &unit);
+- if(unit != args[0])
++ value = strtod(args[i], &unit);
++ if(unit != args[i])
+ {
+ struct iw_range range;
+ int flags;