From c0593bc9ff2541b01d674d8b4aa4371fade91866 Mon Sep 17 00:00:00 2001 From: Tomasz Bursztyka Date: Wed, 4 Jul 2012 16:48:01 +0300 Subject: [PATCH] technology: Notify the regulatory domain setting by device --- src/connman.h | 2 ++ src/technology.c | 15 +++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/src/connman.h b/src/connman.h index 0418a7e..5ab9eb5 100644 --- a/src/connman.h +++ b/src/connman.h @@ -457,6 +457,8 @@ void __connman_technology_add_interface(enum connman_service_type type, int index, const char *name, const char *ident); void __connman_technology_remove_interface(enum connman_service_type type, int index, const char *name, const char *ident); +void __connman_technology_notify_regdom_by_device(struct connman_device *device, + int result, const char *alpha2); #include diff --git a/src/technology.c b/src/technology.c index 3781b0c..e2e00e5 100644 --- a/src/technology.c +++ b/src/technology.c @@ -845,6 +845,21 @@ void __connman_technology_scan_stopped(struct connman_device *device) reply_scan_pending(technology, 0); } +void __connman_technology_notify_regdom_by_device(struct connman_device *device, + int result, const char *alpha2) +{ + struct connman_technology *technology; + enum connman_service_type type; + + type = __connman_device_get_service_type(device); + technology = technology_find(type); + + if (technology == NULL) + return; + + connman_technology_regdom_notify(technology, alpha2); +} + static DBusMessage *scan(DBusConnection *conn, DBusMessage *msg, void *data) { struct connman_technology *technology = data; -- 2.7.4