wireless-tools: fix a bug in iwconfig power command

SVN-Revision: 16491
This commit is contained in:
Gabor Juhos
2009-06-17 14:42:24 +00:00
parent 606193fc1f
commit bb5799aa95
2 changed files with 14 additions and 1 deletions

View File

@@ -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;