summaryrefslogtreecommitdiff
path: root/package/wireless-tools/patches
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-06-17 14:42:24 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-06-17 14:42:24 +0000
commitfdf0499fffa226c47a56436e7607efc11753e12c (patch)
tree919fb38c3f0ce1c326307ee1f3ed80d6ce9cd520 /package/wireless-tools/patches
parent53634c2d057af04ef1c8d3e542afc9db8fb71a5c (diff)
[package] wireless-tools: fix a bug in iwconfig power command
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16491 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/wireless-tools/patches')
-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;