]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Send D-Bus ServiceDiscoveryRequest signal for external SD processing
author윤민홍 <mhyun@etri.re.kr>
Wed, 21 Dec 2011 22:34:29 +0000 (00:34 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 21 Dec 2011 22:34:29 +0000 (00:34 +0200)
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.

wpa_supplicant/p2p_supplicant.c

index 7cf37d079c8c48dafab9382969f5dbeb946430af..a606b9d07b2fb4640948e11ba8179c4c73506df7 100644 (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)