]> git.ipfire.org Git - thirdparty/iw.git/commit
iw: Fix segfault when no args are given to offchannel
authorOla Olsson <ola1olsson@gmail.com>
Wed, 21 Oct 2015 12:02:24 +0000 (14:02 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 21 Oct 2015 12:04:46 +0000 (14:04 +0200)
commit7082f96ff89fb8a1d05d9fd94fb67ba41a536302
tree508f88a59019c586cd12a22431757373e1a3c37b
parent0ee571d57b8b631658d1a35ad9a906610d6145d3
iw: Fix segfault when no args are given to offchannel

The offchannel command assumes that frequency and duration
are given as arguments, otherwise iw segfaults - fix that
by printing help text instead.

Signed-off-by: Ola Olsson <ola.olsson@sonymobile.com>
[remove braces]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
offch.c