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>2013-07-12 16:28:11 +0800
commit0865b085d44beb197d0b0d79c3335941868b2a7d (patch)
tree8e6ffde06faa8347a598dd8d3241b9aff7e23d17 /plugins
parent5832e8fd04b57c7b4e7e01f3b0464bcf523a3401 (diff)
downloadconnman-0865b085d44beb197d0b0d79c3335941868b2a7d.tar.gz
connman-0865b085d44beb197d0b0d79c3335941868b2a7d.tar.bz2
connman-0865b085d44beb197d0b0d79c3335941868b2a7d.zip
Tethering: Add station information management feature
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 c50945b8..bbcb1df3 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -1909,6 +1909,17 @@ static void network_changed(GSupplicantNetwork *network, const char *property)
#endif
}
+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 debug(const char *str)
{
if (getenv("CONNMAN_SUPPLICANT_DEBUG"))
@@ -1926,6 +1937,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,
.debug = debug,
};