diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2009-06-17 14:42:24 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2009-06-17 14:42:24 +0000 |
commit | 6005acb1924c65efb1abcd2f7e31458773aa4bad (patch) | |
tree | 919fb38c3f0ce1c326307ee1f3ed80d6ce9cd520 /package/wireless-tools | |
parent | 3135ca9da07b4fdc2dc2daf2c9bcbacb1fe74daa (diff) | |
download | master-187ad058-6005acb1924c65efb1abcd2f7e31458773aa4bad.tar.gz master-187ad058-6005acb1924c65efb1abcd2f7e31458773aa4bad.tar.bz2 master-187ad058-6005acb1924c65efb1abcd2f7e31458773aa4bad.zip |
[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')
-rw-r--r-- | package/wireless-tools/Makefile | 2 | ||||
-rw-r--r-- | package/wireless-tools/patches/002-fix-iwconfig-power-argument-parsing.patch | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/package/wireless-tools/Makefile b/package/wireless-tools/Makefile index 34b6a20370..7195f15ccf 100644 --- a/package/wireless-tools/Makefile +++ b/package/wireless-tools/Makefile @@ -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 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; |