Lines Matching refs:wpa_s

64 int wpas_notify_iface_added(struct wpa_supplicant *wpa_s)  in wpas_notify_iface_added()  argument
66 if (wpa_s->p2p_mgmt) in wpas_notify_iface_added()
69 if (wpas_dbus_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()
82 wpas_dbus_unregister_interface(wpa_s); in wpas_notify_iface_removed()
86 void wpas_notify_state_changed(struct wpa_supplicant *wpa_s, in wpas_notify_state_changed() argument
90 if (wpa_s->p2p_mgmt) in wpas_notify_state_changed()
94 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_STATE); in wpas_notify_state_changed()
97 if (wpa_s->fst && !is_zero_ether_addr(wpa_s->bssid)) { in wpas_notify_state_changed()
99 fst_notify_peer_connected(wpa_s->fst, wpa_s->bssid); in wpas_notify_state_changed()
102 fst_notify_peer_disconnected(wpa_s->fst, wpa_s->bssid); in wpas_notify_state_changed()
107 wpas_p2p_notif_connected(wpa_s); in wpas_notify_state_changed()
109 wpas_p2p_notif_disconnected(wpa_s); in wpas_notify_state_changed()
111 sme_state_changed(wpa_s); in wpas_notify_state_changed()
114 wpa_msg_ctrl(wpa_s, MSG_INFO, WPA_EVENT_STATE_CHANGE in wpas_notify_state_changed()
116 wpa_s->current_ssid ? wpa_s->current_ssid->id : -1, in wpas_notify_state_changed()
118 MAC2STR(wpa_s->bssid), in wpas_notify_state_changed()
119 wpa_s->current_ssid && wpa_s->current_ssid->ssid ? in wpas_notify_state_changed()
120 wpa_ssid_txt(wpa_s->current_ssid->ssid, in wpas_notify_state_changed()
121 wpa_s->current_ssid->ssid_len) : ""); in wpas_notify_state_changed()
126 void wpas_notify_disconnect_reason(struct wpa_supplicant *wpa_s) in wpas_notify_disconnect_reason() argument
128 if (wpa_s->p2p_mgmt) in wpas_notify_disconnect_reason()
131 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_DISCONNECT_REASON); in wpas_notify_disconnect_reason()
135 void wpas_notify_auth_status_code(struct wpa_supplicant *wpa_s) in wpas_notify_auth_status_code() argument
137 if (wpa_s->p2p_mgmt) in wpas_notify_auth_status_code()
140 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_AUTH_STATUS_CODE); in wpas_notify_auth_status_code()
144 void wpas_notify_assoc_status_code(struct wpa_supplicant *wpa_s) in wpas_notify_assoc_status_code() argument
146 if (wpa_s->p2p_mgmt) in wpas_notify_assoc_status_code()
149 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_ASSOC_STATUS_CODE); in wpas_notify_assoc_status_code()
153 void wpas_notify_roam_time(struct wpa_supplicant *wpa_s) in wpas_notify_roam_time() argument
155 if (wpa_s->p2p_mgmt) in wpas_notify_roam_time()
158 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_ROAM_TIME); in wpas_notify_roam_time()
162 void wpas_notify_roam_complete(struct wpa_supplicant *wpa_s) in wpas_notify_roam_complete() argument
164 if (wpa_s->p2p_mgmt) in wpas_notify_roam_complete()
167 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_ROAM_COMPLETE); in wpas_notify_roam_complete()
171 void wpas_notify_session_length(struct wpa_supplicant *wpa_s) in wpas_notify_session_length() argument
173 if (wpa_s->p2p_mgmt) in wpas_notify_session_length()
176 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_SESSION_LENGTH); in wpas_notify_session_length()
180 void wpas_notify_bss_tm_status(struct wpa_supplicant *wpa_s) in wpas_notify_bss_tm_status() argument
182 if (wpa_s->p2p_mgmt) in wpas_notify_bss_tm_status()
185 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_BSS_TM_STATUS); in wpas_notify_bss_tm_status()
189 void wpas_notify_network_changed(struct wpa_supplicant *wpa_s) in wpas_notify_network_changed() argument
191 if (wpa_s->p2p_mgmt) in wpas_notify_network_changed()
194 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_CURRENT_NETWORK); in wpas_notify_network_changed()
198 void wpas_notify_ap_scan_changed(struct wpa_supplicant *wpa_s) in wpas_notify_ap_scan_changed() argument
200 if (wpa_s->p2p_mgmt) in wpas_notify_ap_scan_changed()
203 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_AP_SCAN); in wpas_notify_ap_scan_changed()
207 void wpas_notify_bssid_changed(struct wpa_supplicant *wpa_s) in wpas_notify_bssid_changed() argument
209 if (wpa_s->p2p_mgmt) in wpas_notify_bssid_changed()
212 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_CURRENT_BSS); in wpas_notify_bssid_changed()
216 void wpas_notify_mac_address_changed(struct wpa_supplicant *wpa_s) in wpas_notify_mac_address_changed() argument
218 if (wpa_s->p2p_mgmt) in wpas_notify_mac_address_changed()
221 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_MAC_ADDRESS); in wpas_notify_mac_address_changed()
225 void wpas_notify_auth_changed(struct wpa_supplicant *wpa_s) in wpas_notify_auth_changed() argument
227 if (wpa_s->p2p_mgmt) in wpas_notify_auth_changed()
230 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_CURRENT_AUTH_MODE); in wpas_notify_auth_changed()
234 void wpas_notify_network_enabled_changed(struct wpa_supplicant *wpa_s, in wpas_notify_network_enabled_changed() argument
237 if (wpa_s->p2p_mgmt) in wpas_notify_network_enabled_changed()
240 wpas_dbus_signal_network_enabled_changed(wpa_s, ssid); in wpas_notify_network_enabled_changed()
244 void wpas_notify_network_selected(struct wpa_supplicant *wpa_s, in wpas_notify_network_selected() argument
247 if (wpa_s->p2p_mgmt) in wpas_notify_network_selected()
250 wpas_dbus_signal_network_selected(wpa_s, ssid->id); in wpas_notify_network_selected()
254 void wpas_notify_network_request(struct wpa_supplicant *wpa_s, in wpas_notify_network_request() argument
259 if (wpa_s->p2p_mgmt) in wpas_notify_network_request()
262 wpas_dbus_signal_network_request(wpa_s, ssid, rtype, default_txt); in wpas_notify_network_request()
266 void wpas_notify_scanning(struct wpa_supplicant *wpa_s) in wpas_notify_scanning() argument
268 if (wpa_s->p2p_mgmt) in wpas_notify_scanning()
272 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_SCANNING); in wpas_notify_scanning()
276 void wpas_notify_scan_done(struct wpa_supplicant *wpa_s, int success) in wpas_notify_scan_done() argument
278 if (wpa_s->p2p_mgmt) in wpas_notify_scan_done()
281 wpas_dbus_signal_scan_done(wpa_s, success); in wpas_notify_scan_done()
285 void wpas_notify_scan_results(struct wpa_supplicant *wpa_s) in wpas_notify_scan_results() argument
287 if (wpa_s->p2p_mgmt) in wpas_notify_scan_results()
290 wpas_wps_notify_scan_results(wpa_s); in wpas_notify_scan_results()
294 void wpas_notify_wps_credential(struct wpa_supplicant *wpa_s, in wpas_notify_wps_credential() argument
297 if (wpa_s->p2p_mgmt) in wpas_notify_wps_credential()
302 wpas_dbus_signal_wps_cred(wpa_s, cred); in wpas_notify_wps_credential()
307 void wpas_notify_wps_event_m2d(struct wpa_supplicant *wpa_s, in wpas_notify_wps_event_m2d() argument
310 if (wpa_s->p2p_mgmt) in wpas_notify_wps_event_m2d()
314 wpas_dbus_signal_wps_event_m2d(wpa_s, m2d); in wpas_notify_wps_event_m2d()
319 void wpas_notify_wps_event_fail(struct wpa_supplicant *wpa_s, in wpas_notify_wps_event_fail() argument
322 if (wpa_s->p2p_mgmt) in wpas_notify_wps_event_fail()
326 wpas_dbus_signal_wps_event_fail(wpa_s, fail); in wpas_notify_wps_event_fail()
331 void wpas_notify_wps_event_success(struct wpa_supplicant *wpa_s) in wpas_notify_wps_event_success() argument
333 if (wpa_s->p2p_mgmt) in wpas_notify_wps_event_success()
337 wpas_dbus_signal_wps_event_success(wpa_s); in wpas_notify_wps_event_success()
341 void wpas_notify_wps_event_pbc_overlap(struct wpa_supplicant *wpa_s) in wpas_notify_wps_event_pbc_overlap() argument
343 if (wpa_s->p2p_mgmt) in wpas_notify_wps_event_pbc_overlap()
347 wpas_dbus_signal_wps_event_pbc_overlap(wpa_s); in wpas_notify_wps_event_pbc_overlap()
352 void wpas_notify_network_added(struct wpa_supplicant *wpa_s, in wpas_notify_network_added() argument
355 if (wpa_s->p2p_mgmt) in wpas_notify_network_added()
364 if (!ssid->p2p_group && wpa_s->global->p2p_group_formation != wpa_s) { in wpas_notify_network_added()
365 wpas_dbus_register_network(wpa_s, ssid); in wpas_notify_network_added()
366 wpa_msg_ctrl(wpa_s, MSG_INFO, WPA_EVENT_NETWORK_ADDED "%d", in wpas_notify_network_added()
372 void wpas_notify_persistent_group_added(struct wpa_supplicant *wpa_s, in wpas_notify_persistent_group_added() argument
376 wpas_dbus_register_persistent_group(wpa_s, ssid); in wpas_notify_persistent_group_added()
381 void wpas_notify_persistent_group_removed(struct wpa_supplicant *wpa_s, in wpas_notify_persistent_group_removed() argument
385 wpas_dbus_unregister_persistent_group(wpa_s, ssid->id); in wpas_notify_persistent_group_removed()
390 void wpas_notify_network_removed(struct wpa_supplicant *wpa_s, in wpas_notify_network_removed() argument
393 if (wpa_s->next_ssid == ssid) in wpas_notify_network_removed()
394 wpa_s->next_ssid = NULL; in wpas_notify_network_removed()
395 if (wpa_s->last_ssid == ssid) in wpas_notify_network_removed()
396 wpa_s->last_ssid = NULL; in wpas_notify_network_removed()
397 if (wpa_s->current_ssid == ssid) in wpas_notify_network_removed()
398 wpa_s->current_ssid = NULL; in wpas_notify_network_removed()
399 if (wpa_s->ml_connect_probe_ssid == ssid) { in wpas_notify_network_removed()
400 wpa_s->ml_connect_probe_ssid = NULL; in wpas_notify_network_removed()
401 wpa_s->ml_connect_probe_bss = NULL; in wpas_notify_network_removed()
403 if (wpa_s->connect_without_scan == ssid) in wpas_notify_network_removed()
404 wpa_s->connect_without_scan = NULL; in wpas_notify_network_removed()
406 if (wpa_s->sme.ext_auth_wpa_ssid == ssid) in wpas_notify_network_removed()
407 wpa_s->sme.ext_auth_wpa_ssid = NULL; in wpas_notify_network_removed()
409 if (wpa_s->wpa) { in wpas_notify_network_removed()
411 (wpa_s->drv_flags2 & WPA_DRIVER_FLAGS2_SAE_OFFLOAD_STA)) || in wpas_notify_network_removed()
413 (wpa_s->drv_flags2 & WPA_DRIVER_FLAGS2_OWE_OFFLOAD_STA))) { in wpas_notify_network_removed()
420 wpa_drv_remove_pmkid(wpa_s, &params); in wpas_notify_network_removed()
422 wpa_sm_pmksa_cache_flush(wpa_s->wpa, ssid); in wpas_notify_network_removed()
424 if (!ssid->p2p_group && wpa_s->global->p2p_group_formation != wpa_s && in wpas_notify_network_removed()
425 !wpa_s->p2p_mgmt) { in wpas_notify_network_removed()
426 wpas_dbus_unregister_network(wpa_s, ssid->id); in wpas_notify_network_removed()
427 wpa_msg_ctrl(wpa_s, MSG_INFO, WPA_EVENT_NETWORK_REMOVED "%d", in wpas_notify_network_removed()
431 wpas_notify_persistent_group_removed(wpa_s, ssid); in wpas_notify_network_removed()
433 wpas_p2p_network_removed(wpa_s, ssid); in wpas_notify_network_removed()
437 void wpas_notify_bss_added(struct wpa_supplicant *wpa_s, in wpas_notify_bss_added() argument
440 if (wpa_s->p2p_mgmt) in wpas_notify_bss_added()
443 wpas_dbus_register_bss(wpa_s, bssid, id); in wpas_notify_bss_added()
444 wpa_msg_ctrl(wpa_s, MSG_INFO, WPA_EVENT_BSS_ADDED "%u " MACSTR, in wpas_notify_bss_added()
449 void wpas_notify_bss_removed(struct wpa_supplicant *wpa_s, in wpas_notify_bss_removed() argument
452 if (wpa_s->p2p_mgmt) in wpas_notify_bss_removed()
455 wpas_dbus_unregister_bss(wpa_s, bssid, id); in wpas_notify_bss_removed()
456 wpa_msg_ctrl(wpa_s, MSG_INFO, WPA_EVENT_BSS_REMOVED "%u " MACSTR, in wpas_notify_bss_removed()
461 void wpas_notify_bss_freq_changed(struct wpa_supplicant *wpa_s, in wpas_notify_bss_freq_changed() argument
464 if (wpa_s->p2p_mgmt) in wpas_notify_bss_freq_changed()
467 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_FREQ, id); in wpas_notify_bss_freq_changed()
471 void wpas_notify_bss_signal_changed(struct wpa_supplicant *wpa_s, in wpas_notify_bss_signal_changed() argument
474 if (wpa_s->p2p_mgmt) in wpas_notify_bss_signal_changed()
477 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_SIGNAL, in wpas_notify_bss_signal_changed()
482 void wpas_notify_bss_privacy_changed(struct wpa_supplicant *wpa_s, in wpas_notify_bss_privacy_changed() argument
485 if (wpa_s->p2p_mgmt) in wpas_notify_bss_privacy_changed()
488 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_PRIVACY, in wpas_notify_bss_privacy_changed()
493 void wpas_notify_bss_mode_changed(struct wpa_supplicant *wpa_s, in wpas_notify_bss_mode_changed() argument
496 if (wpa_s->p2p_mgmt) in wpas_notify_bss_mode_changed()
499 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_MODE, id); in wpas_notify_bss_mode_changed()
503 void wpas_notify_bss_wpaie_changed(struct wpa_supplicant *wpa_s, in wpas_notify_bss_wpaie_changed() argument
506 if (wpa_s->p2p_mgmt) in wpas_notify_bss_wpaie_changed()
509 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_WPA, id); in wpas_notify_bss_wpaie_changed()
513 void wpas_notify_bss_rsnie_changed(struct wpa_supplicant *wpa_s, in wpas_notify_bss_rsnie_changed() argument
516 if (wpa_s->p2p_mgmt) in wpas_notify_bss_rsnie_changed()
519 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_RSN, id); in wpas_notify_bss_rsnie_changed()
523 void wpas_notify_bss_wps_changed(struct wpa_supplicant *wpa_s, in wpas_notify_bss_wps_changed() argument
526 if (wpa_s->p2p_mgmt) in wpas_notify_bss_wps_changed()
530 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_WPS, id); in wpas_notify_bss_wps_changed()
535 void wpas_notify_bss_ies_changed(struct wpa_supplicant *wpa_s, in wpas_notify_bss_ies_changed() argument
538 if (wpa_s->p2p_mgmt) in wpas_notify_bss_ies_changed()
541 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_IES, id); in wpas_notify_bss_ies_changed()
545 void wpas_notify_bss_rates_changed(struct wpa_supplicant *wpa_s, in wpas_notify_bss_rates_changed() argument
548 if (wpa_s->p2p_mgmt) in wpas_notify_bss_rates_changed()
551 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_RATES, id); in wpas_notify_bss_rates_changed()
555 void wpas_notify_bss_seen(struct wpa_supplicant *wpa_s, unsigned int id) in wpas_notify_bss_seen() argument
557 if (wpa_s->p2p_mgmt) in wpas_notify_bss_seen()
560 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_AGE, id); in wpas_notify_bss_seen()
564 void wpas_notify_bss_anqp_changed(struct wpa_supplicant *wpa_s, unsigned int id) in wpas_notify_bss_anqp_changed() argument
566 if (wpa_s->p2p_mgmt) in wpas_notify_bss_anqp_changed()
569 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_ANQP, id); in wpas_notify_bss_anqp_changed()
573 void wpas_notify_blob_added(struct wpa_supplicant *wpa_s, const char *name) in wpas_notify_blob_added() argument
575 if (wpa_s->p2p_mgmt) in wpas_notify_blob_added()
578 wpas_dbus_signal_blob_added(wpa_s, name); in wpas_notify_blob_added()
582 void wpas_notify_blob_removed(struct wpa_supplicant *wpa_s, const char *name) in wpas_notify_blob_removed() argument
584 if (wpa_s->p2p_mgmt) in wpas_notify_blob_removed()
587 wpas_dbus_signal_blob_removed(wpa_s, name); in wpas_notify_blob_removed()
611 struct wpa_supplicant *wpa_s; in wpas_notify_suspend() local
615 for (wpa_s = global->ifaces; wpa_s; wpa_s = wpa_s->next) in wpas_notify_suspend()
616 wpa_drv_suspend(wpa_s); in wpas_notify_suspend()
624 struct wpa_supplicant *wpa_s; in wpas_notify_resume() local
635 for (wpa_s = global->ifaces; wpa_s; wpa_s = wpa_s->next) { in wpas_notify_resume()
636 wpa_drv_resume(wpa_s); in wpas_notify_resume()
637 if (wpa_s->wpa_state == WPA_DISCONNECTED) in wpas_notify_resume()
638 wpa_supplicant_req_scan(wpa_s, 0, 100000); in wpas_notify_resume()
645 void wpas_notify_p2p_find_stopped(struct wpa_supplicant *wpa_s) in wpas_notify_p2p_find_stopped() argument
648 wpas_dbus_signal_p2p_find_stopped(wpa_s); in wpas_notify_p2p_find_stopped()
652 void wpas_notify_p2p_device_found(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_device_found() argument
657 wpas_dbus_register_peer(wpa_s, dev_addr); in wpas_notify_p2p_device_found()
661 wpas_dbus_signal_peer_device_found(wpa_s, dev_addr); in wpas_notify_p2p_device_found()
665 void wpas_notify_p2p_device_lost(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_device_lost() argument
668 wpas_dbus_unregister_peer(wpa_s, dev_addr); in wpas_notify_p2p_device_lost()
671 wpas_dbus_signal_peer_device_lost(wpa_s, dev_addr); in wpas_notify_p2p_device_lost()
675 void wpas_notify_p2p_group_removed(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_group_removed() argument
679 wpas_dbus_signal_p2p_group_removed(wpa_s, role); in wpas_notify_p2p_group_removed()
681 wpas_dbus_unregister_p2p_group(wpa_s, ssid); in wpas_notify_p2p_group_removed()
685 void wpas_notify_p2p_go_neg_req(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_go_neg_req() argument
688 wpas_dbus_signal_p2p_go_neg_req(wpa_s, src, dev_passwd_id, go_intent); in wpas_notify_p2p_go_neg_req()
692 void wpas_notify_p2p_go_neg_completed(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_go_neg_completed() argument
695 wpas_dbus_signal_p2p_go_neg_resp(wpa_s, res); in wpas_notify_p2p_go_neg_completed()
699 void wpas_notify_p2p_invitation_result(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_invitation_result() argument
702 wpas_dbus_signal_p2p_invitation_result(wpa_s, status, bssid); in wpas_notify_p2p_invitation_result()
706 void wpas_notify_p2p_sd_request(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_sd_request() argument
711 wpas_dbus_signal_p2p_sd_request(wpa_s, freq, sa, dialog_token, in wpas_notify_p2p_sd_request()
716 void wpas_notify_p2p_sd_response(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_sd_response() argument
720 wpas_dbus_signal_p2p_sd_response(wpa_s, sa, update_indic, in wpas_notify_p2p_sd_response()
738 void wpas_notify_p2p_provision_discovery(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_provision_discovery() argument
744 wpas_dbus_signal_p2p_provision_discovery(wpa_s, dev_addr, request, in wpas_notify_p2p_provision_discovery()
750 void wpas_notify_p2p_group_started(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_group_started() argument
755 wpas_dbus_register_p2p_group(wpa_s, ssid); in wpas_notify_p2p_group_started()
757 wpas_dbus_signal_p2p_group_started(wpa_s, client, persistent, ip); in wpas_notify_p2p_group_started()
761 void wpas_notify_p2p_group_formation_failure(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_group_formation_failure() argument
765 wpas_dbus_signal_p2p_group_formation_failure(wpa_s, reason); in wpas_notify_p2p_group_formation_failure()
769 void wpas_notify_p2p_wps_failed(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_wps_failed() argument
772 wpas_dbus_signal_p2p_wps_failed(wpa_s, fail); in wpas_notify_p2p_wps_failed()
776 void wpas_notify_p2p_invitation_received(struct wpa_supplicant *wpa_s, in wpas_notify_p2p_invitation_received() argument
781 wpas_dbus_signal_p2p_invitation_received(wpa_s, sa, go_dev_addr, bssid, in wpas_notify_p2p_invitation_received()
788 static void wpas_notify_ap_sta_authorized(struct wpa_supplicant *wpa_s, in wpas_notify_ap_sta_authorized() argument
793 wpas_p2p_notify_ap_sta_authorized(wpa_s, p2p_dev_addr); in wpas_notify_ap_sta_authorized()
800 wpas_dbus_signal_p2p_peer_joined(wpa_s, p2p_dev_addr); in wpas_notify_ap_sta_authorized()
804 wpas_dbus_register_sta(wpa_s, sta); in wpas_notify_ap_sta_authorized()
807 wpas_dbus_signal_sta_authorized(wpa_s, sta); in wpas_notify_ap_sta_authorized()
811 static void wpas_notify_ap_sta_deauthorized(struct wpa_supplicant *wpa_s, in wpas_notify_ap_sta_deauthorized() argument
821 wpas_dbus_signal_p2p_peer_disconnected(wpa_s, p2p_dev_addr); in wpas_notify_ap_sta_deauthorized()
825 wpas_dbus_signal_sta_deauthorized(wpa_s, sta); in wpas_notify_ap_sta_deauthorized()
828 wpas_dbus_unregister_sta(wpa_s, sta); in wpas_notify_ap_sta_deauthorized()
832 void wpas_notify_sta_authorized(struct wpa_supplicant *wpa_s, in wpas_notify_sta_authorized() argument
837 wpas_notify_ap_sta_authorized(wpa_s, mac_addr, p2p_dev_addr, in wpas_notify_sta_authorized()
840 wpas_notify_ap_sta_deauthorized(wpa_s, mac_addr, p2p_dev_addr); in wpas_notify_sta_authorized()
844 void wpas_notify_certification(struct wpa_supplicant *wpa_s, in wpas_notify_certification() argument
850 wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_EAP_PEER_CERT in wpas_notify_certification()
864 wpa_msg_ctrl(wpa_s, MSG_INFO, in wpas_notify_certification()
873 wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_EAP_PEER_ALT in wpas_notify_certification()
877 wpas_dbus_signal_certification(wpa_s, cert->depth, cert->subject, in wpas_notify_certification()
883 void wpas_notify_preq(struct wpa_supplicant *wpa_s, in wpas_notify_preq() argument
888 wpas_dbus_signal_preq(wpa_s, addr, dst, bssid, ie, ie_len, ssi_signal); in wpas_notify_preq()
893 void wpas_notify_eap_status(struct wpa_supplicant *wpa_s, const char *status, in wpas_notify_eap_status() argument
896 wpas_dbus_signal_eap_status(wpa_s, status, parameter); in wpas_notify_eap_status()
897 wpa_msg_ctrl(wpa_s, MSG_INFO, WPA_EVENT_EAP_STATUS in wpas_notify_eap_status()
903 void wpas_notify_eap_error(struct wpa_supplicant *wpa_s, int error_code) in wpas_notify_eap_error() argument
905 wpa_msg(wpa_s, MSG_ERROR, WPA_EVENT_EAP_ERROR_CODE "%d", error_code); in wpas_notify_eap_error()
909 void wpas_notify_psk_mismatch(struct wpa_supplicant *wpa_s) in wpas_notify_psk_mismatch() argument
911 wpas_dbus_signal_psk_mismatch(wpa_s); in wpas_notify_psk_mismatch()
915 void wpas_notify_network_bssid_set_changed(struct wpa_supplicant *wpa_s, in wpas_notify_network_bssid_set_changed() argument
918 if (wpa_s->current_ssid != ssid) in wpas_notify_network_bssid_set_changed()
921 wpa_dbg(wpa_s, MSG_DEBUG, in wpas_notify_network_bssid_set_changed()
925 wpa_drv_roaming(wpa_s, !ssid->bssid_set, in wpas_notify_network_bssid_set_changed()
930 void wpas_notify_network_type_changed(struct wpa_supplicant *wpa_s, in wpas_notify_network_type_changed() argument
937 wpas_dbus_unregister_network(wpa_s, ssid->id); in wpas_notify_network_type_changed()
940 wpas_dbus_register_persistent_group(wpa_s, ssid); in wpas_notify_network_type_changed()
943 wpas_dbus_unregister_persistent_group(wpa_s, ssid->id); in wpas_notify_network_type_changed()
945 wpas_dbus_register_network(wpa_s, ssid); in wpas_notify_network_type_changed()
953 void wpas_notify_mesh_group_started(struct wpa_supplicant *wpa_s, in wpas_notify_mesh_group_started() argument
956 if (wpa_s->p2p_mgmt) in wpas_notify_mesh_group_started()
959 wpas_dbus_signal_mesh_group_started(wpa_s, ssid); in wpas_notify_mesh_group_started()
963 void wpas_notify_mesh_group_removed(struct wpa_supplicant *wpa_s, in wpas_notify_mesh_group_removed() argument
967 if (wpa_s->p2p_mgmt) in wpas_notify_mesh_group_removed()
970 wpas_dbus_signal_mesh_group_removed(wpa_s, meshid, meshid_len, in wpas_notify_mesh_group_removed()
975 void wpas_notify_mesh_peer_connected(struct wpa_supplicant *wpa_s, in wpas_notify_mesh_peer_connected() argument
978 if (wpa_s->p2p_mgmt) in wpas_notify_mesh_peer_connected()
981 wpa_msg(wpa_s, MSG_INFO, MESH_PEER_CONNECTED MACSTR, in wpas_notify_mesh_peer_connected()
983 wpas_dbus_signal_mesh_peer_connected(wpa_s, peer_addr); in wpas_notify_mesh_peer_connected()
987 void wpas_notify_mesh_peer_disconnected(struct wpa_supplicant *wpa_s, in wpas_notify_mesh_peer_disconnected() argument
990 if (wpa_s->p2p_mgmt) in wpas_notify_mesh_peer_disconnected()
993 wpa_msg(wpa_s, MSG_INFO, MESH_PEER_DISCONNECTED MACSTR, in wpas_notify_mesh_peer_disconnected()
995 wpas_dbus_signal_mesh_peer_disconnected(wpa_s, peer_addr, reason_code); in wpas_notify_mesh_peer_disconnected()
1003 void wpas_notify_interworking_ap_added(struct wpa_supplicant *wpa_s, in wpas_notify_interworking_ap_added() argument
1009 wpa_msg(wpa_s, MSG_INFO, "%s" MACSTR " type=%s%s%s%s id=%d priority=%d sp_priority=%d", in wpas_notify_interworking_ap_added()
1017 wpas_dbus_signal_interworking_ap_added(wpa_s, bss, cred, type, excluded, in wpas_notify_interworking_ap_added()
1022 void wpas_notify_interworking_select_done(struct wpa_supplicant *wpa_s) in wpas_notify_interworking_select_done() argument
1024 wpas_dbus_signal_interworking_select_done(wpa_s); in wpas_notify_interworking_select_done()
1028 void wpas_notify_anqp_query_done(struct wpa_supplicant *wpa_s, in wpas_notify_anqp_query_done() argument
1031 wpa_msg(wpa_s, MSG_INFO, ANQP_QUERY_DONE "addr=" MACSTR " result=%s", in wpas_notify_anqp_query_done()
1034 wpas_dbus_signal_anqp_query_done(wpa_s, dst, result); in wpas_notify_anqp_query_done()
1040 void wpas_notify_pmk_cache_added(struct wpa_supplicant *wpa_s, in wpas_notify_pmk_cache_added() argument
1047 void wpas_notify_signal_change(struct wpa_supplicant *wpa_s) in wpas_notify_signal_change() argument
1049 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_SIGNAL_CHANGE); in wpas_notify_signal_change()
1054 void wpas_notify_hs20_t_c_acceptance(struct wpa_supplicant *wpa_s, in wpas_notify_hs20_t_c_acceptance() argument
1057 wpa_msg(wpa_s, MSG_INFO, HS20_T_C_ACCEPTANCE "%s", url); in wpas_notify_hs20_t_c_acceptance()
1058 wpas_dbus_signal_hs20_t_c_acceptance(wpa_s, url); in wpas_notify_hs20_t_c_acceptance()