P2P: Use p2p_init_wpa_s for P2P command redirection over D-Bus
authorIlan Peer <ilan.peer@intel.com>
Tue, 12 May 2015 14:39:58 +0000 (17:39 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 25 May 2015 15:31:09 +0000 (18:31 +0300)
commitb4342ca4d8f21af51d4923ca15910d3211bfdc7e
tree289cca5961c82951bfebc59424ff9193a9ff1d4f
parent96512a00d094935d77fb9e0efe9072f5dca442bf
P2P: Use p2p_init_wpa_s for P2P command redirection over D-Bus

D-Bus used the p2p_dev member in struct wpa_supplicant to track the
interface used for P2P Device operations. However, this is not needed as
the interface used for P2P Device operations is stored in struct
wpa_global->p2p_init_wpa_s.

Replace all the redirections to wpa_s->p2p_dev with redirections to
wpa_s->global->p2p_init_wpa_s and removed this member as it is no
longer needed.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
wpa_supplicant/dbus/dbus_new_handlers_p2p.c
wpa_supplicant/p2p_supplicant.c
wpa_supplicant/wpa_supplicant_i.h