wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
notify.h
Go to the documentation of this file.
1 
5 #ifndef NOTIFY_H
6 #define NOTIFY_H
7 
8 #include "p2p/p2p.h"
9 
10 struct wps_credential;
11 struct wps_event_m2d;
12 struct wps_event_fail;
13 
14 int wpas_notify_supplicant_initialized(struct wpa_global *global);
15 void wpas_notify_supplicant_deinitialized(struct wpa_global *global);
16 int wpas_notify_iface_added(struct wpa_supplicant *wpa_s);
17 void wpas_notify_iface_removed(struct wpa_supplicant *wpa_s);
18 void wpas_notify_state_changed(struct wpa_supplicant *wpa_s,
19  enum wpa_states new_state,
20  enum wpa_states old_state);
21 void wpas_notify_disconnect_reason(struct wpa_supplicant *wpa_s);
22 void wpas_notify_network_changed(struct wpa_supplicant *wpa_s);
23 void wpas_notify_ap_scan_changed(struct wpa_supplicant *wpa_s);
24 void wpas_notify_bssid_changed(struct wpa_supplicant *wpa_s);
25 void wpas_notify_auth_changed(struct wpa_supplicant *wpa_s);
26 void wpas_notify_network_enabled_changed(struct wpa_supplicant *wpa_s,
27  struct wpa_ssid *ssid);
28 void wpas_notify_network_selected(struct wpa_supplicant *wpa_s,
29  struct wpa_ssid *ssid);
30 void wpas_notify_network_request(struct wpa_supplicant *wpa_s,
31  struct wpa_ssid *ssid,
32  enum wpa_ctrl_req_type rtype,
33  const char *default_txt);
34 void wpas_notify_scanning(struct wpa_supplicant *wpa_s);
35 void wpas_notify_scan_done(struct wpa_supplicant *wpa_s, int success);
36 void wpas_notify_scan_results(struct wpa_supplicant *wpa_s);
37 void wpas_notify_wps_credential(struct wpa_supplicant *wpa_s,
38  const struct wps_credential *cred);
39 void wpas_notify_wps_event_m2d(struct wpa_supplicant *wpa_s,
40  struct wps_event_m2d *m2d);
41 void wpas_notify_wps_event_fail(struct wpa_supplicant *wpa_s,
42  struct wps_event_fail *fail);
43 void wpas_notify_wps_event_success(struct wpa_supplicant *wpa_s);
44 void wpas_notify_wps_event_pbc_overlap(struct wpa_supplicant *wpa_s);
45 void wpas_notify_network_added(struct wpa_supplicant *wpa_s,
46  struct wpa_ssid *ssid);
47 void wpas_notify_network_removed(struct wpa_supplicant *wpa_s,
48  struct wpa_ssid *ssid);
49 void wpas_notify_bss_added(struct wpa_supplicant *wpa_s, u8 bssid[],
50  unsigned int id);
51 void wpas_notify_bss_removed(struct wpa_supplicant *wpa_s, u8 bssid[],
52  unsigned int id);
53 void wpas_notify_bss_freq_changed(struct wpa_supplicant *wpa_s,
54  unsigned int id);
55 void wpas_notify_bss_signal_changed(struct wpa_supplicant *wpa_s,
56  unsigned int id);
57 void wpas_notify_bss_privacy_changed(struct wpa_supplicant *wpa_s,
58  unsigned int id);
59 void wpas_notify_bss_mode_changed(struct wpa_supplicant *wpa_s,
60  unsigned int id);
61 void wpas_notify_bss_wpaie_changed(struct wpa_supplicant *wpa_s,
62  unsigned int id);
63 void wpas_notify_bss_rsnie_changed(struct wpa_supplicant *wpa_s,
64  unsigned int id);
65 void wpas_notify_bss_wps_changed(struct wpa_supplicant *wpa_s,
66  unsigned int id);
67 void wpas_notify_bss_ies_changed(struct wpa_supplicant *wpa_s,
68  unsigned int id);
69 void wpas_notify_bss_rates_changed(struct wpa_supplicant *wpa_s,
70  unsigned int id);
71 void wpas_notify_bss_seen(struct wpa_supplicant *wpa_s, unsigned int id);
72 void wpas_notify_blob_added(struct wpa_supplicant *wpa_s, const char *name);
73 void wpas_notify_blob_removed(struct wpa_supplicant *wpa_s, const char *name);
74 
75 void wpas_notify_debug_level_changed(struct wpa_global *global);
76 void wpas_notify_debug_timestamp_changed(struct wpa_global *global);
77 void wpas_notify_debug_show_keys_changed(struct wpa_global *global);
78 void wpas_notify_suspend(struct wpa_global *global);
79 void wpas_notify_resume(struct wpa_global *global);
80 
81 void wpas_notify_sta_authorized(struct wpa_supplicant *wpa_s,
82  const u8 *mac_addr, int authorized,
83  const u8 *p2p_dev_addr);
84 void wpas_notify_p2p_find_stopped(struct wpa_supplicant *wpa_s);
85 void wpas_notify_p2p_device_found(struct wpa_supplicant *wpa_s,
86  const u8 *dev_addr, int new_device);
87 void wpas_notify_p2p_device_lost(struct wpa_supplicant *wpa_s,
88  const u8 *dev_addr);
89 void wpas_notify_p2p_group_removed(struct wpa_supplicant *wpa_s,
90  const struct wpa_ssid *ssid,
91  const char *role);
92 void wpas_notify_p2p_go_neg_req(struct wpa_supplicant *wpa_s,
93  const u8 *src, u16 dev_passwd_id, u8 go_intent);
94 void wpas_notify_p2p_go_neg_completed(struct wpa_supplicant *wpa_s,
95  struct p2p_go_neg_results *res);
96 void wpas_notify_p2p_invitation_result(struct wpa_supplicant *wpa_s,
97  int status, const u8 *bssid);
98 void wpas_notify_p2p_sd_request(struct wpa_supplicant *wpa_s,
99  int freq, const u8 *sa, u8 dialog_token,
100  u16 update_indic, const u8 *tlvs,
101  size_t tlvs_len);
102 void wpas_notify_p2p_sd_response(struct wpa_supplicant *wpa_s,
103  const u8 *sa, u16 update_indic,
104  const u8 *tlvs, size_t tlvs_len);
106  const u8 *dev_addr, int request,
107  enum p2p_prov_disc_status status,
108  u16 config_methods,
109  unsigned int generated_pin);
110 void wpas_notify_p2p_group_started(struct wpa_supplicant *wpa_s,
111  struct wpa_ssid *ssid, int network_id,
112  int client);
113 void wpas_notify_p2p_group_formation_failure(struct wpa_supplicant *wpa_s,
114  const char *reason);
115 void wpas_notify_persistent_group_added(struct wpa_supplicant *wpa_s,
116  struct wpa_ssid *ssid);
117 void wpas_notify_persistent_group_removed(struct wpa_supplicant *wpa_s,
118  struct wpa_ssid *ssid);
119 
120 void wpas_notify_p2p_wps_failed(struct wpa_supplicant *wpa_s,
121  struct wps_event_fail *fail);
122 
123 void wpas_notify_certification(struct wpa_supplicant *wpa_s, int depth,
124  const char *subject, const char *altsubject[],
125  int num_altsubject, const char *cert_hash,
126  const struct wpabuf *cert);
127 void wpas_notify_preq(struct wpa_supplicant *wpa_s,
128  const u8 *addr, const u8 *dst, const u8 *bssid,
129  const u8 *ie, size_t ie_len, u32 ssi_signal);
130 void wpas_notify_eap_status(struct wpa_supplicant *wpa_s, const char *status,
131  const char *parameter);
132 void wpas_notify_network_bssid_set_changed(struct wpa_supplicant *wpa_s,
133  struct wpa_ssid *ssid);
134 void wpas_notify_network_type_changed(struct wpa_supplicant *wpa_s,
135  struct wpa_ssid *ssid);
136 void wpas_notify_p2p_invitation_received(struct wpa_supplicant *wpa_s,
137  const u8 *sa, const u8 *go_dev_addr,
138  const u8 *bssid, int id, int op_freq);
139 
140 #endif /* NOTIFY_H */
Definition: wpabuf.h:16
Internal, global data for all wpa_supplicant interfaces.
Definition: wpa_supplicant_i.h:273
wpa_states
wpa_supplicant state
Definition: defs.h:161
Wi-Fi Direct - P2P module.
void wpas_notify_p2p_provision_discovery(struct wpa_supplicant *wpa_s, const u8 *dev_addr, int request, enum p2p_prov_disc_status status, u16 config_methods, unsigned int generated_pin)
Notification of provision discovery.
Definition: notify.c:633
P2P Group Owner Negotiation results.
Definition: p2p.h:85
wpa_ctrl_req_type
Control interface request types.
Definition: defs.h:315
WPS Credential.
Definition: wps.h:44
Internal data for wpa_supplicant interface.
Definition: wpa_supplicant_i.h:451
Network configuration data.
Definition: config_ssid.h:52