summaryrefslogtreecommitdiff
path: root/package/network/utils/wireless-tools/patches/002-fix-iwconfig-power-argument-parsing.patch
blob: 2b61ef291ec6c944ab094e857832c34f5fc5cafd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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;