Lines Matching refs:wpa_s
49 int wpas_notify_iface_added(struct wpa_supplicant *wpa_s)
51 if (wpas_dbus_register_iface(wpa_s))
54 if (wpas_dbus_register_interface(wpa_s))
61 void wpas_notify_iface_removed(struct wpa_supplicant *wpa_s)
64 wpas_dbus_unregister_iface(wpa_s);
67 wpas_dbus_unregister_interface(wpa_s);
71 void wpas_notify_state_changed(struct wpa_supplicant *wpa_s,
76 wpa_supplicant_dbus_notify_state_change(wpa_s, new_state,
80 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_STATE);
84 wpas_p2p_notif_connected(wpa_s);
86 wpas_p2p_notif_disconnected(wpa_s);
89 sme_state_changed(wpa_s);
92 wpa_msg_ctrl(wpa_s, MSG_INFO, WPA_EVENT_STATE_CHANGE
94 wpa_s->current_ssid ? wpa_s->current_ssid->id : -1,
96 MAC2STR(wpa_s->pending_bssid),
97 wpa_s->current_ssid && wpa_s->current_ssid->ssid ?
98 wpa_ssid_txt(wpa_s->current_ssid->ssid,
99 wpa_s->current_ssid->ssid_len): "");
104 void wpas_notify_network_changed(struct wpa_supplicant *wpa_s)
106 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_CURRENT_NETWORK);
110 void wpas_notify_ap_scan_changed(struct wpa_supplicant *wpa_s)
112 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_AP_SCAN);
116 void wpas_notify_bssid_changed(struct wpa_supplicant *wpa_s)
118 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_CURRENT_BSS);
122 void wpas_notify_auth_changed(struct wpa_supplicant *wpa_s)
124 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_CURRENT_AUTH_MODE);
128 void wpas_notify_network_enabled_changed(struct wpa_supplicant *wpa_s,
131 wpas_dbus_signal_network_enabled_changed(wpa_s, ssid);
135 void wpas_notify_network_selected(struct wpa_supplicant *wpa_s,
138 wpas_dbus_signal_network_selected(wpa_s, ssid->id);
142 void wpas_notify_network_request(struct wpa_supplicant *wpa_s,
147 wpas_dbus_signal_network_request(wpa_s, ssid, rtype, default_txt);
151 void wpas_notify_scanning(struct wpa_supplicant *wpa_s)
154 wpa_supplicant_dbus_notify_scanning(wpa_s);
157 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_SCANNING);
161 void wpas_notify_scan_done(struct wpa_supplicant *wpa_s, int success)
163 wpas_dbus_signal_scan_done(wpa_s, success);
167 void wpas_notify_scan_results(struct wpa_supplicant *wpa_s)
170 wpa_supplicant_dbus_notify_scan_results(wpa_s);
172 wpas_wps_notify_scan_results(wpa_s);
176 void wpas_notify_wps_credential(struct wpa_supplicant *wpa_s,
181 wpa_supplicant_dbus_notify_wps_cred(wpa_s, cred);
183 wpas_dbus_signal_wps_cred(wpa_s, cred);
188 void wpas_notify_wps_event_m2d(struct wpa_supplicant *wpa_s,
192 wpas_dbus_signal_wps_event_m2d(wpa_s, m2d);
197 void wpas_notify_wps_event_fail(struct wpa_supplicant *wpa_s,
201 wpas_dbus_signal_wps_event_fail(wpa_s, fail);
206 void wpas_notify_wps_event_success(struct wpa_supplicant *wpa_s)
209 wpas_dbus_signal_wps_event_success(wpa_s);
214 void wpas_notify_network_added(struct wpa_supplicant *wpa_s,
223 if (wpa_s->global->p2p_group_formation != wpa_s)
224 wpas_dbus_register_network(wpa_s, ssid);
228 void wpas_notify_persistent_group_added(struct wpa_supplicant *wpa_s,
232 wpas_dbus_register_persistent_group(wpa_s, ssid);
237 void wpas_notify_persistent_group_removed(struct wpa_supplicant *wpa_s,
241 wpas_dbus_unregister_persistent_group(wpa_s, ssid->id);
246 void wpas_notify_network_removed(struct wpa_supplicant *wpa_s,
249 if (wpa_s->wpa)
250 wpa_sm_pmksa_cache_flush(wpa_s->wpa, ssid);
251 if (wpa_s->global->p2p_group_formation != wpa_s)
252 wpas_dbus_unregister_network(wpa_s, ssid->id);
254 wpas_p2p_network_removed(wpa_s, ssid);
259 void wpas_notify_bss_added(struct wpa_supplicant *wpa_s,
262 wpas_dbus_register_bss(wpa_s, bssid, id);
263 wpa_msg_ctrl(wpa_s, MSG_INFO, WPA_EVENT_BSS_ADDED "%u " MACSTR,
268 void wpas_notify_bss_removed(struct wpa_supplicant *wpa_s,
271 wpas_dbus_unregister_bss(wpa_s, bssid, id);
272 wpa_msg_ctrl(wpa_s, MSG_INFO, WPA_EVENT_BSS_REMOVED "%u " MACSTR,
277 void wpas_notify_bss_freq_changed(struct wpa_supplicant *wpa_s,
280 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_FREQ, id);
284 void wpas_notify_bss_signal_changed(struct wpa_supplicant *wpa_s,
287 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_SIGNAL,
292 void wpas_notify_bss_privacy_changed(struct wpa_supplicant *wpa_s,
295 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_PRIVACY,
300 void wpas_notify_bss_mode_changed(struct wpa_supplicant *wpa_s,
303 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_MODE, id);
307 void wpas_notify_bss_wpaie_changed(struct wpa_supplicant *wpa_s,
310 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_WPA, id);
314 void wpas_notify_bss_rsnie_changed(struct wpa_supplicant *wpa_s,
317 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_RSN, id);
321 void wpas_notify_bss_wps_changed(struct wpa_supplicant *wpa_s,
327 void wpas_notify_bss_ies_changed(struct wpa_supplicant *wpa_s,
330 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_IES, id);
334 void wpas_notify_bss_rates_changed(struct wpa_supplicant *wpa_s,
337 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_RATES, id);
341 void wpas_notify_blob_added(struct wpa_supplicant *wpa_s, const char *name)
343 wpas_dbus_signal_blob_added(wpa_s, name);
347 void wpas_notify_blob_removed(struct wpa_supplicant *wpa_s, const char *name)
349 wpas_dbus_signal_blob_removed(wpa_s, name);
373 struct wpa_supplicant *wpa_s;
377 for (wpa_s = global->ifaces; wpa_s; wpa_s = wpa_s->next)
378 wpa_drv_suspend(wpa_s);
386 struct wpa_supplicant *wpa_s;
397 for (wpa_s = global->ifaces; wpa_s; wpa_s = wpa_s->next) {
398 wpa_drv_resume(wpa_s);
399 if (wpa_s->wpa_state == WPA_DISCONNECTED)
400 wpa_supplicant_req_scan(wpa_s, 0, 100000);
407 void wpas_notify_p2p_device_found(struct wpa_supplicant *wpa_s,
412 wpas_dbus_register_peer(wpa_s, dev_addr);
416 wpas_dbus_signal_peer_device_found(wpa_s, dev_addr);
420 void wpas_notify_p2p_device_lost(struct wpa_supplicant *wpa_s,
423 wpas_dbus_unregister_peer(wpa_s, dev_addr);
426 wpas_dbus_signal_peer_device_lost(wpa_s, dev_addr);
430 void wpas_notify_p2p_group_removed(struct wpa_supplicant *wpa_s,
434 wpas_dbus_unregister_p2p_group(wpa_s, ssid);
436 wpas_dbus_signal_p2p_group_removed(wpa_s, role);
440 void wpas_notify_p2p_go_neg_req(struct wpa_supplicant *wpa_s,
443 wpas_dbus_signal_p2p_go_neg_req(wpa_s, src, dev_passwd_id);
447 void wpas_notify_p2p_go_neg_completed(struct wpa_supplicant *wpa_s,
450 wpas_dbus_signal_p2p_go_neg_resp(wpa_s, res);
454 void wpas_notify_p2p_invitation_result(struct wpa_supplicant *wpa_s,
457 wpas_dbus_signal_p2p_invitation_result(wpa_s, status, bssid);
461 void wpas_notify_p2p_sd_request(struct wpa_supplicant *wpa_s,
466 wpas_dbus_signal_p2p_sd_request(wpa_s, freq, sa, dialog_token,
471 void wpas_notify_p2p_sd_response(struct wpa_supplicant *wpa_s,
475 wpas_dbus_signal_p2p_sd_response(wpa_s, sa, update_indic,
493 void wpas_notify_p2p_provision_discovery(struct wpa_supplicant *wpa_s,
499 wpas_dbus_signal_p2p_provision_discovery(wpa_s, dev_addr, request,
505 void wpas_notify_p2p_group_started(struct wpa_supplicant *wpa_s,
510 wpas_dbus_register_p2p_group(wpa_s, ssid);
512 wpas_dbus_signal_p2p_group_started(wpa_s, ssid, client, network_id);
516 void wpas_notify_p2p_wps_failed(struct wpa_supplicant *wpa_s,
519 wpas_dbus_signal_p2p_wps_failed(wpa_s, fail);
525 static void wpas_notify_ap_sta_authorized(struct wpa_supplicant *wpa_s,
530 wpas_p2p_notify_ap_sta_authorized(wpa_s, p2p_dev_addr);
537 wpas_dbus_register_p2p_groupmember(wpa_s, sta);
543 wpas_dbus_signal_p2p_peer_joined(wpa_s, sta);
548 static void wpas_notify_ap_sta_deauthorized(struct wpa_supplicant *wpa_s,
556 wpas_dbus_unregister_p2p_groupmember(wpa_s, sta);
562 wpas_dbus_signal_p2p_peer_disconnected(wpa_s, sta);
567 void wpas_notify_sta_authorized(struct wpa_supplicant *wpa_s,
572 wpas_notify_ap_sta_authorized(wpa_s, mac_addr, p2p_dev_addr);
574 wpas_notify_ap_sta_deauthorized(wpa_s, mac_addr);
578 void wpas_notify_certification(struct wpa_supplicant *wpa_s, int depth,
582 wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_EAP_PEER_CERT
595 wpa_msg_ctrl(wpa_s, MSG_INFO,
604 wpa_supplicant_dbus_notify_certification(wpa_s, depth, subject,
607 wpas_dbus_signal_certification(wpa_s, depth, subject, cert_hash, cert);