summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorChengyi Zhao <chengyi1.zhao@archermind.com>2013-07-10 17:54:32 +0800
committerZhang zhengguang <zhengguang.zhang@intel.com>2014-10-31 16:06:20 +0800
commitc7d7214b511b0fa8b43f21b3b87416051fa9ef29 (patch)
treed8c0933eba6e288f93ab3903ab0977bfe362ea8d /plugins
parent763bd791fc3a52dc6381b18da246b7c0656861fd (diff)
downloadconnman-c7d7214b511b0fa8b43f21b3b87416051fa9ef29.tar.gz
connman-c7d7214b511b0fa8b43f21b3b87416051fa9ef29.tar.bz2
connman-c7d7214b511b0fa8b43f21b3b87416051fa9ef29.zip
Tethering: Add station information management feature
Change-Id: I2f699e42ec5ce7f148b8c1d685b52ee32e2e236b
Diffstat (limited to 'plugins')
-rw-r--r--plugins/wifi.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c
index 69a0e236..b5bc3bae 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -2719,6 +2719,17 @@ static void apply_peer_services(GSupplicantPeer *peer,
}
}
+static void add_station(const char *mac)
+{
+ connman_technology_tethering_add_station(CONNMAN_SERVICE_TYPE_WIFI,
+ mac);
+}
+
+static void remove_station(const char *mac)
+{
+ connman_technology_tethering_remove_station(mac);
+}
+
static void peer_found(GSupplicantPeer *peer)
{
GSupplicantInterface *iface = g_supplicant_peer_get_interface(peer);
@@ -2887,6 +2898,8 @@ static const GSupplicantCallbacks callbacks = {
.network_added = network_added,
.network_removed = network_removed,
.network_changed = network_changed,
+ .add_station = add_station,
+ .remove_station = remove_station,
.peer_found = peer_found,
.peer_lost = peer_lost,
.peer_changed = peer_changed,