From c7d7214b511b0fa8b43f21b3b87416051fa9ef29 Mon Sep 17 00:00:00 2001 From: Chengyi Zhao Date: Wed, 10 Jul 2013 17:54:32 +0800 Subject: Tethering: Add station information management feature Change-Id: I2f699e42ec5ce7f148b8c1d685b52ee32e2e236b --- plugins/wifi.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'plugins') 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, -- cgit v1.2.3