2 * wpa_supplicant - Event notifications
3 * Copyright (c) 2009-2010, Jouni Malinen <j@w1.fi>
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
9 #include "utils/includes.h"
11 #include "utils/common.h"
12 #include "common/wpa_ctrl.h"
14 #include "wpa_supplicant_i.h"
15 #include "wps_supplicant.h"
16 #include "binder/binder.h"
17 #include "dbus/dbus_common.h"
18 #include "dbus/dbus_old.h"
19 #include "dbus/dbus_new.h"
20 #include "rsn_supp/wpa.h"
24 #include "p2p_supplicant.h"
28 int wpas_notify_supplicant_initialized(struct wpa_global
*global
)
31 if (global
->params
.dbus_ctrl_interface
) {
32 global
->dbus
= wpas_dbus_init(global
);
33 if (global
->dbus
== NULL
)
36 #endif /* CONFIG_DBUS */
39 global
->binder
= wpas_binder_init(global
);
42 #endif /* CONFIG_BINDER */
48 void wpas_notify_supplicant_deinitialized(struct wpa_global
*global
)
52 wpas_dbus_deinit(global
->dbus
);
53 #endif /* CONFIG_DBUS */
57 wpas_binder_deinit(global
->binder
);
58 #endif /* CONFIG_BINDER */
62 int wpas_notify_iface_added(struct wpa_supplicant
*wpa_s
)
67 if (wpas_dbus_register_iface(wpa_s
))
70 if (wpas_dbus_register_interface(wpa_s
))
77 void wpas_notify_iface_removed(struct wpa_supplicant
*wpa_s
)
82 /* unregister interface in old DBus ctrl iface */
83 wpas_dbus_unregister_iface(wpa_s
);
85 /* unregister interface in new DBus ctrl iface */
86 wpas_dbus_unregister_interface(wpa_s
);
90 void wpas_notify_state_changed(struct wpa_supplicant
*wpa_s
,
91 enum wpa_states new_state
,
92 enum wpa_states old_state
)
97 /* notify the old DBus API */
98 wpa_supplicant_dbus_notify_state_change(wpa_s
, new_state
,
101 /* notify the new DBus API */
102 wpas_dbus_signal_prop_changed(wpa_s
, WPAS_DBUS_PROP_STATE
);
105 if (wpa_s
->fst
&& !is_zero_ether_addr(wpa_s
->bssid
)) {
106 if (new_state
== WPA_COMPLETED
)
107 fst_notify_peer_connected(wpa_s
->fst
, wpa_s
->bssid
);
108 else if (old_state
>= WPA_ASSOCIATED
&&
109 new_state
< WPA_ASSOCIATED
)
110 fst_notify_peer_disconnected(wpa_s
->fst
, wpa_s
->bssid
);
112 #endif /* CONFIG_FST */
114 if (new_state
== WPA_COMPLETED
)
115 wpas_p2p_notif_connected(wpa_s
);
116 else if (old_state
>= WPA_ASSOCIATED
&& new_state
< WPA_ASSOCIATED
)
117 wpas_p2p_notif_disconnected(wpa_s
);
119 sme_state_changed(wpa_s
);
122 wpa_msg_ctrl(wpa_s
, MSG_INFO
, WPA_EVENT_STATE_CHANGE
123 "id=%d state=%d BSSID=" MACSTR
" SSID=%s",
124 wpa_s
->current_ssid
? wpa_s
->current_ssid
->id
: -1,
126 MAC2STR(wpa_s
->bssid
),
127 wpa_s
->current_ssid
&& wpa_s
->current_ssid
->ssid
?
128 wpa_ssid_txt(wpa_s
->current_ssid
->ssid
,
129 wpa_s
->current_ssid
->ssid_len
) : "");
134 void wpas_notify_disconnect_reason(struct wpa_supplicant
*wpa_s
)
139 wpas_dbus_signal_prop_changed(wpa_s
, WPAS_DBUS_PROP_DISCONNECT_REASON
);
143 void wpas_notify_assoc_status_code(struct wpa_supplicant
*wpa_s
)
148 wpas_dbus_signal_prop_changed(wpa_s
, WPAS_DBUS_PROP_ASSOC_STATUS_CODE
);
152 void wpas_notify_network_changed(struct wpa_supplicant
*wpa_s
)
157 wpas_dbus_signal_prop_changed(wpa_s
, WPAS_DBUS_PROP_CURRENT_NETWORK
);
161 void wpas_notify_ap_scan_changed(struct wpa_supplicant
*wpa_s
)
166 wpas_dbus_signal_prop_changed(wpa_s
, WPAS_DBUS_PROP_AP_SCAN
);
170 void wpas_notify_bssid_changed(struct wpa_supplicant
*wpa_s
)
175 wpas_dbus_signal_prop_changed(wpa_s
, WPAS_DBUS_PROP_CURRENT_BSS
);
179 void wpas_notify_auth_changed(struct wpa_supplicant
*wpa_s
)
184 wpas_dbus_signal_prop_changed(wpa_s
, WPAS_DBUS_PROP_CURRENT_AUTH_MODE
);
188 void wpas_notify_network_enabled_changed(struct wpa_supplicant
*wpa_s
,
189 struct wpa_ssid
*ssid
)
194 wpas_dbus_signal_network_enabled_changed(wpa_s
, ssid
);
198 void wpas_notify_network_selected(struct wpa_supplicant
*wpa_s
,
199 struct wpa_ssid
*ssid
)
204 wpas_dbus_signal_network_selected(wpa_s
, ssid
->id
);
208 void wpas_notify_network_request(struct wpa_supplicant
*wpa_s
,
209 struct wpa_ssid
*ssid
,
210 enum wpa_ctrl_req_type rtype
,
211 const char *default_txt
)
216 wpas_dbus_signal_network_request(wpa_s
, ssid
, rtype
, default_txt
);
220 void wpas_notify_scanning(struct wpa_supplicant
*wpa_s
)
225 /* notify the old DBus API */
226 wpa_supplicant_dbus_notify_scanning(wpa_s
);
228 /* notify the new DBus API */
229 wpas_dbus_signal_prop_changed(wpa_s
, WPAS_DBUS_PROP_SCANNING
);
233 void wpas_notify_scan_done(struct wpa_supplicant
*wpa_s
, int success
)
238 wpas_dbus_signal_scan_done(wpa_s
, success
);
242 void wpas_notify_scan_results(struct wpa_supplicant
*wpa_s
)
247 /* notify the old DBus API */
248 wpa_supplicant_dbus_notify_scan_results(wpa_s
);
250 wpas_wps_notify_scan_results(wpa_s
);
254 void wpas_notify_wps_credential(struct wpa_supplicant
*wpa_s
,
255 const struct wps_credential
*cred
)
261 /* notify the old DBus API */
262 wpa_supplicant_dbus_notify_wps_cred(wpa_s
, cred
);
263 /* notify the new DBus API */
264 wpas_dbus_signal_wps_cred(wpa_s
, cred
);
265 #endif /* CONFIG_WPS */
269 void wpas_notify_wps_event_m2d(struct wpa_supplicant
*wpa_s
,
270 struct wps_event_m2d
*m2d
)
276 wpas_dbus_signal_wps_event_m2d(wpa_s
, m2d
);
277 #endif /* CONFIG_WPS */
281 void wpas_notify_wps_event_fail(struct wpa_supplicant
*wpa_s
,
282 struct wps_event_fail
*fail
)
288 wpas_dbus_signal_wps_event_fail(wpa_s
, fail
);
289 #endif /* CONFIG_WPS */
293 void wpas_notify_wps_event_success(struct wpa_supplicant
*wpa_s
)
299 wpas_dbus_signal_wps_event_success(wpa_s
);
300 #endif /* CONFIG_WPS */
303 void wpas_notify_wps_event_pbc_overlap(struct wpa_supplicant
*wpa_s
)
309 wpas_dbus_signal_wps_event_pbc_overlap(wpa_s
);
310 #endif /* CONFIG_WPS */
314 void wpas_notify_network_added(struct wpa_supplicant
*wpa_s
,
315 struct wpa_ssid
*ssid
)
321 * Networks objects created during any P2P activities should not be
322 * exposed out. They might/will confuse certain non-P2P aware
323 * applications since these network objects won't behave like
326 if (!ssid
->p2p_group
&& wpa_s
->global
->p2p_group_formation
!= wpa_s
)
327 wpas_dbus_register_network(wpa_s
, ssid
);
331 void wpas_notify_persistent_group_added(struct wpa_supplicant
*wpa_s
,
332 struct wpa_ssid
*ssid
)
335 wpas_dbus_register_persistent_group(wpa_s
, ssid
);
336 #endif /* CONFIG_P2P */
340 void wpas_notify_persistent_group_removed(struct wpa_supplicant
*wpa_s
,
341 struct wpa_ssid
*ssid
)
344 wpas_dbus_unregister_persistent_group(wpa_s
, ssid
->id
);
345 #endif /* CONFIG_P2P */
349 void wpas_notify_network_removed(struct wpa_supplicant
*wpa_s
,
350 struct wpa_ssid
*ssid
)
352 if (wpa_s
->next_ssid
== ssid
)
353 wpa_s
->next_ssid
= NULL
;
355 wpa_sm_pmksa_cache_flush(wpa_s
->wpa
, ssid
);
356 if (!ssid
->p2p_group
&& wpa_s
->global
->p2p_group_formation
!= wpa_s
&&
358 wpas_dbus_unregister_network(wpa_s
, ssid
->id
);
359 if (network_is_persistent_group(ssid
))
360 wpas_notify_persistent_group_removed(wpa_s
, ssid
);
362 wpas_p2p_network_removed(wpa_s
, ssid
);
366 void wpas_notify_bss_added(struct wpa_supplicant
*wpa_s
,
367 u8 bssid
[], unsigned int id
)
372 wpas_dbus_register_bss(wpa_s
, bssid
, id
);
373 wpa_msg_ctrl(wpa_s
, MSG_INFO
, WPA_EVENT_BSS_ADDED
"%u " MACSTR
,
378 void wpas_notify_bss_removed(struct wpa_supplicant
*wpa_s
,
379 u8 bssid
[], unsigned int id
)
384 wpas_dbus_unregister_bss(wpa_s
, bssid
, id
);
385 wpa_msg_ctrl(wpa_s
, MSG_INFO
, WPA_EVENT_BSS_REMOVED
"%u " MACSTR
,
390 void wpas_notify_bss_freq_changed(struct wpa_supplicant
*wpa_s
,
396 wpas_dbus_bss_signal_prop_changed(wpa_s
, WPAS_DBUS_BSS_PROP_FREQ
, id
);
400 void wpas_notify_bss_signal_changed(struct wpa_supplicant
*wpa_s
,
406 wpas_dbus_bss_signal_prop_changed(wpa_s
, WPAS_DBUS_BSS_PROP_SIGNAL
,
411 void wpas_notify_bss_privacy_changed(struct wpa_supplicant
*wpa_s
,
417 wpas_dbus_bss_signal_prop_changed(wpa_s
, WPAS_DBUS_BSS_PROP_PRIVACY
,
422 void wpas_notify_bss_mode_changed(struct wpa_supplicant
*wpa_s
,
428 wpas_dbus_bss_signal_prop_changed(wpa_s
, WPAS_DBUS_BSS_PROP_MODE
, id
);
432 void wpas_notify_bss_wpaie_changed(struct wpa_supplicant
*wpa_s
,
438 wpas_dbus_bss_signal_prop_changed(wpa_s
, WPAS_DBUS_BSS_PROP_WPA
, id
);
442 void wpas_notify_bss_rsnie_changed(struct wpa_supplicant
*wpa_s
,
448 wpas_dbus_bss_signal_prop_changed(wpa_s
, WPAS_DBUS_BSS_PROP_RSN
, id
);
452 void wpas_notify_bss_wps_changed(struct wpa_supplicant
*wpa_s
,
459 wpas_dbus_bss_signal_prop_changed(wpa_s
, WPAS_DBUS_BSS_PROP_WPS
, id
);
460 #endif /* CONFIG_WPS */
464 void wpas_notify_bss_ies_changed(struct wpa_supplicant
*wpa_s
,
470 wpas_dbus_bss_signal_prop_changed(wpa_s
, WPAS_DBUS_BSS_PROP_IES
, id
);
474 void wpas_notify_bss_rates_changed(struct wpa_supplicant
*wpa_s
,
480 wpas_dbus_bss_signal_prop_changed(wpa_s
, WPAS_DBUS_BSS_PROP_RATES
, id
);
484 void wpas_notify_bss_seen(struct wpa_supplicant
*wpa_s
, unsigned int id
)
489 wpas_dbus_bss_signal_prop_changed(wpa_s
, WPAS_DBUS_BSS_PROP_AGE
, id
);
493 void wpas_notify_blob_added(struct wpa_supplicant
*wpa_s
, const char *name
)
498 wpas_dbus_signal_blob_added(wpa_s
, name
);
502 void wpas_notify_blob_removed(struct wpa_supplicant
*wpa_s
, const char *name
)
507 wpas_dbus_signal_blob_removed(wpa_s
, name
);
511 void wpas_notify_debug_level_changed(struct wpa_global
*global
)
513 wpas_dbus_signal_debug_level_changed(global
);
517 void wpas_notify_debug_timestamp_changed(struct wpa_global
*global
)
519 wpas_dbus_signal_debug_timestamp_changed(global
);
523 void wpas_notify_debug_show_keys_changed(struct wpa_global
*global
)
525 wpas_dbus_signal_debug_show_keys_changed(global
);
529 void wpas_notify_suspend(struct wpa_global
*global
)
531 struct wpa_supplicant
*wpa_s
;
533 os_get_time(&global
->suspend_time
);
534 wpa_printf(MSG_DEBUG
, "System suspend notification");
535 for (wpa_s
= global
->ifaces
; wpa_s
; wpa_s
= wpa_s
->next
)
536 wpa_drv_suspend(wpa_s
);
540 void wpas_notify_resume(struct wpa_global
*global
)
544 struct wpa_supplicant
*wpa_s
;
546 if (global
->suspend_time
.sec
== 0)
550 slept
= now
.sec
- global
->suspend_time
.sec
;
552 wpa_printf(MSG_DEBUG
, "System resume notification (slept %d seconds)",
555 for (wpa_s
= global
->ifaces
; wpa_s
; wpa_s
= wpa_s
->next
) {
556 wpa_drv_resume(wpa_s
);
557 if (wpa_s
->wpa_state
== WPA_DISCONNECTED
)
558 wpa_supplicant_req_scan(wpa_s
, 0, 100000);
565 void wpas_notify_p2p_find_stopped(struct wpa_supplicant
*wpa_s
)
567 /* Notify P2P find has stopped */
568 wpas_dbus_signal_p2p_find_stopped(wpa_s
);
572 void wpas_notify_p2p_device_found(struct wpa_supplicant
*wpa_s
,
573 const u8
*dev_addr
, int new_device
)
576 /* Create the new peer object */
577 wpas_dbus_register_peer(wpa_s
, dev_addr
);
580 /* Notify a new peer has been detected*/
581 wpas_dbus_signal_peer_device_found(wpa_s
, dev_addr
);
585 void wpas_notify_p2p_device_lost(struct wpa_supplicant
*wpa_s
,
588 wpas_dbus_unregister_peer(wpa_s
, dev_addr
);
590 /* Create signal on interface object*/
591 wpas_dbus_signal_peer_device_lost(wpa_s
, dev_addr
);
595 void wpas_notify_p2p_group_removed(struct wpa_supplicant
*wpa_s
,
596 const struct wpa_ssid
*ssid
,
599 wpas_dbus_signal_p2p_group_removed(wpa_s
, role
);
601 wpas_dbus_unregister_p2p_group(wpa_s
, ssid
);
605 void wpas_notify_p2p_go_neg_req(struct wpa_supplicant
*wpa_s
,
606 const u8
*src
, u16 dev_passwd_id
, u8 go_intent
)
608 wpas_dbus_signal_p2p_go_neg_req(wpa_s
, src
, dev_passwd_id
, go_intent
);
612 void wpas_notify_p2p_go_neg_completed(struct wpa_supplicant
*wpa_s
,
613 struct p2p_go_neg_results
*res
)
615 wpas_dbus_signal_p2p_go_neg_resp(wpa_s
, res
);
619 void wpas_notify_p2p_invitation_result(struct wpa_supplicant
*wpa_s
,
620 int status
, const u8
*bssid
)
622 wpas_dbus_signal_p2p_invitation_result(wpa_s
, status
, bssid
);
626 void wpas_notify_p2p_sd_request(struct wpa_supplicant
*wpa_s
,
627 int freq
, const u8
*sa
, u8 dialog_token
,
628 u16 update_indic
, const u8
*tlvs
,
631 wpas_dbus_signal_p2p_sd_request(wpa_s
, freq
, sa
, dialog_token
,
632 update_indic
, tlvs
, tlvs_len
);
636 void wpas_notify_p2p_sd_response(struct wpa_supplicant
*wpa_s
,
637 const u8
*sa
, u16 update_indic
,
638 const u8
*tlvs
, size_t tlvs_len
)
640 wpas_dbus_signal_p2p_sd_response(wpa_s
, sa
, update_indic
,
646 * wpas_notify_p2p_provision_discovery - Notification of provision discovery
647 * @dev_addr: Who sent the request or responded to our request.
648 * @request: Will be 1 if request, 0 for response.
649 * @status: Valid only in case of response (0 in case of success)
650 * @config_methods: WPS config methods
651 * @generated_pin: PIN to be displayed in case of WPS_CONFIG_DISPLAY method
653 * This can be used to notify:
654 * - Requests or responses
655 * - Various config methods
656 * - Failure condition in case of response
658 void wpas_notify_p2p_provision_discovery(struct wpa_supplicant
*wpa_s
,
659 const u8
*dev_addr
, int request
,
660 enum p2p_prov_disc_status status
,
662 unsigned int generated_pin
)
664 wpas_dbus_signal_p2p_provision_discovery(wpa_s
, dev_addr
, request
,
665 status
, config_methods
,
670 void wpas_notify_p2p_group_started(struct wpa_supplicant
*wpa_s
,
671 struct wpa_ssid
*ssid
, int persistent
,
672 int client
, const u8
*ip
)
674 /* Notify a group has been started */
675 wpas_dbus_register_p2p_group(wpa_s
, ssid
);
677 wpas_dbus_signal_p2p_group_started(wpa_s
, client
, persistent
, ip
);
681 void wpas_notify_p2p_group_formation_failure(struct wpa_supplicant
*wpa_s
,
684 /* Notify a group formation failed */
685 wpas_dbus_signal_p2p_group_formation_failure(wpa_s
, reason
);
689 void wpas_notify_p2p_wps_failed(struct wpa_supplicant
*wpa_s
,
690 struct wps_event_fail
*fail
)
692 wpas_dbus_signal_p2p_wps_failed(wpa_s
, fail
);
696 void wpas_notify_p2p_invitation_received(struct wpa_supplicant
*wpa_s
,
697 const u8
*sa
, const u8
*go_dev_addr
,
698 const u8
*bssid
, int id
, int op_freq
)
700 /* Notify a P2P Invitation Request */
701 wpas_dbus_signal_p2p_invitation_received(wpa_s
, sa
, go_dev_addr
, bssid
,
705 #endif /* CONFIG_P2P */
708 static void wpas_notify_ap_sta_authorized(struct wpa_supplicant
*wpa_s
,
710 const u8
*p2p_dev_addr
)
713 wpas_p2p_notify_ap_sta_authorized(wpa_s
, p2p_dev_addr
);
716 * Create 'peer-joined' signal on group object -- will also
720 wpas_dbus_signal_p2p_peer_joined(wpa_s
, p2p_dev_addr
);
721 #endif /* CONFIG_P2P */
723 /* Notify listeners a new station has been authorized */
724 wpas_dbus_signal_sta_authorized(wpa_s
, sta
);
728 static void wpas_notify_ap_sta_deauthorized(struct wpa_supplicant
*wpa_s
,
730 const u8
*p2p_dev_addr
)
734 * Create 'peer-disconnected' signal on group object if this
738 wpas_dbus_signal_p2p_peer_disconnected(wpa_s
, p2p_dev_addr
);
739 #endif /* CONFIG_P2P */
741 /* Notify listeners a station has been deauthorized */
742 wpas_dbus_signal_sta_deauthorized(wpa_s
, sta
);
746 void wpas_notify_sta_authorized(struct wpa_supplicant
*wpa_s
,
747 const u8
*mac_addr
, int authorized
,
748 const u8
*p2p_dev_addr
)
751 wpas_notify_ap_sta_authorized(wpa_s
, mac_addr
, p2p_dev_addr
);
753 wpas_notify_ap_sta_deauthorized(wpa_s
, mac_addr
, p2p_dev_addr
);
757 void wpas_notify_certification(struct wpa_supplicant
*wpa_s
, int depth
,
758 const char *subject
, const char *altsubject
[],
759 int num_altsubject
, const char *cert_hash
,
760 const struct wpabuf
*cert
)
762 wpa_msg(wpa_s
, MSG_INFO
, WPA_EVENT_EAP_PEER_CERT
763 "depth=%d subject='%s'%s%s",
764 depth
, subject
, cert_hash
? " hash=" : "",
765 cert_hash
? cert_hash
: "");
769 size_t len
= wpabuf_len(cert
) * 2 + 1;
770 cert_hex
= os_malloc(len
);
772 wpa_snprintf_hex(cert_hex
, len
, wpabuf_head(cert
),
774 wpa_msg_ctrl(wpa_s
, MSG_INFO
,
775 WPA_EVENT_EAP_PEER_CERT
776 "depth=%d subject='%s' cert=%s",
777 depth
, subject
, cert_hex
);
785 for (i
= 0; i
< num_altsubject
; i
++)
786 wpa_msg(wpa_s
, MSG_INFO
, WPA_EVENT_EAP_PEER_ALT
787 "depth=%d %s", depth
, altsubject
[i
]);
790 /* notify the old DBus API */
791 wpa_supplicant_dbus_notify_certification(wpa_s
, depth
, subject
,
793 /* notify the new DBus API */
794 wpas_dbus_signal_certification(wpa_s
, depth
, subject
, altsubject
,
795 num_altsubject
, cert_hash
, cert
);
799 void wpas_notify_preq(struct wpa_supplicant
*wpa_s
,
800 const u8
*addr
, const u8
*dst
, const u8
*bssid
,
801 const u8
*ie
, size_t ie_len
, u32 ssi_signal
)
804 wpas_dbus_signal_preq(wpa_s
, addr
, dst
, bssid
, ie
, ie_len
, ssi_signal
);
805 #endif /* CONFIG_AP */
809 void wpas_notify_eap_status(struct wpa_supplicant
*wpa_s
, const char *status
,
810 const char *parameter
)
812 wpas_dbus_signal_eap_status(wpa_s
, status
, parameter
);
813 wpa_msg_ctrl(wpa_s
, MSG_INFO
, WPA_EVENT_EAP_STATUS
814 "status='%s' parameter='%s'",
819 void wpas_notify_network_bssid_set_changed(struct wpa_supplicant
*wpa_s
,
820 struct wpa_ssid
*ssid
)
822 if (wpa_s
->current_ssid
!= ssid
)
825 wpa_dbg(wpa_s
, MSG_DEBUG
,
826 "Network bssid config changed for the current network - within-ESS roaming %s",
827 ssid
->bssid_set
? "disabled" : "enabled");
829 wpa_drv_roaming(wpa_s
, !ssid
->bssid_set
,
830 ssid
->bssid_set
? ssid
->bssid
: NULL
);
834 void wpas_notify_network_type_changed(struct wpa_supplicant
*wpa_s
,
835 struct wpa_ssid
*ssid
)
838 if (ssid
->disabled
== 2) {
839 /* Changed from normal network profile to persistent group */
841 wpas_dbus_unregister_network(wpa_s
, ssid
->id
);
843 ssid
->p2p_persistent_group
= 1;
844 wpas_dbus_register_persistent_group(wpa_s
, ssid
);
846 /* Changed from persistent group to normal network profile */
847 wpas_dbus_unregister_persistent_group(wpa_s
, ssid
->id
);
848 ssid
->p2p_persistent_group
= 0;
849 wpas_dbus_register_network(wpa_s
, ssid
);
851 #endif /* CONFIG_P2P */
857 void wpas_notify_mesh_group_started(struct wpa_supplicant
*wpa_s
,
858 struct wpa_ssid
*ssid
)
863 wpas_dbus_signal_mesh_group_started(wpa_s
, ssid
);
867 void wpas_notify_mesh_group_removed(struct wpa_supplicant
*wpa_s
,
868 const u8
*meshid
, u8 meshid_len
,
874 wpas_dbus_signal_mesh_group_removed(wpa_s
, meshid
, meshid_len
,
879 void wpas_notify_mesh_peer_connected(struct wpa_supplicant
*wpa_s
,
885 wpas_dbus_signal_mesh_peer_connected(wpa_s
, peer_addr
);
889 void wpas_notify_mesh_peer_disconnected(struct wpa_supplicant
*wpa_s
,
890 const u8
*peer_addr
, int reason_code
)
895 wpas_dbus_signal_mesh_peer_disconnected(wpa_s
, peer_addr
, reason_code
);
898 #endif /* CONFIG_MESH */