]> git.ipfire.org Git - thirdparty/iw.git/commit
iw: fix "iw reg get" double output
authorJohannes Berg <johannes.berg@intel.com>
Wed, 13 Apr 2016 11:45:24 +0000 (13:45 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 13 Apr 2016 11:48:17 +0000 (13:48 +0200)
commit94af668bdd6511b9d0a372542eb994ea67e8057d
tree8c2165bd1d0d5572cd19cb9d1cc10565c03fdf99
parentf6fca12c3d112fd87f9c97cc068840b5eb4bc510
iw: fix "iw reg get" double output

Axel reports that running "iw reg get" results in the (global)
output being printed twice. The reason for this is that we try
to use the dump facility, and if that succeeds we also do the
get command.

To prevent this, allow handlers to return HANDLER_RET_DONE, in
which case the command will be treated as successful but will
not actually execute another netlink command.

Reported-by: Axel Köllhofer <AxelKoellhofer@web.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
iw.c
iw.h
reg.c