From: 윤민홍 Date: Wed, 21 Dec 2011 22:34:29 +0000 (+0200) Subject: P2P: Send D-Bus ServiceDiscoveryRequest signal for external SD processing X-Git-Tag: aosp-jb-start~116 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b655312d4c06252990fd9ba38584acf6cabc051;p=thirdparty%2Fhostap.git P2P: Send D-Bus ServiceDiscoveryRequest signal for external SD processing wpas_notify_p2p_sd_request() needs to be called when p2p_sd_over_ctrl_iface is set to provide SD events over D-Bus similarly to the ctrl_iface events. --- diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c index 7cf37d079..a606b9d07 100644 --- a/wpa_supplicant/p2p_supplicant.c +++ b/wpa_supplicant/p2p_supplicant.c @@ -1352,8 +1352,11 @@ void wpas_sd_request(void *ctx, int freq, const u8 *sa, u8 dialog_token, os_free(buf); } - if (wpa_s->p2p_sd_over_ctrl_iface) + if (wpa_s->p2p_sd_over_ctrl_iface) { + wpas_notify_p2p_sd_request(wpa_s, freq, sa, dialog_token, + update_indic, tlvs, tlvs_len); return; /* to be processed by an external program */ + } resp = wpabuf_alloc(10000); if (resp == NULL)