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.
This commit is contained in:
윤민홍 2011-12-22 00:34:29 +02:00 committed by Jouni Malinen
parent 9b6f44cb63
commit 3b655312d4

View file

@ -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)