aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpa_supplicant_i.h
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2016-07-19 17:44:22 (GMT)
committerJouni Malinen <j@w1.fi>2016-08-18 17:46:18 (GMT)
commitd015bb05df1e1c2b12060bd7ffa51dc980585f4f (patch)
tree4067c4f79b292824457f89fb8282e97aa8641918 /wpa_supplicant/wpa_supplicant_i.h
parent052b8d38c5799fb0c0983d6cf96d5d60754b46ae (diff)
downloadhostap-d015bb05df1e1c2b12060bd7ffa51dc980585f4f.zip
hostap-d015bb05df1e1c2b12060bd7ffa51dc980585f4f.tar.gz
hostap-d015bb05df1e1c2b12060bd7ffa51dc980585f4f.tar.bz2
Move network add/remove operations to a common function
All the 3 control interfaces: socket based, dbus & binder needs to perform the same sequence of steps for network add/remove. So, move these to a common utility method in |wpa_supplicant.c| instead of duplicating the code everywhere. Signed-off-by: Roshan Pius <rpius@google.com>
Diffstat (limited to 'wpa_supplicant/wpa_supplicant_i.h')
-rw-r--r--wpa_supplicant/wpa_supplicant_i.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/wpa_supplicant_i.h b/wpa_supplicant/wpa_supplicant_i.h
index 0f1541e..f3f96a3 100644
--- a/wpa_supplicant/wpa_supplicant_i.h
+++ b/wpa_supplicant/wpa_supplicant_i.h
@@ -1107,6 +1107,8 @@ void wpa_supplicant_cancel_auth_timeout(struct wpa_supplicant *wpa_s);
void wpa_supplicant_deauthenticate(struct wpa_supplicant *wpa_s,
int reason_code);
+struct wpa_ssid * wpa_supplicant_add_network(struct wpa_supplicant *wpa_s);
+int wpa_supplicant_remove_network(struct wpa_supplicant *wpa_s, int id);
void wpa_supplicant_enable_network(struct wpa_supplicant *wpa_s,
struct wpa_ssid *ssid);
void wpa_supplicant_disable_network(struct wpa_supplicant *wpa_s,