Change-Id: I279ad9d0e623872f4dcf37a6c3c9cd012842e448
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
return CONNMAN_SERVICE_TYPE_UNKNOWN;
}
return CONNMAN_SERVICE_TYPE_UNKNOWN;
}
static enum rfkill_type convert_service_type(enum connman_service_type type)
{
switch (type) {
static enum rfkill_type convert_service_type(enum connman_service_type type)
{
switch (type) {
return NUM_RFKILL_TYPES;
}
return NUM_RFKILL_TYPES;
}
static GIOStatus rfkill_process(GIOChannel *chan)
{
static GIOStatus rfkill_process(GIOChannel *chan)
{
int __connman_rfkill_block(enum connman_service_type type, bool block)
{
int __connman_rfkill_block(enum connman_service_type type, bool block)
{
uint8_t rfkill_type;
struct rfkill_event event;
ssize_t len;
uint8_t rfkill_type;
struct rfkill_event event;
ssize_t len;
+ int fd, err = 0;
+#endif
DBG("type %d block %d", type, block);
DBG("type %d block %d", type, block);
+#if defined TIZEN_EXT
+ DBG("try to set rfkill block %d, but it's not pormitted", block);
+
+ return 0;
+#else
rfkill_type = convert_service_type(type);
if (rfkill_type == NUM_RFKILL_TYPES)
return -EINVAL;
rfkill_type = convert_service_type(type);
if (rfkill_type == NUM_RFKILL_TYPES)
return -EINVAL;
}
int __connman_rfkill_init(void)
}
int __connman_rfkill_init(void)
DBG("technology %p type %s rfkill %d enabled %d", technology,
get_name(type), technology->rfkill_driven,
technology->enabled);
DBG("technology %p type %s rfkill %d enabled %d", technology,
get_name(type), technology->rfkill_driven,
technology->enabled);
if (technology->rfkill_driven) {
if (technology->tethering_persistent)
enable_tethering(technology);
return 0;
}
if (technology->rfkill_driven) {
if (technology->tethering_persistent)
enable_tethering(technology);
return 0;
}
return technology_enabled(technology);
}
return technology_enabled(technology);
}
technology = technology_find(type);
if (!technology)
return -ENXIO;
technology = technology_find(type);
if (!technology)
return -ENXIO;
if (technology->rfkill_driven)
return 0;
if (technology->rfkill_driven)
return 0;
for (list = technology->device_list; list; list = list->next) {
struct connman_device *device = list->data;
for (list = technology->device_list; list; list = list->next) {
struct connman_device *device = list->data;
technology->rfkill_driven = true;
technology->rfkill_driven = true;
/* If hardblocked, there is no need to handle softblocked state */
if (technology_apply_rfkill_change(technology,
softblock, hardblock, true))
return 0;
/* If hardblocked, there is no need to handle softblocked state */
if (technology_apply_rfkill_change(technology,
softblock, hardblock, true))
return 0;
if (global_offlinemode)
return 0;
if (global_offlinemode)
return 0;