diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2010-11-30 20:11:20 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-12-02 12:07:27 +0100 |
commit | fc5b4a1de772a71e6b0f67945b6ac790eaba50f5 (patch) | |
tree | 289cf5cf5808c389709c060bc7e0a529616404b6 /src/technology.c | |
parent | c969404724b19204bc1ef1634800f2b70572a297 (diff) | |
download | connman-fc5b4a1de772a71e6b0f67945b6ac790eaba50f5.tar.gz connman-fc5b4a1de772a71e6b0f67945b6ac790eaba50f5.tar.bz2 connman-fc5b4a1de772a71e6b0f67945b6ac790eaba50f5.zip |
technology: Add regulatory domain framework
Diffstat (limited to 'src/technology.c')
-rw-r--r-- | src/technology.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/technology.c b/src/technology.c index 98fcf8dd..d698ee98 100644 --- a/src/technology.c +++ b/src/technology.c @@ -216,6 +216,23 @@ int __connman_technology_disable_tethering(const char *bridge) return set_tethering(bridge, FALSE); } +int __connman_technology_set_regdom(const char *alpha2) +{ + GSList *list; + + for (list = technology_list; list; list = list->next) { + struct connman_technology *technology = list->data; + + if (technology->driver == NULL) + continue; + + if (technology->driver->set_regdom) + technology->driver->set_regdom(technology, alpha2); + } + + return 0; +} + static void free_rfkill(gpointer data) { struct connman_rfkill *rfkill = data; |