]> git.ipfire.org Git - thirdparty/iw.git/commit
iw: parse_freqs: check how many center frequencies to expect
authorJohannes Berg <johannes.berg@intel.com>
Thu, 26 Jan 2017 09:20:08 +0000 (10:20 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 26 Jan 2017 09:20:08 +0000 (10:20 +0100)
commit4871fcf54bbdd09f277b01f6b3362c85d22a7d8d
treeece440d49cb3186c031ca325896971a143fbe44d
parentc37f6c64c21bd5a52fcc33107a7738d064aca5a0
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>
util.c