commit | 4871fcf54bbdd09f277b01f6b3362c85d22a7d8d | [log] [tgz] |
---|---|---|
author | Johannes Berg <johannes.berg@intel.com> | Thu Jan 26 10:20:08 2017 +0100 |
committer | Johannes Berg <johannes.berg@intel.com> | Thu Jan 26 10:20:08 2017 +0100 |
tree | ece440d49cb3186c031ca325896971a143fbe44d | |
parent | c37f6c64c21bd5a52fcc33107a7738d064aca5a0 [diff] |
iw: parse_freqs: check how many center frequencies to expect Instead of just plain assuming the next two integer arguments are, if present, center frequencies, teach the code how many are expected and check that they're actually present. This makes it slightly better to use the parser before an int argument, although it's still ambiguous due to the width. Signed-off-by: Johannes Berg <johannes.berg@intel.com>