dbus: Do not segfault if P2P is disabled
authorDan Williams <dcbw@redhat.com>
Fri, 29 Jul 2011 19:59:54 +0000 (14:59 -0500)
committerJouni Malinen <j@w1.fi>
Sun, 7 Aug 2011 08:21:52 +0000 (11:21 +0300)
commite9ae40590788bcc8d833514b796972957a9c2953
treeff2c777c34ab27233668f8e61cc66d5a5abcaf41
parent3320666494a5b2c313fc4ae43ee6d7063639931e
dbus: Do not segfault if P2P is disabled

Various pieces of the P2P code assume that P2P is enabled, so make
the D-Bus code not call the P2P stuff if P2P is disabled. Also
ensures that if P2P is disabled a suitable error is returned to
the D-Bus caller.

Signed-off-by: Dan Williams <dcbw@redhat.com>
wpa_supplicant/dbus/dbus_new_handlers_p2p.c