wireless-tools: fix a bug in iwconfig power command
authorGabor Juhos <juhosg@openwrt.org>
Wed, 17 Jun 2009 14:42:24 +0000 (14:42 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Wed, 17 Jun 2009 14:42:24 +0000 (14:42 +0000)
SVN-Revision: 16491

package/wireless-tools/Makefile
package/wireless-tools/patches/002-fix-iwconfig-power-argument-parsing.patch [new file with mode: 0644]

index 34b6a20370563e2d878c3cea02ed6427d68a79ec..7195f15ccf8112a8d79db95323bdf757b38c90fd 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=wireless-tools
 PKG_VERSION:=29
 PKG_MINOR:=
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=wireless_tools.$(PKG_VERSION)$(PKG_MINOR).tar.gz
 PKG_SOURCE_URL:=http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux
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 (file)
index 0000000..2b61ef2
--- /dev/null
@@ -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;