Lines Matching refs:wpa_s
62 int wpas_notify_iface_added(struct wpa_supplicant *wpa_s) in wpas_notify_iface_added() argument
64 if (!wpa_s->p2p_mgmt) { in wpas_notify_iface_added()
65 if (wpas_dbus_register_interface(wpa_s)) in wpas_notify_iface_added()
70 if (wpas_hidl_register_interface(wpa_s)) in wpas_notify_iface_added()
77 void wpas_notify_iface_removed(struct wpa_supplicant *wpa_s) in wpas_notify_iface_removed() argument
79 if (!wpa_s->p2p_mgmt) { in wpas_notify_iface_removed()
81 wpas_dbus_unregister_interface(wpa_s); in wpas_notify_iface_removed()
85 wpas_hidl_unregister_interface(wpa_s); in wpas_notify_iface_removed()
89 void wpas_notify_state_changed(struct wpa_supplicant *wpa_s, in wpas_notify_state_changed() argument
93 if (wpa_s->p2p_mgmt) in wpas_notify_state_changed()
97 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_STATE); in wpas_notify_state_changed()
100 if (wpa_s->fst && !is_zero_ether_addr(wpa_s->bssid)) { in wpas_notify_state_changed()
102 fst_notify_peer_connected(wpa_s->fst, wpa_s->bssid); in wpas_notify_state_changed()
105 fst_notify_peer_disconnected(wpa_s->fst, wpa_s->bssid); in wpas_notify_state_changed()
110 wpas_p2p_notif_connected(wpa_s); in wpas_notify_state_changed()
112 wpas_p2p_notif_disconnected(wpa_s); in wpas_notify_state_changed()
114 sme_state_changed(wpa_s); in wpas_notify_state_changed()
117 wpa_msg_ctrl(wpa_s, MSG_INFO, WPA_EVENT_STATE_CHANGE in wpas_notify_state_changed()
119 wpa_s->current_ssid ? wpa_s->current_ssid->id : -1, in wpas_notify_state_changed()
121 MAC2STR(wpa_s->bssid), in wpas_notify_state_changed()
122 wpa_s->current_ssid && wpa_s->current_ssid->ssid ? in wpas_notify_state_changed()
123 wpa_ssid_txt(wpa_s->current_ssid->ssid, in wpas_notify_state_changed()
124 wpa_s->current_ssid->ssid_len) : ""); in wpas_notify_state_changed()
127 wpas_hidl_notify_state_changed(wpa_s); in wpas_notify_state_changed()
131 void wpas_notify_disconnect_reason(struct wpa_supplicant *wpa_s) in wpas_notify_disconnect_reason() argument
133 if (wpa_s->p2p_mgmt) in wpas_notify_disconnect_reason()
136 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_DISCONNECT_REASON); in wpas_notify_disconnect_reason()
138 wpas_hidl_notify_disconnect_reason(wpa_s); in wpas_notify_disconnect_reason()
142 void wpas_notify_auth_status_code(struct wpa_supplicant *wpa_s) in wpas_notify_auth_status_code() argument
144 if (wpa_s->p2p_mgmt) in wpas_notify_auth_status_code()
147 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_AUTH_STATUS_CODE); in wpas_notify_auth_status_code()
151 void wpas_notify_assoc_status_code(struct wpa_supplicant *wpa_s, in wpas_notify_assoc_status_code() argument
155 if (wpa_s->p2p_mgmt) in wpas_notify_assoc_status_code()
158 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_ASSOC_STATUS_CODE); in wpas_notify_assoc_status_code()
160 wpas_hidl_notify_assoc_reject(wpa_s, bssid, timed_out, assoc_resp_ie, assoc_resp_ie_len); in wpas_notify_assoc_status_code()
163 void wpas_notify_auth_timeout(struct wpa_supplicant *wpa_s) { in wpas_notify_auth_timeout() argument
164 if (wpa_s->p2p_mgmt) in wpas_notify_auth_timeout()
167 wpas_hidl_notify_auth_timeout(wpa_s); in wpas_notify_auth_timeout()
170 void wpas_notify_roam_time(struct wpa_supplicant *wpa_s) in wpas_notify_roam_time() argument
172 if (wpa_s->p2p_mgmt) in wpas_notify_roam_time()
175 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_ROAM_TIME); in wpas_notify_roam_time()
179 void wpas_notify_roam_complete(struct wpa_supplicant *wpa_s) in wpas_notify_roam_complete() argument
181 if (wpa_s->p2p_mgmt) in wpas_notify_roam_complete()
184 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_ROAM_COMPLETE); in wpas_notify_roam_complete()
188 void wpas_notify_session_length(struct wpa_supplicant *wpa_s) in wpas_notify_session_length() argument
190 if (wpa_s->p2p_mgmt) in wpas_notify_session_length()
193 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_SESSION_LENGTH); in wpas_notify_session_length()
197 void wpas_notify_bss_tm_status(struct wpa_supplicant *wpa_s) in wpas_notify_bss_tm_status() argument
199 if (wpa_s->p2p_mgmt) in wpas_notify_bss_tm_status()
202 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_BSS_TM_STATUS); in wpas_notify_bss_tm_status()
205 wpas_hidl_notify_bss_tm_status(wpa_s); in wpas_notify_bss_tm_status()
210 void wpas_notify_network_changed(struct wpa_supplicant *wpa_s) in wpas_notify_network_changed() argument
212 if (wpa_s->p2p_mgmt) in wpas_notify_network_changed()
215 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_CURRENT_NETWORK); in wpas_notify_network_changed()
219 void wpas_notify_ap_scan_changed(struct wpa_supplicant *wpa_s) in wpas_notify_ap_scan_changed() argument
221 if (wpa_s->p2p_mgmt) in wpas_notify_ap_scan_changed()
224 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_AP_SCAN); in wpas_notify_ap_scan_changed()
228 void wpas_notify_bssid_changed(struct wpa_supplicant *wpa_s) in wpas_notify_bssid_changed() argument
230 if (wpa_s->p2p_mgmt) in wpas_notify_bssid_changed()
233 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_CURRENT_BSS); in wpas_notify_bssid_changed()
235 wpas_hidl_notify_bssid_changed(wpa_s); in wpas_notify_bssid_changed()
239 void wpas_notify_auth_changed(struct wpa_supplicant *wpa_s) in wpas_notify_auth_changed() argument
241 if (wpa_s->p2p_mgmt) in wpas_notify_auth_changed()
244 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_CURRENT_AUTH_MODE); in wpas_notify_auth_changed()
248 void wpas_notify_network_enabled_changed(struct wpa_supplicant *wpa_s, in wpas_notify_network_enabled_changed() argument
251 if (wpa_s->p2p_mgmt) in wpas_notify_network_enabled_changed()
254 wpas_dbus_signal_network_enabled_changed(wpa_s, ssid); in wpas_notify_network_enabled_changed()
258 void wpas_notify_network_selected(struct wpa_supplicant *wpa_s, in wpas_notify_network_selected() argument
261 if (wpa_s->p2p_mgmt) in wpas_notify_network_selected()
264 wpas_dbus_signal_network_selected(wpa_s, ssid->id); in wpas_notify_network_selected()
268 void wpas_notify_network_request(struct wpa_supplicant *wpa_s, in wpas_notify_network_request() argument
273 if (wpa_s->p2p_mgmt) in wpas_notify_network_request()
276 wpas_dbus_signal_network_request(wpa_s, ssid, rtype, default_txt); in wpas_notify_network_request()
278 wpas_hidl_notify_network_request(wpa_s, ssid, rtype, default_txt); in wpas_notify_network_request()
282 void wpas_notify_scanning(struct wpa_supplicant *wpa_s) in wpas_notify_scanning() argument
284 if (wpa_s->p2p_mgmt) in wpas_notify_scanning()
288 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_SCANNING); in wpas_notify_scanning()
292 void wpas_notify_scan_done(struct wpa_supplicant *wpa_s, int success) in wpas_notify_scan_done() argument
294 if (wpa_s->p2p_mgmt) in wpas_notify_scan_done()
297 wpas_dbus_signal_scan_done(wpa_s, success); in wpas_notify_scan_done()
301 void wpas_notify_scan_results(struct wpa_supplicant *wpa_s) in wpas_notify_scan_results() argument
303 if (wpa_s->p2p_mgmt) in wpas_notify_scan_results()
306 wpas_wps_notify_scan_results(wpa_s); in wpas_notify_scan_results()
310 void wpas_notify_wps_credential(struct wpa_supplicant *wpa_s, in wpas_notify_wps_credential() argument
313 if (wpa_s->p2p_mgmt) in wpas_notify_wps_credential()
318 wpas_dbus_signal_wps_cred(wpa_s, cred); in wpas_notify_wps_credential()
323 void wpas_notify_wps_event_m2d(struct wpa_supplicant *wpa_s, in wpas_notify_wps_event_m2d() argument
326 if (wpa_s->p2p_mgmt) in wpas_notify_wps_event_m2d()
330 wpas_dbus_signal_wps_event_m2d(wpa_s, m2d); in wpas_notify_wps_event_m2d()
335 void wpas_notify_wps_event_fail(struct wpa_supplicant *wpa_s, in wpas_notify_wps_event_fail() argument
338 if (wpa_s->p2p_mgmt) in wpas_notify_wps_event_fail()
342 wpas_dbus_signal_wps_event_fail(wpa_s, fail); in wpas_notify_wps_event_fail()
344 wpas_hidl_notify_wps_event_fail(wpa_s, fail->peer_macaddr, in wpas_notify_wps_event_fail()
351 void wpas_notify_wps_event_success(struct wpa_supplicant *wpa_s) in wpas_notify_wps_event_success() argument
353 if (wpa_s->p2p_mgmt) in wpas_notify_wps_event_success()
357 wpas_dbus_signal_wps_event_success(wpa_s); in wpas_notify_wps_event_success()
359 wpas_hidl_notify_wps_event_success(wpa_s); in wpas_notify_wps_event_success()
363 void wpas_notify_wps_event_pbc_overlap(struct wpa_supplicant *wpa_s) in wpas_notify_wps_event_pbc_overlap() argument
365 if (wpa_s->p2p_mgmt) in wpas_notify_wps_event_pbc_overlap()
369 wpas_dbus_signal_wps_event_pbc_overlap(wpa_s); in wpas_notify_wps_event_pbc_overlap()
371 wpas_hidl_notify_wps_event_pbc_overlap(wpa_s); in wpas_notify_wps_event_pbc_overlap()
376 void wpas_notify_network_added(struct wpa_supplicant *wpa_s, in wpas_notify_network_added() argument
379 if (wpa_s->p2p_mgmt) in wpas_notify_network_added()
388 if (!ssid->p2p_group && wpa_s->global->p2p_group_formation != wpa_s) { in wpas_notify_network_added()
389 wpas_dbus_register_network(wpa_s, ssid); in wpas_notify_network_added()
390 wpas_hidl_register_network(wpa_s, ssid); in wpas_notify_network_added()
395 void wpas_notify_persistent_group_added(struct wpa_supplicant *wpa_s, in wpas_notify_persistent_group_added() argument
399 wpas_dbus_register_persistent_group(wpa_s, ssid); in wpas_notify_persistent_group_added()
400 wpas_hidl_register_network(wpa_s, ssid); in wpas_notify_persistent_group_added()
405 void wpas_notify_persistent_group_removed(struct wpa_supplicant *wpa_s, in wpas_notify_persistent_group_removed() argument
409 wpas_dbus_unregister_persistent_group(wpa_s, ssid->id); in wpas_notify_persistent_group_removed()
410 wpas_hidl_unregister_network(wpa_s, ssid); in wpas_notify_persistent_group_removed()
415 void wpas_notify_network_removed(struct wpa_supplicant *wpa_s, in wpas_notify_network_removed() argument
418 if (wpa_s->next_ssid == ssid) in wpas_notify_network_removed()
419 wpa_s->next_ssid = NULL; in wpas_notify_network_removed()
420 if (wpa_s->wpa) in wpas_notify_network_removed()
421 wpa_sm_pmksa_cache_flush(wpa_s->wpa, ssid); in wpas_notify_network_removed()
422 if (!ssid->p2p_group && wpa_s->global->p2p_group_formation != wpa_s && in wpas_notify_network_removed()
423 !wpa_s->p2p_mgmt) { in wpas_notify_network_removed()
424 wpas_dbus_unregister_network(wpa_s, ssid->id); in wpas_notify_network_removed()
425 wpas_hidl_unregister_network(wpa_s, ssid); in wpas_notify_network_removed()
428 wpas_notify_persistent_group_removed(wpa_s, ssid); in wpas_notify_network_removed()
430 wpas_p2p_network_removed(wpa_s, ssid); in wpas_notify_network_removed()
433 if (wpa_s->pasn.ssid == ssid) in wpas_notify_network_removed()
434 wpa_s->pasn.ssid = NULL; in wpas_notify_network_removed()
439 void wpas_notify_bss_added(struct wpa_supplicant *wpa_s, in wpas_notify_bss_added() argument
442 if (wpa_s->p2p_mgmt) in wpas_notify_bss_added()
445 wpas_dbus_register_bss(wpa_s, bssid, id); in wpas_notify_bss_added()
446 wpa_msg_ctrl(wpa_s, MSG_INFO, WPA_EVENT_BSS_ADDED "%u " MACSTR, in wpas_notify_bss_added()
451 void wpas_notify_bss_removed(struct wpa_supplicant *wpa_s, in wpas_notify_bss_removed() argument
454 if (wpa_s->p2p_mgmt) in wpas_notify_bss_removed()
457 wpas_dbus_unregister_bss(wpa_s, bssid, id); in wpas_notify_bss_removed()
458 wpa_msg_ctrl(wpa_s, MSG_INFO, WPA_EVENT_BSS_REMOVED "%u " MACSTR, in wpas_notify_bss_removed()
463 void wpas_notify_bss_freq_changed(struct wpa_supplicant *wpa_s, in wpas_notify_bss_freq_changed() argument
466 if (wpa_s->p2p_mgmt) in wpas_notify_bss_freq_changed()
469 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_FREQ, id); in wpas_notify_bss_freq_changed()
473 void wpas_notify_bss_signal_changed(struct wpa_supplicant *wpa_s, in wpas_notify_bss_signal_changed() argument
476 if (wpa_s->p2p_mgmt) in wpas_notify_bss_signal_changed()
479 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_SIGNAL, in wpas_notify_bss_signal_changed()
484 void wpas_notify_bss_privacy_changed(struct wpa_supplicant *wpa_s, in wpas_notify_bss_privacy_changed() argument
487 if (wpa_s->p2p_mgmt) in wpas_notify_bss_privacy_changed()
490 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_PRIVACY, in wpas_notify_bss_privacy_changed()
495 void wpas_notify_bss_mode_changed(struct wpa_supplicant *wpa_s, in wpas_notify_bss_mode_changed() argument
498 if (wpa_s->p2p_mgmt) in wpas_notify_bss_mode_changed()
501 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_MODE, id); in wpas_notify_bss_mode_changed()
505 void wpas_notify_bss_wpaie_changed(struct wpa_supplicant *wpa_s, in wpas_notify_bss_wpaie_changed() argument
508 if (wpa_s->p2p_mgmt) in wpas_notify_bss_wpaie_changed()
511 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_WPA, id); in wpas_notify_bss_wpaie_changed()
515 void wpas_notify_bss_rsnie_changed(struct wpa_supplicant *wpa_s, in wpas_notify_bss_rsnie_changed() argument
518 if (wpa_s->p2p_mgmt) in wpas_notify_bss_rsnie_changed()
521 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_RSN, id); in wpas_notify_bss_rsnie_changed()
525 void wpas_notify_bss_wps_changed(struct wpa_supplicant *wpa_s, in wpas_notify_bss_wps_changed() argument
528 if (wpa_s->p2p_mgmt) in wpas_notify_bss_wps_changed()
532 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_WPS, id); in wpas_notify_bss_wps_changed()
537 void wpas_notify_bss_ies_changed(struct wpa_supplicant *wpa_s, in wpas_notify_bss_ies_changed() argument
540 if (wpa_s->p2p_mgmt) in wpas_notify_bss_ies_changed()
543 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_IES, id); in wpas_notify_bss_ies_changed()
547 void wpas_notify_bss_rates_changed(struct wpa_supplicant *wpa_s, in wpas_notify_bss_rates_changed() argument
550 if (wpa_s->p2p_mgmt) in wpas_notify_bss_rates_changed()
553 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_RATES, id); in wpas_notify_bss_rates_changed()
557 void wpas_notify_bss_seen(struct wpa_supplicant *wpa_s, unsigned int id) in wpas_notify_bss_seen() argument
559 if (wpa_s->p2p_mgmt) in wpas_notify_bss_seen()
562 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_AGE, id); in wpas_notify_bss_seen()
566 void wpas_notify_blob_added(struct wpa_supplicant *wpa_s, const char *name) in wpas_notify_blob_added() argument
568 if (wpa_s->p2p_mgmt) in wpas_notify_blob_added()
571 wpas_dbus_signal_blob_added(wpa_s, name); in wpas_notify_blob_added()
575 void wpas_notify_blob_removed(struct wpa_supplicant *wpa_s, const char *name) in wpas_notify_blob_removed() argument
577 if (wpa_s->p2p_mgmt) in wpas_notify_blob_removed()
580 wpas_dbus_signal_blob_removed(wpa_s, name); in wpas_notify_blob_removed()
604 struct wpa_supplicant *wpa_s; in wpas_notify_suspend() local
608 for (wpa_s = global->ifaces; wpa_s; wpa_s = wpa_s->next) in wpas_notify_suspend()
609 wpa_drv_suspend(wpa_s); in wpas_notify_suspend()
617 struct wpa_supplicant *wpa_s; in wpas_notify_resume() local
628 for (wpa_s = global->ifaces; wpa_s; wpa_s = wpa_s->next) { in wpas_notify_resume()
629 wpa_drv_resume(wpa_s); in wpas_notify_resume()
630 if (wpa_s->wpa_state == WPA_DISCONNECTED) in wpas_notify_resume()
631 wpa_supplicant_req_scan(wpa_s, 0, 100000); in wpas_notify_resume()
638 void wpas_notify_p2p_find_stopped(struct wpa_supplicant *wpa_s) in wpas_notify_p2p_find_stopped() argument
641 wpas_dbus_signal_p2p_find_stopped(wpa_s); in wpas_notify_p2p_find_stopped()
643 wpas_hidl_notify_p2p_find_stopped(wpa_s); in wpas_notify_p2p_find_stopped()
647 void wpas_notify_p2p_device_found(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_device_found() argument
655 wpas_dbus_register_peer(wpa_s, info->p2p_device_addr); in wpas_notify_p2p_device_found()
659 wpas_dbus_signal_peer_device_found(wpa_s, info->p2p_device_addr); in wpas_notify_p2p_device_found()
661 wpas_hidl_notify_p2p_device_found(wpa_s, addr, info, in wpas_notify_p2p_device_found()
669 void wpas_notify_p2p_device_lost(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_device_lost() argument
672 wpas_dbus_unregister_peer(wpa_s, dev_addr); in wpas_notify_p2p_device_lost()
675 wpas_dbus_signal_peer_device_lost(wpa_s, dev_addr); in wpas_notify_p2p_device_lost()
677 wpas_hidl_notify_p2p_device_lost(wpa_s, dev_addr); in wpas_notify_p2p_device_lost()
681 void wpas_notify_p2p_group_removed(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_group_removed() argument
685 wpas_dbus_signal_p2p_group_removed(wpa_s, role); in wpas_notify_p2p_group_removed()
687 wpas_dbus_unregister_p2p_group(wpa_s, ssid); in wpas_notify_p2p_group_removed()
689 wpas_hidl_notify_p2p_group_removed(wpa_s, ssid, role); in wpas_notify_p2p_group_removed()
693 void wpas_notify_p2p_go_neg_req(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_go_neg_req() argument
696 wpas_dbus_signal_p2p_go_neg_req(wpa_s, src, dev_passwd_id, go_intent); in wpas_notify_p2p_go_neg_req()
698 wpas_hidl_notify_p2p_go_neg_req(wpa_s, src, dev_passwd_id, go_intent); in wpas_notify_p2p_go_neg_req()
702 void wpas_notify_p2p_go_neg_completed(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_go_neg_completed() argument
705 wpas_dbus_signal_p2p_go_neg_resp(wpa_s, res); in wpas_notify_p2p_go_neg_completed()
707 wpas_hidl_notify_p2p_go_neg_completed(wpa_s, res); in wpas_notify_p2p_go_neg_completed()
711 void wpas_notify_p2p_invitation_result(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_invitation_result() argument
714 wpas_dbus_signal_p2p_invitation_result(wpa_s, status, bssid); in wpas_notify_p2p_invitation_result()
716 wpas_hidl_notify_p2p_invitation_result(wpa_s, status, bssid); in wpas_notify_p2p_invitation_result()
720 void wpas_notify_p2p_sd_request(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_sd_request() argument
725 wpas_dbus_signal_p2p_sd_request(wpa_s, freq, sa, dialog_token, in wpas_notify_p2p_sd_request()
730 void wpas_notify_p2p_sd_response(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_sd_response() argument
734 wpas_dbus_signal_p2p_sd_response(wpa_s, sa, update_indic, in wpas_notify_p2p_sd_response()
737 wpas_hidl_notify_p2p_sd_response(wpa_s, sa, update_indic, in wpas_notify_p2p_sd_response()
755 void wpas_notify_p2p_provision_discovery(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_provision_discovery() argument
761 wpas_dbus_signal_p2p_provision_discovery(wpa_s, dev_addr, request, in wpas_notify_p2p_provision_discovery()
765 wpas_hidl_notify_p2p_provision_discovery(wpa_s, dev_addr, request, in wpas_notify_p2p_provision_discovery()
772 void wpas_notify_p2p_group_started(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_group_started() argument
777 wpas_dbus_register_p2p_group(wpa_s, ssid); in wpas_notify_p2p_group_started()
779 wpas_dbus_signal_p2p_group_started(wpa_s, client, persistent, ip); in wpas_notify_p2p_group_started()
781 wpas_hidl_notify_p2p_group_started(wpa_s, ssid, persistent, client); in wpas_notify_p2p_group_started()
785 void wpas_notify_p2p_group_formation_failure(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_group_formation_failure() argument
789 wpas_dbus_signal_p2p_group_formation_failure(wpa_s, reason); in wpas_notify_p2p_group_formation_failure()
791 wpas_hidl_notify_p2p_group_formation_failure(wpa_s, reason); in wpas_notify_p2p_group_formation_failure()
795 void wpas_notify_p2p_wps_failed(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_wps_failed() argument
798 wpas_dbus_signal_p2p_wps_failed(wpa_s, fail); in wpas_notify_p2p_wps_failed()
802 void wpas_notify_p2p_invitation_received(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_invitation_received() argument
807 wpas_dbus_signal_p2p_invitation_received(wpa_s, sa, go_dev_addr, bssid, in wpas_notify_p2p_invitation_received()
810 wpas_hidl_notify_p2p_invitation_received(wpa_s, sa, go_dev_addr, bssid, in wpas_notify_p2p_invitation_received()
817 static void wpas_notify_ap_sta_authorized(struct wpa_supplicant *wpa_s, in wpas_notify_ap_sta_authorized() argument
822 wpas_p2p_notify_ap_sta_authorized(wpa_s, p2p_dev_addr); in wpas_notify_ap_sta_authorized()
829 wpas_dbus_signal_p2p_peer_joined(wpa_s, p2p_dev_addr); in wpas_notify_ap_sta_authorized()
833 wpas_dbus_register_sta(wpa_s, sta); in wpas_notify_ap_sta_authorized()
836 wpas_dbus_signal_sta_authorized(wpa_s, sta); in wpas_notify_ap_sta_authorized()
838 wpas_hidl_notify_ap_sta_authorized(wpa_s, sta, p2p_dev_addr); in wpas_notify_ap_sta_authorized()
842 static void wpas_notify_ap_sta_deauthorized(struct wpa_supplicant *wpa_s, in wpas_notify_ap_sta_deauthorized() argument
852 wpas_dbus_signal_p2p_peer_disconnected(wpa_s, p2p_dev_addr); in wpas_notify_ap_sta_deauthorized()
856 wpas_dbus_signal_sta_deauthorized(wpa_s, sta); in wpas_notify_ap_sta_deauthorized()
858 wpas_hidl_notify_ap_sta_deauthorized(wpa_s, sta, p2p_dev_addr); in wpas_notify_ap_sta_deauthorized()
860 wpas_dbus_unregister_sta(wpa_s, sta); in wpas_notify_ap_sta_deauthorized()
864 void wpas_notify_sta_authorized(struct wpa_supplicant *wpa_s, in wpas_notify_sta_authorized() argument
869 wpas_notify_ap_sta_authorized(wpa_s, mac_addr, p2p_dev_addr); in wpas_notify_sta_authorized()
871 wpas_notify_ap_sta_deauthorized(wpa_s, mac_addr, p2p_dev_addr); in wpas_notify_sta_authorized()
875 void wpas_notify_certification(struct wpa_supplicant *wpa_s, in wpas_notify_certification() argument
881 wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_EAP_PEER_CERT in wpas_notify_certification()
895 wpa_msg_ctrl(wpa_s, MSG_INFO, in wpas_notify_certification()
904 wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_EAP_PEER_ALT in wpas_notify_certification()
908 wpas_dbus_signal_certification(wpa_s, cert->depth, cert->subject, in wpas_notify_certification()
914 void wpas_notify_preq(struct wpa_supplicant *wpa_s, in wpas_notify_preq() argument
919 wpas_dbus_signal_preq(wpa_s, addr, dst, bssid, ie, ie_len, ssi_signal); in wpas_notify_preq()
924 void wpas_notify_eap_status(struct wpa_supplicant *wpa_s, const char *status, in wpas_notify_eap_status() argument
927 wpas_dbus_signal_eap_status(wpa_s, status, parameter); in wpas_notify_eap_status()
928 wpa_msg_ctrl(wpa_s, MSG_INFO, WPA_EVENT_EAP_STATUS in wpas_notify_eap_status()
934 void wpas_notify_eap_error(struct wpa_supplicant *wpa_s, int error_code) in wpas_notify_eap_error() argument
936 wpa_dbg(wpa_s, MSG_ERROR, in wpas_notify_eap_error()
938 wpas_hidl_notify_eap_error(wpa_s, error_code); in wpas_notify_eap_error()
942 void wpas_notify_network_bssid_set_changed(struct wpa_supplicant *wpa_s, in wpas_notify_network_bssid_set_changed() argument
945 if (wpa_s->current_ssid != ssid) in wpas_notify_network_bssid_set_changed()
948 wpa_dbg(wpa_s, MSG_DEBUG, in wpas_notify_network_bssid_set_changed()
952 wpa_drv_roaming(wpa_s, !ssid->bssid_set, in wpas_notify_network_bssid_set_changed()
957 void wpas_notify_network_type_changed(struct wpa_supplicant *wpa_s, in wpas_notify_network_type_changed() argument
964 wpas_dbus_unregister_network(wpa_s, ssid->id); in wpas_notify_network_type_changed()
967 wpas_dbus_register_persistent_group(wpa_s, ssid); in wpas_notify_network_type_changed()
970 wpas_dbus_unregister_persistent_group(wpa_s, ssid->id); in wpas_notify_network_type_changed()
972 wpas_dbus_register_network(wpa_s, ssid); in wpas_notify_network_type_changed()
977 void wpas_notify_anqp_query_done(struct wpa_supplicant *wpa_s, const u8* bssid, in wpas_notify_anqp_query_done() argument
982 if (!wpa_s || !bssid || !anqp) in wpas_notify_anqp_query_done()
985 wpas_hidl_notify_anqp_query_done(wpa_s, bssid, result, anqp); in wpas_notify_anqp_query_done()
989 void wpas_notify_hs20_icon_query_done(struct wpa_supplicant *wpa_s, const u8* bssid, in wpas_notify_hs20_icon_query_done() argument
994 if (!wpa_s || !bssid || !file_name || !image) in wpas_notify_hs20_icon_query_done()
997 wpas_hidl_notify_hs20_icon_query_done(wpa_s, bssid, file_name, image, in wpas_notify_hs20_icon_query_done()
1002 void wpas_notify_hs20_rx_subscription_remediation(struct wpa_supplicant *wpa_s, in wpas_notify_hs20_rx_subscription_remediation() argument
1007 if (!wpa_s || !url) in wpas_notify_hs20_rx_subscription_remediation()
1010 wpas_hidl_notify_hs20_rx_subscription_remediation(wpa_s, url, osu_method); in wpas_notify_hs20_rx_subscription_remediation()
1014 void wpas_notify_hs20_rx_deauth_imminent_notice(struct wpa_supplicant *wpa_s, in wpas_notify_hs20_rx_deauth_imminent_notice() argument
1019 if (!wpa_s) in wpas_notify_hs20_rx_deauth_imminent_notice()
1022 wpas_hidl_notify_hs20_rx_deauth_imminent_notice(wpa_s, code, reauth_delay, in wpas_notify_hs20_rx_deauth_imminent_notice()
1028 struct wpa_supplicant *wpa_s, const char *url) { in wpas_notify_hs20_rx_terms_and_conditions_acceptance() argument
1030 if (!wpa_s || !url) in wpas_notify_hs20_rx_terms_and_conditions_acceptance()
1033 wpas_hidl_notify_hs20_rx_terms_and_conditions_acceptance(wpa_s, url); in wpas_notify_hs20_rx_terms_and_conditions_acceptance()
1039 void wpas_notify_mesh_group_started(struct wpa_supplicant *wpa_s, in wpas_notify_mesh_group_started() argument
1042 if (wpa_s->p2p_mgmt) in wpas_notify_mesh_group_started()
1045 wpas_dbus_signal_mesh_group_started(wpa_s, ssid); in wpas_notify_mesh_group_started()
1049 void wpas_notify_mesh_group_removed(struct wpa_supplicant *wpa_s, in wpas_notify_mesh_group_removed() argument
1053 if (wpa_s->p2p_mgmt) in wpas_notify_mesh_group_removed()
1056 wpas_dbus_signal_mesh_group_removed(wpa_s, meshid, meshid_len, in wpas_notify_mesh_group_removed()
1061 void wpas_notify_mesh_peer_connected(struct wpa_supplicant *wpa_s, in wpas_notify_mesh_peer_connected() argument
1064 if (wpa_s->p2p_mgmt) in wpas_notify_mesh_peer_connected()
1067 wpas_dbus_signal_mesh_peer_connected(wpa_s, peer_addr); in wpas_notify_mesh_peer_connected()
1071 void wpas_notify_mesh_peer_disconnected(struct wpa_supplicant *wpa_s, in wpas_notify_mesh_peer_disconnected() argument
1074 if (wpa_s->p2p_mgmt) in wpas_notify_mesh_peer_disconnected()
1077 wpas_dbus_signal_mesh_peer_disconnected(wpa_s, peer_addr, reason_code); in wpas_notify_mesh_peer_disconnected()
1088 void wpas_notify_dpp_config_received(struct wpa_supplicant *wpa_s, in wpas_notify_dpp_config_received() argument
1092 if (!wpa_s) in wpas_notify_dpp_config_received()
1095 wpas_hidl_notify_dpp_config_received(wpa_s, ssid); in wpas_notify_dpp_config_received()
1099 void wpas_notify_dpp_config_sent(struct wpa_supplicant *wpa_s) in wpas_notify_dpp_config_sent() argument
1102 if (!wpa_s) in wpas_notify_dpp_config_sent()
1105 wpas_hidl_notify_dpp_config_sent(wpa_s); in wpas_notify_dpp_config_sent()
1110 void wpas_notify_dpp_auth_success(struct wpa_supplicant *wpa_s) in wpas_notify_dpp_auth_success() argument
1113 if (!wpa_s) in wpas_notify_dpp_auth_success()
1116 wpas_hidl_notify_dpp_auth_success(wpa_s); in wpas_notify_dpp_auth_success()
1120 void wpas_notify_dpp_resp_pending(struct wpa_supplicant *wpa_s) in wpas_notify_dpp_resp_pending() argument
1123 if (!wpa_s) in wpas_notify_dpp_resp_pending()
1126 wpas_hidl_notify_dpp_resp_pending(wpa_s); in wpas_notify_dpp_resp_pending()
1131 void wpas_notify_dpp_not_compatible(struct wpa_supplicant *wpa_s) in wpas_notify_dpp_not_compatible() argument
1134 if (!wpa_s) in wpas_notify_dpp_not_compatible()
1137 wpas_hidl_notify_dpp_not_compatible(wpa_s); in wpas_notify_dpp_not_compatible()
1141 void wpas_notify_dpp_missing_auth(struct wpa_supplicant *wpa_s) in wpas_notify_dpp_missing_auth() argument
1144 if (!wpa_s) in wpas_notify_dpp_missing_auth()
1147 wpas_hidl_notify_dpp_missing_auth(wpa_s); in wpas_notify_dpp_missing_auth()
1151 void wpas_notify_dpp_configuration_failure(struct wpa_supplicant *wpa_s) in wpas_notify_dpp_configuration_failure() argument
1154 if (!wpa_s) in wpas_notify_dpp_configuration_failure()
1157 wpas_hidl_notify_dpp_configuration_failure(wpa_s); in wpas_notify_dpp_configuration_failure()
1161 void wpas_notify_dpp_timeout(struct wpa_supplicant *wpa_s) in wpas_notify_dpp_timeout() argument
1164 if (!wpa_s) in wpas_notify_dpp_timeout()
1167 wpas_hidl_notify_dpp_timeout(wpa_s); in wpas_notify_dpp_timeout()
1171 void wpas_notify_dpp_auth_failure(struct wpa_supplicant *wpa_s) in wpas_notify_dpp_auth_failure() argument
1174 if (!wpa_s) in wpas_notify_dpp_auth_failure()
1177 wpas_hidl_notify_dpp_auth_failure(wpa_s); in wpas_notify_dpp_auth_failure()
1181 void wpas_notify_dpp_failure(struct wpa_supplicant *wpa_s) in wpas_notify_dpp_failure() argument
1184 if (!wpa_s) in wpas_notify_dpp_failure()
1187 wpas_hidl_notify_dpp_fail(wpa_s); in wpas_notify_dpp_failure()
1191 void wpas_notify_dpp_config_sent_wait_response(struct wpa_supplicant *wpa_s) in wpas_notify_dpp_config_sent_wait_response() argument
1194 wpas_hidl_notify_dpp_config_sent_wait_response(wpa_s); in wpas_notify_dpp_config_sent_wait_response()
1198 void wpas_notify_dpp_config_accepted(struct wpa_supplicant *wpa_s) in wpas_notify_dpp_config_accepted() argument
1201 wpas_hidl_notify_dpp_config_accepted(wpa_s); in wpas_notify_dpp_config_accepted()
1205 void wpas_notify_dpp_conn_status(struct wpa_supplicant *wpa_s, in wpas_notify_dpp_conn_status() argument
1210 wpas_hidl_notify_dpp_conn_status(wpa_s, status, ssid, channel_list, band_list, size); in wpas_notify_dpp_conn_status()
1214 void wpas_notify_dpp_config_rejected(struct wpa_supplicant *wpa_s) in wpas_notify_dpp_config_rejected() argument
1217 wpas_hidl_notify_dpp_config_rejected(wpa_s); in wpas_notify_dpp_config_rejected()
1221 void wpas_notify_pmk_cache_added(struct wpa_supplicant *wpa_s, in wpas_notify_pmk_cache_added() argument
1224 if (!wpa_s) in wpas_notify_pmk_cache_added()
1227 wpas_hidl_notify_pmk_cache_added(wpa_s, entry); in wpas_notify_pmk_cache_added()
1230 void wpas_notify_transition_disable(struct wpa_supplicant *wpa_s, in wpas_notify_transition_disable() argument
1234 if (!wpa_s) in wpas_notify_transition_disable()
1240 wpas_hidl_notify_transition_disable(wpa_s, ssid, bitmap); in wpas_notify_transition_disable()
1243 void wpas_notify_network_not_found(struct wpa_supplicant *wpa_s) in wpas_notify_network_not_found() argument
1245 if (!wpa_s) in wpas_notify_network_not_found()
1248 wpas_hidl_notify_network_not_found(wpa_s); in wpas_notify_network_not_found()