int index);
int (*set_tethering) (struct connman_technology *technology,
const char *bridge, connman_bool_t enabled);
+ int (*set_regdom) (struct connman_technology *technology,
+ const char *alpha2);
};
int connman_technology_driver_register(struct connman_technology_driver *driver);
int index, const char *name, const char *ident);
int __connman_technology_enable_tethering(const char *bridge);
int __connman_technology_disable_tethering(const char *bridge);
+int __connman_technology_set_regdom(const char *alpha2);
connman_bool_t __connman_technology_get_blocked(enum connman_service_type type);
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;