]> git.ipfire.org Git - thirdparty/hostap.git/blob - wpa_supplicant/notify.c
Add wpa_supplicant notification calls
[thirdparty/hostap.git] / wpa_supplicant / notify.c
1 /*
2 * wpa_supplicant - Event notifications
3 * Copyright (c) 2009, Jouni Malinen <j@w1.fi>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 *
9 * Alternatively, this software may be distributed under the terms of BSD
10 * license.
11 *
12 * See README and COPYING for more details.
13 */
14
15 #include "includes.h"
16
17 #include "common.h"
18 #include "config.h"
19 #include "wpa_supplicant_i.h"
20 #include "wps_supplicant.h"
21 #include "ctrl_iface_dbus.h"
22 #include "notify.h"
23
24
25 void wpas_notify_state_changed(struct wpa_supplicant *wpa_s,
26 wpa_states new_state, wpa_states old_state)
27 {
28 /* notify the old DBus API */
29 wpa_supplicant_dbus_notify_state_change(wpa_s, new_state,
30 old_state);
31 }
32
33
34 void wpas_notify_network_changed(struct wpa_supplicant *wpa_s)
35 {
36 }
37
38
39 void wpas_notify_ap_scan_changed(struct wpa_supplicant *wpa_s)
40 {
41 }
42
43
44 void wpas_notify_bssid_changed(struct wpa_supplicant *wpa_s)
45 {
46 }
47
48
49 void wpas_notify_network_enabled_changed(struct wpa_supplicant *wpa_s,
50 struct wpa_ssid *ssid)
51 {
52 }
53
54
55 void wpas_notify_network_selected(struct wpa_supplicant *wpa_s,
56 struct wpa_ssid *ssid)
57 {
58 }
59
60
61 void wpas_notify_unregister_interface(struct wpa_supplicant *wpa_s)
62 {
63 /* unregister interface in old DBus ctrl iface */
64 wpas_dbus_unregister_iface(wpa_s);
65 }
66
67
68 void wpas_notify_scanning(struct wpa_supplicant *wpa_s)
69 {
70 /* notify the old DBus API */
71 wpa_supplicant_dbus_notify_scanning(wpa_s);
72 }
73
74
75 void wpas_notify_scan_done(struct wpa_supplicant *wpa_s, int success)
76 {
77 }
78
79
80 void wpas_notify_scan_results(struct wpa_supplicant *wpa_s)
81 {
82 /* notify the old DBus API */
83 wpa_supplicant_dbus_notify_scan_results(wpa_s);
84
85 wpas_wps_notify_scan_results(wpa_s);
86 }
87
88
89 void wpas_notify_wps_credential(struct wpa_supplicant *wpa_s,
90 const struct wps_credential *cred)
91 {
92 /* notify the old DBus API */
93 wpa_supplicant_dbus_notify_wps_cred(wpa_s, cred);
94 }
95
96
97 void wpas_notify_wps_event_m2d(struct wpa_supplicant *wpa_s,
98 struct wps_event_m2d *m2d)
99 {
100 }
101
102
103 void wpas_notify_wps_event_fail(struct wpa_supplicant *wpa_s,
104 struct wps_event_fail *fail)
105 {
106 }
107
108
109 void wpas_notify_wps_event_success(struct wpa_supplicant *wpa_s)
110 {
111 }
112
113
114 void wpas_notify_network_added(struct wpa_supplicant *wpa_s,
115 struct wpa_ssid *ssid)
116 {
117 }
118
119
120 void wpas_notify_network_removed(struct wpa_supplicant *wpa_s,
121 struct wpa_ssid *ssid)
122 {
123 }
124
125
126 void wpas_notify_blob_added(struct wpa_supplicant *wpa_s, const char *name)
127 {
128 }
129
130
131 void wpas_notify_blob_removed(struct wpa_supplicant *wpa_s, const char *name)
132 {
133 }
134
135
136 void wpas_notify_debug_params_changed(struct wpa_global *global)
137 {
138 }