Lines Matching refs:wpa_s

61 int wpas_notify_iface_added(struct wpa_supplicant *wpa_s)  in wpas_notify_iface_added()  argument
63 if (!wpa_s->p2p_mgmt) { in wpas_notify_iface_added()
64 if (wpas_dbus_register_interface(wpa_s)) in wpas_notify_iface_added()
69 if (wpas_hidl_register_interface(wpa_s)) in wpas_notify_iface_added()
76 void wpas_notify_iface_removed(struct wpa_supplicant *wpa_s) in wpas_notify_iface_removed() argument
78 if (!wpa_s->p2p_mgmt) { in wpas_notify_iface_removed()
80 wpas_dbus_unregister_interface(wpa_s); in wpas_notify_iface_removed()
84 wpas_hidl_unregister_interface(wpa_s); in wpas_notify_iface_removed()
88 void wpas_notify_state_changed(struct wpa_supplicant *wpa_s, in wpas_notify_state_changed() argument
92 if (wpa_s->p2p_mgmt) in wpas_notify_state_changed()
96 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_STATE); in wpas_notify_state_changed()
99 if (wpa_s->fst && !is_zero_ether_addr(wpa_s->bssid)) { in wpas_notify_state_changed()
101 fst_notify_peer_connected(wpa_s->fst, wpa_s->bssid); in wpas_notify_state_changed()
104 fst_notify_peer_disconnected(wpa_s->fst, wpa_s->bssid); in wpas_notify_state_changed()
109 wpas_p2p_notif_connected(wpa_s); in wpas_notify_state_changed()
111 wpas_p2p_notif_disconnected(wpa_s); in wpas_notify_state_changed()
113 sme_state_changed(wpa_s); in wpas_notify_state_changed()
116 wpa_msg_ctrl(wpa_s, MSG_INFO, WPA_EVENT_STATE_CHANGE in wpas_notify_state_changed()
118 wpa_s->current_ssid ? wpa_s->current_ssid->id : -1, in wpas_notify_state_changed()
120 MAC2STR(wpa_s->bssid), in wpas_notify_state_changed()
121 wpa_s->current_ssid && wpa_s->current_ssid->ssid ? in wpas_notify_state_changed()
122 wpa_ssid_txt(wpa_s->current_ssid->ssid, in wpas_notify_state_changed()
123 wpa_s->current_ssid->ssid_len) : ""); in wpas_notify_state_changed()
126 wpas_hidl_notify_state_changed(wpa_s); in wpas_notify_state_changed()
130 void wpas_notify_disconnect_reason(struct wpa_supplicant *wpa_s) in wpas_notify_disconnect_reason() argument
132 if (wpa_s->p2p_mgmt) in wpas_notify_disconnect_reason()
135 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_DISCONNECT_REASON); in wpas_notify_disconnect_reason()
137 wpas_hidl_notify_disconnect_reason(wpa_s); in wpas_notify_disconnect_reason()
141 void wpas_notify_auth_status_code(struct wpa_supplicant *wpa_s) in wpas_notify_auth_status_code() argument
143 if (wpa_s->p2p_mgmt) in wpas_notify_auth_status_code()
146 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_AUTH_STATUS_CODE); in wpas_notify_auth_status_code()
150 void wpas_notify_assoc_status_code(struct wpa_supplicant *wpa_s) in wpas_notify_assoc_status_code() argument
152 if (wpa_s->p2p_mgmt) in wpas_notify_assoc_status_code()
155 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_ASSOC_STATUS_CODE); in wpas_notify_assoc_status_code()
157 wpas_hidl_notify_assoc_reject(wpa_s); in wpas_notify_assoc_status_code()
160 void wpas_notify_auth_timeout(struct wpa_supplicant *wpa_s) { in wpas_notify_auth_timeout() argument
161 if (wpa_s->p2p_mgmt) in wpas_notify_auth_timeout()
164 wpas_hidl_notify_auth_timeout(wpa_s); in wpas_notify_auth_timeout()
167 void wpas_notify_roam_time(struct wpa_supplicant *wpa_s) in wpas_notify_roam_time() argument
169 if (wpa_s->p2p_mgmt) in wpas_notify_roam_time()
172 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_ROAM_TIME); in wpas_notify_roam_time()
176 void wpas_notify_roam_complete(struct wpa_supplicant *wpa_s) in wpas_notify_roam_complete() argument
178 if (wpa_s->p2p_mgmt) in wpas_notify_roam_complete()
181 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_ROAM_COMPLETE); in wpas_notify_roam_complete()
185 void wpas_notify_session_length(struct wpa_supplicant *wpa_s) in wpas_notify_session_length() argument
187 if (wpa_s->p2p_mgmt) in wpas_notify_session_length()
190 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_SESSION_LENGTH); in wpas_notify_session_length()
194 void wpas_notify_bss_tm_status(struct wpa_supplicant *wpa_s) in wpas_notify_bss_tm_status() argument
196 if (wpa_s->p2p_mgmt) in wpas_notify_bss_tm_status()
199 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_BSS_TM_STATUS); in wpas_notify_bss_tm_status()
203 void wpas_notify_network_changed(struct wpa_supplicant *wpa_s) in wpas_notify_network_changed() argument
205 if (wpa_s->p2p_mgmt) in wpas_notify_network_changed()
208 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_CURRENT_NETWORK); in wpas_notify_network_changed()
212 void wpas_notify_ap_scan_changed(struct wpa_supplicant *wpa_s) in wpas_notify_ap_scan_changed() argument
214 if (wpa_s->p2p_mgmt) in wpas_notify_ap_scan_changed()
217 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_AP_SCAN); in wpas_notify_ap_scan_changed()
221 void wpas_notify_bssid_changed(struct wpa_supplicant *wpa_s) in wpas_notify_bssid_changed() argument
223 if (wpa_s->p2p_mgmt) in wpas_notify_bssid_changed()
226 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_CURRENT_BSS); in wpas_notify_bssid_changed()
228 wpas_hidl_notify_bssid_changed(wpa_s); in wpas_notify_bssid_changed()
232 void wpas_notify_auth_changed(struct wpa_supplicant *wpa_s) in wpas_notify_auth_changed() argument
234 if (wpa_s->p2p_mgmt) in wpas_notify_auth_changed()
237 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_CURRENT_AUTH_MODE); in wpas_notify_auth_changed()
241 void wpas_notify_network_enabled_changed(struct wpa_supplicant *wpa_s, in wpas_notify_network_enabled_changed() argument
244 if (wpa_s->p2p_mgmt) in wpas_notify_network_enabled_changed()
247 wpas_dbus_signal_network_enabled_changed(wpa_s, ssid); in wpas_notify_network_enabled_changed()
251 void wpas_notify_network_selected(struct wpa_supplicant *wpa_s, in wpas_notify_network_selected() argument
254 if (wpa_s->p2p_mgmt) in wpas_notify_network_selected()
257 wpas_dbus_signal_network_selected(wpa_s, ssid->id); in wpas_notify_network_selected()
261 void wpas_notify_network_request(struct wpa_supplicant *wpa_s, in wpas_notify_network_request() argument
266 if (wpa_s->p2p_mgmt) in wpas_notify_network_request()
269 wpas_dbus_signal_network_request(wpa_s, ssid, rtype, default_txt); in wpas_notify_network_request()
271 wpas_hidl_notify_network_request(wpa_s, ssid, rtype, default_txt); in wpas_notify_network_request()
275 void wpas_notify_scanning(struct wpa_supplicant *wpa_s) in wpas_notify_scanning() argument
277 if (wpa_s->p2p_mgmt) in wpas_notify_scanning()
281 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_SCANNING); in wpas_notify_scanning()
285 void wpas_notify_scan_done(struct wpa_supplicant *wpa_s, int success) in wpas_notify_scan_done() argument
287 if (wpa_s->p2p_mgmt) in wpas_notify_scan_done()
290 wpas_dbus_signal_scan_done(wpa_s, success); in wpas_notify_scan_done()
294 void wpas_notify_scan_results(struct wpa_supplicant *wpa_s) in wpas_notify_scan_results() argument
296 if (wpa_s->p2p_mgmt) in wpas_notify_scan_results()
299 wpas_wps_notify_scan_results(wpa_s); in wpas_notify_scan_results()
303 void wpas_notify_wps_credential(struct wpa_supplicant *wpa_s, in wpas_notify_wps_credential() argument
306 if (wpa_s->p2p_mgmt) in wpas_notify_wps_credential()
311 wpas_dbus_signal_wps_cred(wpa_s, cred); in wpas_notify_wps_credential()
316 void wpas_notify_wps_event_m2d(struct wpa_supplicant *wpa_s, in wpas_notify_wps_event_m2d() argument
319 if (wpa_s->p2p_mgmt) in wpas_notify_wps_event_m2d()
323 wpas_dbus_signal_wps_event_m2d(wpa_s, m2d); in wpas_notify_wps_event_m2d()
328 void wpas_notify_wps_event_fail(struct wpa_supplicant *wpa_s, in wpas_notify_wps_event_fail() argument
331 if (wpa_s->p2p_mgmt) in wpas_notify_wps_event_fail()
335 wpas_dbus_signal_wps_event_fail(wpa_s, fail); in wpas_notify_wps_event_fail()
337 wpas_hidl_notify_wps_event_fail(wpa_s, fail->peer_macaddr, in wpas_notify_wps_event_fail()
344 void wpas_notify_wps_event_success(struct wpa_supplicant *wpa_s) in wpas_notify_wps_event_success() argument
346 if (wpa_s->p2p_mgmt) in wpas_notify_wps_event_success()
350 wpas_dbus_signal_wps_event_success(wpa_s); in wpas_notify_wps_event_success()
352 wpas_hidl_notify_wps_event_success(wpa_s); in wpas_notify_wps_event_success()
356 void wpas_notify_wps_event_pbc_overlap(struct wpa_supplicant *wpa_s) in wpas_notify_wps_event_pbc_overlap() argument
358 if (wpa_s->p2p_mgmt) in wpas_notify_wps_event_pbc_overlap()
362 wpas_dbus_signal_wps_event_pbc_overlap(wpa_s); in wpas_notify_wps_event_pbc_overlap()
364 wpas_hidl_notify_wps_event_pbc_overlap(wpa_s); in wpas_notify_wps_event_pbc_overlap()
369 void wpas_notify_network_added(struct wpa_supplicant *wpa_s, in wpas_notify_network_added() argument
372 if (wpa_s->p2p_mgmt) in wpas_notify_network_added()
381 if (!ssid->p2p_group && wpa_s->global->p2p_group_formation != wpa_s) { in wpas_notify_network_added()
382 wpas_dbus_register_network(wpa_s, ssid); in wpas_notify_network_added()
383 wpas_hidl_register_network(wpa_s, ssid); in wpas_notify_network_added()
388 void wpas_notify_persistent_group_added(struct wpa_supplicant *wpa_s, in wpas_notify_persistent_group_added() argument
392 wpas_dbus_register_persistent_group(wpa_s, ssid); in wpas_notify_persistent_group_added()
393 wpas_hidl_register_network(wpa_s, ssid); in wpas_notify_persistent_group_added()
398 void wpas_notify_persistent_group_removed(struct wpa_supplicant *wpa_s, in wpas_notify_persistent_group_removed() argument
402 wpas_dbus_unregister_persistent_group(wpa_s, ssid->id); in wpas_notify_persistent_group_removed()
403 wpas_hidl_unregister_network(wpa_s, ssid); in wpas_notify_persistent_group_removed()
408 void wpas_notify_network_removed(struct wpa_supplicant *wpa_s, in wpas_notify_network_removed() argument
411 if (wpa_s->next_ssid == ssid) in wpas_notify_network_removed()
412 wpa_s->next_ssid = NULL; in wpas_notify_network_removed()
413 if (wpa_s->wpa) in wpas_notify_network_removed()
414 wpa_sm_pmksa_cache_flush(wpa_s->wpa, ssid); in wpas_notify_network_removed()
415 if (!ssid->p2p_group && wpa_s->global->p2p_group_formation != wpa_s && in wpas_notify_network_removed()
416 !wpa_s->p2p_mgmt) { in wpas_notify_network_removed()
417 wpas_dbus_unregister_network(wpa_s, ssid->id); in wpas_notify_network_removed()
418 wpas_hidl_unregister_network(wpa_s, ssid); in wpas_notify_network_removed()
421 wpas_notify_persistent_group_removed(wpa_s, ssid); in wpas_notify_network_removed()
423 wpas_p2p_network_removed(wpa_s, ssid); in wpas_notify_network_removed()
427 void wpas_notify_bss_added(struct wpa_supplicant *wpa_s, in wpas_notify_bss_added() argument
430 if (wpa_s->p2p_mgmt) in wpas_notify_bss_added()
433 wpas_dbus_register_bss(wpa_s, bssid, id); in wpas_notify_bss_added()
434 wpa_msg_ctrl(wpa_s, MSG_INFO, WPA_EVENT_BSS_ADDED "%u " MACSTR, in wpas_notify_bss_added()
439 void wpas_notify_bss_removed(struct wpa_supplicant *wpa_s, in wpas_notify_bss_removed() argument
442 if (wpa_s->p2p_mgmt) in wpas_notify_bss_removed()
445 wpas_dbus_unregister_bss(wpa_s, bssid, id); in wpas_notify_bss_removed()
446 wpa_msg_ctrl(wpa_s, MSG_INFO, WPA_EVENT_BSS_REMOVED "%u " MACSTR, in wpas_notify_bss_removed()
451 void wpas_notify_bss_freq_changed(struct wpa_supplicant *wpa_s, in wpas_notify_bss_freq_changed() argument
454 if (wpa_s->p2p_mgmt) in wpas_notify_bss_freq_changed()
457 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_FREQ, id); in wpas_notify_bss_freq_changed()
461 void wpas_notify_bss_signal_changed(struct wpa_supplicant *wpa_s, in wpas_notify_bss_signal_changed() argument
464 if (wpa_s->p2p_mgmt) in wpas_notify_bss_signal_changed()
467 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_SIGNAL, in wpas_notify_bss_signal_changed()
472 void wpas_notify_bss_privacy_changed(struct wpa_supplicant *wpa_s, in wpas_notify_bss_privacy_changed() argument
475 if (wpa_s->p2p_mgmt) in wpas_notify_bss_privacy_changed()
478 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_PRIVACY, in wpas_notify_bss_privacy_changed()
483 void wpas_notify_bss_mode_changed(struct wpa_supplicant *wpa_s, in wpas_notify_bss_mode_changed() argument
486 if (wpa_s->p2p_mgmt) in wpas_notify_bss_mode_changed()
489 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_MODE, id); in wpas_notify_bss_mode_changed()
493 void wpas_notify_bss_wpaie_changed(struct wpa_supplicant *wpa_s, in wpas_notify_bss_wpaie_changed() argument
496 if (wpa_s->p2p_mgmt) in wpas_notify_bss_wpaie_changed()
499 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_WPA, id); in wpas_notify_bss_wpaie_changed()
503 void wpas_notify_bss_rsnie_changed(struct wpa_supplicant *wpa_s, in wpas_notify_bss_rsnie_changed() argument
506 if (wpa_s->p2p_mgmt) in wpas_notify_bss_rsnie_changed()
509 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_RSN, id); in wpas_notify_bss_rsnie_changed()
513 void wpas_notify_bss_wps_changed(struct wpa_supplicant *wpa_s, in wpas_notify_bss_wps_changed() argument
516 if (wpa_s->p2p_mgmt) in wpas_notify_bss_wps_changed()
520 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_WPS, id); in wpas_notify_bss_wps_changed()
525 void wpas_notify_bss_ies_changed(struct wpa_supplicant *wpa_s, in wpas_notify_bss_ies_changed() argument
528 if (wpa_s->p2p_mgmt) in wpas_notify_bss_ies_changed()
531 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_IES, id); in wpas_notify_bss_ies_changed()
535 void wpas_notify_bss_rates_changed(struct wpa_supplicant *wpa_s, in wpas_notify_bss_rates_changed() argument
538 if (wpa_s->p2p_mgmt) in wpas_notify_bss_rates_changed()
541 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_RATES, id); in wpas_notify_bss_rates_changed()
545 void wpas_notify_bss_seen(struct wpa_supplicant *wpa_s, unsigned int id) in wpas_notify_bss_seen() argument
547 if (wpa_s->p2p_mgmt) in wpas_notify_bss_seen()
550 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_AGE, id); in wpas_notify_bss_seen()
554 void wpas_notify_blob_added(struct wpa_supplicant *wpa_s, const char *name) in wpas_notify_blob_added() argument
556 if (wpa_s->p2p_mgmt) in wpas_notify_blob_added()
559 wpas_dbus_signal_blob_added(wpa_s, name); in wpas_notify_blob_added()
563 void wpas_notify_blob_removed(struct wpa_supplicant *wpa_s, const char *name) in wpas_notify_blob_removed() argument
565 if (wpa_s->p2p_mgmt) in wpas_notify_blob_removed()
568 wpas_dbus_signal_blob_removed(wpa_s, name); in wpas_notify_blob_removed()
592 struct wpa_supplicant *wpa_s; in wpas_notify_suspend() local
596 for (wpa_s = global->ifaces; wpa_s; wpa_s = wpa_s->next) in wpas_notify_suspend()
597 wpa_drv_suspend(wpa_s); in wpas_notify_suspend()
605 struct wpa_supplicant *wpa_s; in wpas_notify_resume() local
616 for (wpa_s = global->ifaces; wpa_s; wpa_s = wpa_s->next) { in wpas_notify_resume()
617 wpa_drv_resume(wpa_s); in wpas_notify_resume()
618 if (wpa_s->wpa_state == WPA_DISCONNECTED) in wpas_notify_resume()
619 wpa_supplicant_req_scan(wpa_s, 0, 100000); in wpas_notify_resume()
626 void wpas_notify_p2p_find_stopped(struct wpa_supplicant *wpa_s) in wpas_notify_p2p_find_stopped() argument
629 wpas_dbus_signal_p2p_find_stopped(wpa_s); in wpas_notify_p2p_find_stopped()
631 wpas_hidl_notify_p2p_find_stopped(wpa_s); in wpas_notify_p2p_find_stopped()
635 void wpas_notify_p2p_device_found(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_device_found() argument
642 wpas_dbus_register_peer(wpa_s, info->p2p_device_addr); in wpas_notify_p2p_device_found()
646 wpas_dbus_signal_peer_device_found(wpa_s, info->p2p_device_addr); in wpas_notify_p2p_device_found()
648 wpas_hidl_notify_p2p_device_found(wpa_s, addr, info, in wpas_notify_p2p_device_found()
654 void wpas_notify_p2p_device_lost(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_device_lost() argument
657 wpas_dbus_unregister_peer(wpa_s, dev_addr); in wpas_notify_p2p_device_lost()
660 wpas_dbus_signal_peer_device_lost(wpa_s, dev_addr); in wpas_notify_p2p_device_lost()
662 wpas_hidl_notify_p2p_device_lost(wpa_s, dev_addr); in wpas_notify_p2p_device_lost()
666 void wpas_notify_p2p_group_removed(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_group_removed() argument
670 wpas_dbus_signal_p2p_group_removed(wpa_s, role); in wpas_notify_p2p_group_removed()
672 wpas_dbus_unregister_p2p_group(wpa_s, ssid); in wpas_notify_p2p_group_removed()
674 wpas_hidl_notify_p2p_group_removed(wpa_s, ssid, role); in wpas_notify_p2p_group_removed()
678 void wpas_notify_p2p_go_neg_req(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_go_neg_req() argument
681 wpas_dbus_signal_p2p_go_neg_req(wpa_s, src, dev_passwd_id, go_intent); in wpas_notify_p2p_go_neg_req()
683 wpas_hidl_notify_p2p_go_neg_req(wpa_s, src, dev_passwd_id, go_intent); in wpas_notify_p2p_go_neg_req()
687 void wpas_notify_p2p_go_neg_completed(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_go_neg_completed() argument
690 wpas_dbus_signal_p2p_go_neg_resp(wpa_s, res); in wpas_notify_p2p_go_neg_completed()
692 wpas_hidl_notify_p2p_go_neg_completed(wpa_s, res); in wpas_notify_p2p_go_neg_completed()
696 void wpas_notify_p2p_invitation_result(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_invitation_result() argument
699 wpas_dbus_signal_p2p_invitation_result(wpa_s, status, bssid); in wpas_notify_p2p_invitation_result()
701 wpas_hidl_notify_p2p_invitation_result(wpa_s, status, bssid); in wpas_notify_p2p_invitation_result()
705 void wpas_notify_p2p_sd_request(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_sd_request() argument
710 wpas_dbus_signal_p2p_sd_request(wpa_s, freq, sa, dialog_token, in wpas_notify_p2p_sd_request()
715 void wpas_notify_p2p_sd_response(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_sd_response() argument
719 wpas_dbus_signal_p2p_sd_response(wpa_s, sa, update_indic, in wpas_notify_p2p_sd_response()
722 wpas_hidl_notify_p2p_sd_response(wpa_s, sa, update_indic, in wpas_notify_p2p_sd_response()
740 void wpas_notify_p2p_provision_discovery(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_provision_discovery() argument
746 wpas_dbus_signal_p2p_provision_discovery(wpa_s, dev_addr, request, in wpas_notify_p2p_provision_discovery()
750 wpas_hidl_notify_p2p_provision_discovery(wpa_s, dev_addr, request, in wpas_notify_p2p_provision_discovery()
757 void wpas_notify_p2p_group_started(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_group_started() argument
762 wpas_dbus_register_p2p_group(wpa_s, ssid); in wpas_notify_p2p_group_started()
764 wpas_dbus_signal_p2p_group_started(wpa_s, client, persistent, ip); in wpas_notify_p2p_group_started()
766 wpas_hidl_notify_p2p_group_started(wpa_s, ssid, persistent, client); in wpas_notify_p2p_group_started()
770 void wpas_notify_p2p_group_formation_failure(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_group_formation_failure() argument
774 wpas_dbus_signal_p2p_group_formation_failure(wpa_s, reason); in wpas_notify_p2p_group_formation_failure()
776 wpas_hidl_notify_p2p_group_formation_failure(wpa_s, reason); in wpas_notify_p2p_group_formation_failure()
780 void wpas_notify_p2p_wps_failed(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_wps_failed() argument
783 wpas_dbus_signal_p2p_wps_failed(wpa_s, fail); in wpas_notify_p2p_wps_failed()
787 void wpas_notify_p2p_invitation_received(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_invitation_received() argument
792 wpas_dbus_signal_p2p_invitation_received(wpa_s, sa, go_dev_addr, bssid, in wpas_notify_p2p_invitation_received()
795 wpas_hidl_notify_p2p_invitation_received(wpa_s, sa, go_dev_addr, bssid, in wpas_notify_p2p_invitation_received()
802 static void wpas_notify_ap_sta_authorized(struct wpa_supplicant *wpa_s, in wpas_notify_ap_sta_authorized() argument
807 wpas_p2p_notify_ap_sta_authorized(wpa_s, p2p_dev_addr); in wpas_notify_ap_sta_authorized()
814 wpas_dbus_signal_p2p_peer_joined(wpa_s, p2p_dev_addr); in wpas_notify_ap_sta_authorized()
818 wpas_dbus_register_sta(wpa_s, sta); in wpas_notify_ap_sta_authorized()
821 wpas_dbus_signal_sta_authorized(wpa_s, sta); in wpas_notify_ap_sta_authorized()
823 wpas_hidl_notify_ap_sta_authorized(wpa_s, sta, p2p_dev_addr); in wpas_notify_ap_sta_authorized()
827 static void wpas_notify_ap_sta_deauthorized(struct wpa_supplicant *wpa_s, in wpas_notify_ap_sta_deauthorized() argument
837 wpas_dbus_signal_p2p_peer_disconnected(wpa_s, p2p_dev_addr); in wpas_notify_ap_sta_deauthorized()
841 wpas_dbus_signal_sta_deauthorized(wpa_s, sta); in wpas_notify_ap_sta_deauthorized()
843 wpas_hidl_notify_ap_sta_deauthorized(wpa_s, sta, p2p_dev_addr); in wpas_notify_ap_sta_deauthorized()
845 wpas_dbus_unregister_sta(wpa_s, sta); in wpas_notify_ap_sta_deauthorized()
849 void wpas_notify_sta_authorized(struct wpa_supplicant *wpa_s, in wpas_notify_sta_authorized() argument
854 wpas_notify_ap_sta_authorized(wpa_s, mac_addr, p2p_dev_addr); in wpas_notify_sta_authorized()
856 wpas_notify_ap_sta_deauthorized(wpa_s, mac_addr, p2p_dev_addr); in wpas_notify_sta_authorized()
860 void wpas_notify_certification(struct wpa_supplicant *wpa_s, int depth, in wpas_notify_certification() argument
865 wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_EAP_PEER_CERT in wpas_notify_certification()
877 wpa_msg_ctrl(wpa_s, MSG_INFO, in wpas_notify_certification()
889 wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_EAP_PEER_ALT in wpas_notify_certification()
894 wpas_dbus_signal_certification(wpa_s, depth, subject, altsubject, in wpas_notify_certification()
899 void wpas_notify_preq(struct wpa_supplicant *wpa_s, in wpas_notify_preq() argument
904 wpas_dbus_signal_preq(wpa_s, addr, dst, bssid, ie, ie_len, ssi_signal); in wpas_notify_preq()
909 void wpas_notify_eap_status(struct wpa_supplicant *wpa_s, const char *status, in wpas_notify_eap_status() argument
912 wpas_dbus_signal_eap_status(wpa_s, status, parameter); in wpas_notify_eap_status()
913 wpa_msg_ctrl(wpa_s, MSG_INFO, WPA_EVENT_EAP_STATUS in wpas_notify_eap_status()
919 void wpas_notify_eap_error(struct wpa_supplicant *wpa_s, int error_code) in wpas_notify_eap_error() argument
921 wpa_dbg(wpa_s, MSG_ERROR, in wpas_notify_eap_error()
923 wpas_hidl_notify_eap_error(wpa_s, error_code); in wpas_notify_eap_error()
927 void wpas_notify_network_bssid_set_changed(struct wpa_supplicant *wpa_s, in wpas_notify_network_bssid_set_changed() argument
930 if (wpa_s->current_ssid != ssid) in wpas_notify_network_bssid_set_changed()
933 wpa_dbg(wpa_s, MSG_DEBUG, in wpas_notify_network_bssid_set_changed()
937 wpa_drv_roaming(wpa_s, !ssid->bssid_set, in wpas_notify_network_bssid_set_changed()
942 void wpas_notify_network_type_changed(struct wpa_supplicant *wpa_s, in wpas_notify_network_type_changed() argument
949 wpas_dbus_unregister_network(wpa_s, ssid->id); in wpas_notify_network_type_changed()
952 wpas_dbus_register_persistent_group(wpa_s, ssid); in wpas_notify_network_type_changed()
955 wpas_dbus_unregister_persistent_group(wpa_s, ssid->id); in wpas_notify_network_type_changed()
957 wpas_dbus_register_network(wpa_s, ssid); in wpas_notify_network_type_changed()
962 void wpas_notify_anqp_query_done(struct wpa_supplicant *wpa_s, const u8* bssid, in wpas_notify_anqp_query_done() argument
967 if (!wpa_s || !bssid || !anqp) in wpas_notify_anqp_query_done()
970 wpas_hidl_notify_anqp_query_done(wpa_s, bssid, result, anqp); in wpas_notify_anqp_query_done()
974 void wpas_notify_hs20_icon_query_done(struct wpa_supplicant *wpa_s, const u8* bssid, in wpas_notify_hs20_icon_query_done() argument
979 if (!wpa_s || !bssid || !file_name || !image) in wpas_notify_hs20_icon_query_done()
982 wpas_hidl_notify_hs20_icon_query_done(wpa_s, bssid, file_name, image, in wpas_notify_hs20_icon_query_done()
987 void wpas_notify_hs20_rx_subscription_remediation(struct wpa_supplicant *wpa_s, in wpas_notify_hs20_rx_subscription_remediation() argument
992 if (!wpa_s || !url) in wpas_notify_hs20_rx_subscription_remediation()
995 wpas_hidl_notify_hs20_rx_subscription_remediation(wpa_s, url, osu_method); in wpas_notify_hs20_rx_subscription_remediation()
999 void wpas_notify_hs20_rx_deauth_imminent_notice(struct wpa_supplicant *wpa_s, in wpas_notify_hs20_rx_deauth_imminent_notice() argument
1004 if (!wpa_s || !url) in wpas_notify_hs20_rx_deauth_imminent_notice()
1007 wpas_hidl_notify_hs20_rx_deauth_imminent_notice(wpa_s, code, reauth_delay, in wpas_notify_hs20_rx_deauth_imminent_notice()
1015 void wpas_notify_mesh_group_started(struct wpa_supplicant *wpa_s, in wpas_notify_mesh_group_started() argument
1018 if (wpa_s->p2p_mgmt) in wpas_notify_mesh_group_started()
1021 wpas_dbus_signal_mesh_group_started(wpa_s, ssid); in wpas_notify_mesh_group_started()
1025 void wpas_notify_mesh_group_removed(struct wpa_supplicant *wpa_s, in wpas_notify_mesh_group_removed() argument
1029 if (wpa_s->p2p_mgmt) in wpas_notify_mesh_group_removed()
1032 wpas_dbus_signal_mesh_group_removed(wpa_s, meshid, meshid_len, in wpas_notify_mesh_group_removed()
1037 void wpas_notify_mesh_peer_connected(struct wpa_supplicant *wpa_s, in wpas_notify_mesh_peer_connected() argument
1040 if (wpa_s->p2p_mgmt) in wpas_notify_mesh_peer_connected()
1043 wpas_dbus_signal_mesh_peer_connected(wpa_s, peer_addr); in wpas_notify_mesh_peer_connected()
1047 void wpas_notify_mesh_peer_disconnected(struct wpa_supplicant *wpa_s, in wpas_notify_mesh_peer_disconnected() argument
1050 if (wpa_s->p2p_mgmt) in wpas_notify_mesh_peer_disconnected()
1053 wpas_dbus_signal_mesh_peer_disconnected(wpa_s, peer_addr, reason_code); in wpas_notify_mesh_peer_disconnected()
1064 void wpas_notify_dpp_config_received(struct wpa_supplicant *wpa_s, in wpas_notify_dpp_config_received() argument
1068 if (!wpa_s) in wpas_notify_dpp_config_received()
1071 wpas_hidl_notify_dpp_config_received(wpa_s, ssid); in wpas_notify_dpp_config_received()
1075 void wpas_notify_dpp_config_sent(struct wpa_supplicant *wpa_s) in wpas_notify_dpp_config_sent() argument
1078 if (!wpa_s) in wpas_notify_dpp_config_sent()
1081 wpas_hidl_notify_dpp_config_sent(wpa_s); in wpas_notify_dpp_config_sent()
1086 void wpas_notify_dpp_auth_success(struct wpa_supplicant *wpa_s) in wpas_notify_dpp_auth_success() argument
1089 if (!wpa_s) in wpas_notify_dpp_auth_success()
1092 wpas_hidl_notify_dpp_auth_success(wpa_s); in wpas_notify_dpp_auth_success()
1096 void wpas_notify_dpp_resp_pending(struct wpa_supplicant *wpa_s) in wpas_notify_dpp_resp_pending() argument
1099 if (!wpa_s) in wpas_notify_dpp_resp_pending()
1102 wpas_hidl_notify_dpp_resp_pending(wpa_s); in wpas_notify_dpp_resp_pending()
1107 void wpas_notify_dpp_not_compatible(struct wpa_supplicant *wpa_s) in wpas_notify_dpp_not_compatible() argument
1110 if (!wpa_s) in wpas_notify_dpp_not_compatible()
1113 wpas_hidl_notify_dpp_not_compatible(wpa_s); in wpas_notify_dpp_not_compatible()
1117 void wpas_notify_dpp_missing_auth(struct wpa_supplicant *wpa_s) in wpas_notify_dpp_missing_auth() argument
1120 if (!wpa_s) in wpas_notify_dpp_missing_auth()
1123 wpas_hidl_notify_dpp_missing_auth(wpa_s); in wpas_notify_dpp_missing_auth()
1127 void wpas_notify_dpp_configuration_failure(struct wpa_supplicant *wpa_s) in wpas_notify_dpp_configuration_failure() argument
1130 if (!wpa_s) in wpas_notify_dpp_configuration_failure()
1133 wpas_hidl_notify_dpp_configuration_failure(wpa_s); in wpas_notify_dpp_configuration_failure()
1137 void wpas_notify_dpp_timeout(struct wpa_supplicant *wpa_s) in wpas_notify_dpp_timeout() argument
1140 if (!wpa_s) in wpas_notify_dpp_timeout()
1143 wpas_hidl_notify_dpp_timeout(wpa_s); in wpas_notify_dpp_timeout()
1147 void wpas_notify_dpp_auth_failure(struct wpa_supplicant *wpa_s) in wpas_notify_dpp_auth_failure() argument
1150 if (!wpa_s) in wpas_notify_dpp_auth_failure()
1153 wpas_hidl_notify_dpp_auth_failure(wpa_s); in wpas_notify_dpp_auth_failure()
1157 void wpas_notify_dpp_failure(struct wpa_supplicant *wpa_s) in wpas_notify_dpp_failure() argument
1160 if (!wpa_s) in wpas_notify_dpp_failure()
1163 wpas_hidl_notify_dpp_fail(wpa_s); in wpas_notify_dpp_failure()