Lines Matching refs:wpa_s
62 int wpas_notify_iface_added(struct wpa_supplicant *wpa_s)
64 if (wpa_s->p2p_mgmt)
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)
79 if (wpa_s->p2p_mgmt)
83 wpas_dbus_unregister_iface(wpa_s);
86 wpas_dbus_unregister_interface(wpa_s);
90 void wpas_notify_state_changed(struct wpa_supplicant *wpa_s,
94 if (wpa_s->p2p_mgmt)
98 wpa_supplicant_dbus_notify_state_change(wpa_s, new_state,
102 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_STATE);
105 if (wpa_s->fst && !is_zero_ether_addr(wpa_s->bssid)) {
107 fst_notify_peer_connected(wpa_s->fst, wpa_s->bssid);
110 fst_notify_peer_disconnected(wpa_s->fst, wpa_s->bssid);
115 wpas_p2p_notif_connected(wpa_s);
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
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)
136 if (wpa_s->p2p_mgmt)
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)
145 if (wpa_s->p2p_mgmt)
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)
154 if (wpa_s->p2p_mgmt)
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)
163 if (wpa_s->p2p_mgmt)
166 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_AP_SCAN);
170 void wpas_notify_bssid_changed(struct wpa_supplicant *wpa_s)
172 if (wpa_s->p2p_mgmt)
175 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_CURRENT_BSS);
179 void wpas_notify_auth_changed(struct wpa_supplicant *wpa_s)
181 if (wpa_s->p2p_mgmt)
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,
191 if (wpa_s->p2p_mgmt)
194 wpas_dbus_signal_network_enabled_changed(wpa_s, ssid);
198 void wpas_notify_network_selected(struct wpa_supplicant *wpa_s,
201 if (wpa_s->p2p_mgmt)
204 wpas_dbus_signal_network_selected(wpa_s, ssid->id);
208 void wpas_notify_network_request(struct wpa_supplicant *wpa_s,
213 if (wpa_s->p2p_mgmt)
216 wpas_dbus_signal_network_request(wpa_s, ssid, rtype, default_txt);
220 void wpas_notify_scanning(struct wpa_supplicant *wpa_s)
222 if (wpa_s->p2p_mgmt)
226 wpa_supplicant_dbus_notify_scanning(wpa_s);
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)
235 if (wpa_s->p2p_mgmt)
238 wpas_dbus_signal_scan_done(wpa_s, success);
242 void wpas_notify_scan_results(struct wpa_supplicant *wpa_s)
244 if (wpa_s->p2p_mgmt)
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,
257 if (wpa_s->p2p_mgmt)
262 wpa_supplicant_dbus_notify_wps_cred(wpa_s, cred);
264 wpas_dbus_signal_wps_cred(wpa_s, cred);
269 void wpas_notify_wps_event_m2d(struct wpa_supplicant *wpa_s,
272 if (wpa_s->p2p_mgmt)
276 wpas_dbus_signal_wps_event_m2d(wpa_s, m2d);
281 void wpas_notify_wps_event_fail(struct wpa_supplicant *wpa_s,
284 if (wpa_s->p2p_mgmt)
288 wpas_dbus_signal_wps_event_fail(wpa_s, fail);
293 void wpas_notify_wps_event_success(struct wpa_supplicant *wpa_s)
295 if (wpa_s->p2p_mgmt)
299 wpas_dbus_signal_wps_event_success(wpa_s);
303 void wpas_notify_wps_event_pbc_overlap(struct wpa_supplicant *wpa_s)
305 if (wpa_s->p2p_mgmt)
309 wpas_dbus_signal_wps_event_pbc_overlap(wpa_s);
314 void wpas_notify_network_added(struct wpa_supplicant *wpa_s,
317 if (wpa_s->p2p_mgmt)
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,
335 wpas_dbus_register_persistent_group(wpa_s, ssid);
340 void wpas_notify_persistent_group_removed(struct wpa_supplicant *wpa_s,
344 wpas_dbus_unregister_persistent_group(wpa_s, ssid->id);
349 void wpas_notify_network_removed(struct wpa_supplicant *wpa_s,
352 if (wpa_s->next_ssid == ssid)
353 wpa_s->next_ssid = NULL;
354 if (wpa_s->wpa)
355 wpa_sm_pmksa_cache_flush(wpa_s->wpa, ssid);
356 if (!ssid->p2p_group && wpa_s->global->p2p_group_formation != wpa_s &&
357 !wpa_s->p2p_mgmt)
358 wpas_dbus_unregister_network(wpa_s, ssid->id);
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,
369 if (wpa_s->p2p_mgmt)
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,
381 if (wpa_s->p2p_mgmt)
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,
393 if (wpa_s->p2p_mgmt)
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,
403 if (wpa_s->p2p_mgmt)
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,
414 if (wpa_s->p2p_mgmt)
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,
425 if (wpa_s->p2p_mgmt)
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,
435 if (wpa_s->p2p_mgmt)
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,
445 if (wpa_s->p2p_mgmt)
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,
455 if (wpa_s->p2p_mgmt)
459 wpas_dbus_bss_signal_prop_changed(wpa_s, WPAS_DBUS_BSS_PROP_WPS, id);
464 void wpas_notify_bss_ies_changed(struct wpa_supplicant *wpa_s,
467 if (wpa_s->p2p_mgmt)
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,
477 if (wpa_s->p2p_mgmt)
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)
486 if (wpa_s->p2p_mgmt)
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)
495 if (wpa_s->p2p_mgmt)
498 wpas_dbus_signal_blob_added(wpa_s, name);
502 void wpas_notify_blob_removed(struct wpa_supplicant *wpa_s, const char *name)
504 if (wpa_s->p2p_mgmt)
507 wpas_dbus_signal_blob_removed(wpa_s, name);
531 struct wpa_supplicant *wpa_s;
535 for (wpa_s = global->ifaces; wpa_s; wpa_s = wpa_s->next)
536 wpa_drv_suspend(wpa_s);
544 struct wpa_supplicant *wpa_s;
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)
568 wpas_dbus_signal_p2p_find_stopped(wpa_s);
572 void wpas_notify_p2p_device_found(struct wpa_supplicant *wpa_s,
577 wpas_dbus_register_peer(wpa_s, dev_addr);
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);
591 wpas_dbus_signal_peer_device_lost(wpa_s, dev_addr);
595 void wpas_notify_p2p_group_removed(struct wpa_supplicant *wpa_s,
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,
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,
615 wpas_dbus_signal_p2p_go_neg_resp(wpa_s, res);
619 void wpas_notify_p2p_invitation_result(struct wpa_supplicant *wpa_s,
622 wpas_dbus_signal_p2p_invitation_result(wpa_s, status, bssid);
626 void wpas_notify_p2p_sd_request(struct wpa_supplicant *wpa_s,
631 wpas_dbus_signal_p2p_sd_request(wpa_s, freq, sa, dialog_token,
636 void wpas_notify_p2p_sd_response(struct wpa_supplicant *wpa_s,
640 wpas_dbus_signal_p2p_sd_response(wpa_s, sa, update_indic,
658 void wpas_notify_p2p_provision_discovery(struct wpa_supplicant *wpa_s,
664 wpas_dbus_signal_p2p_provision_discovery(wpa_s, dev_addr, request,
670 void wpas_notify_p2p_group_started(struct wpa_supplicant *wpa_s,
675 wpas_dbus_register_p2p_group(wpa_s, ssid);
677 wpas_dbus_signal_p2p_group_started(wpa_s, ssid, client, network_id);
681 void wpas_notify_p2p_group_formation_failure(struct wpa_supplicant *wpa_s,
685 wpas_dbus_signal_p2p_group_formation_failure(wpa_s, reason);
689 void wpas_notify_p2p_wps_failed(struct wpa_supplicant *wpa_s,
692 wpas_dbus_signal_p2p_wps_failed(wpa_s, fail);
696 void wpas_notify_p2p_invitation_received(struct wpa_supplicant *wpa_s,
701 wpas_dbus_signal_p2p_invitation_received(wpa_s, sa, go_dev_addr, bssid,
708 static void wpas_notify_ap_sta_authorized(struct wpa_supplicant *wpa_s,
713 wpas_p2p_notify_ap_sta_authorized(wpa_s, p2p_dev_addr);
720 wpas_dbus_signal_p2p_peer_joined(wpa_s, p2p_dev_addr);
724 wpas_dbus_signal_sta_authorized(wpa_s, sta);
728 static void wpas_notify_ap_sta_deauthorized(struct wpa_supplicant *wpa_s,
738 wpas_dbus_signal_p2p_peer_disconnected(wpa_s, p2p_dev_addr);
742 wpas_dbus_signal_sta_deauthorized(wpa_s, sta);
746 void wpas_notify_sta_authorized(struct wpa_supplicant *wpa_s,
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,
762 wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_EAP_PEER_CERT
774 wpa_msg_ctrl(wpa_s, MSG_INFO,
786 wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_EAP_PEER_ALT
791 wpa_supplicant_dbus_notify_certification(wpa_s, depth, subject,
794 wpas_dbus_signal_certification(wpa_s, depth, subject, altsubject,
799 void wpas_notify_preq(struct wpa_supplicant *wpa_s,
804 wpas_dbus_signal_preq(wpa_s, addr, dst, bssid, ie, ie_len, ssi_signal);
809 void wpas_notify_eap_status(struct wpa_supplicant *wpa_s, const char *status,
812 wpas_dbus_signal_eap_status(wpa_s, status, parameter);
813 wpa_msg_ctrl(wpa_s, MSG_INFO, WPA_EVENT_EAP_STATUS
819 void wpas_notify_network_bssid_set_changed(struct wpa_supplicant *wpa_s,
822 if (wpa_s->current_ssid != ssid)
825 wpa_dbg(wpa_s, MSG_DEBUG,
829 wpa_drv_roaming(wpa_s, !ssid->bssid_set,
834 void wpas_notify_network_type_changed(struct wpa_supplicant *wpa_s,
841 wpas_dbus_unregister_network(wpa_s, ssid->id);
844 wpas_dbus_register_persistent_group(wpa_s, ssid);
847 wpas_dbus_unregister_persistent_group(wpa_s, ssid->id);
849 wpas_dbus_register_network(wpa_s, ssid);