002-fix-iwconfig-power-argument-parsing.patch 315 B

12345678910111213
  1. --- a/iwconfig.c
  2. +++ b/iwconfig.c
  3. @@ -1034,8 +1034,8 @@ set_power_info(int skfd,
  4. wrq.u.power.disabled = 0;
  5. /* Is there any value to grab ? */
  6. - value = strtod(args[0], &unit);
  7. - if(unit != args[0])
  8. + value = strtod(args[i], &unit);
  9. + if(unit != args[i])
  10. {
  11. struct iw_range range;
  12. int flags;