summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSeonah Moon <seonah1.moon@samsung.com>2015-04-23 10:20:43 +0900
committerSeonah Moon <seonah1.moon@samsung.com>2015-04-23 10:25:40 +0900
commit9e7ccc53900e9fe24bfcf56c22a4c6be7b002dc5 (patch)
treec69cdfd7bc8d38d28b9036e184a384f755347939 /src
parent0e96b37eecbfff07ae4729a149aeab57a15b301b (diff)
downloadconnman-9e7ccc53900e9fe24bfcf56c22a4c6be7b002dc5.tar.gz
connman-9e7ccc53900e9fe24bfcf56c22a4c6be7b002dc5.tar.bz2
connman-9e7ccc53900e9fe24bfcf56c22a4c6be7b002dc5.zip
Change-Id: I624a38019f853988eabe65fb8552710d5dd7aeb7 Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
Diffstat (limited to 'src')
-rw-r--r--src/rfkill.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/rfkill.c b/src/rfkill.c
index 960cfea7..bbb4dd72 100644
--- a/src/rfkill.c
+++ b/src/rfkill.c
@@ -73,6 +73,7 @@ static enum connman_service_type convert_type(uint8_t type)
return CONNMAN_SERVICE_TYPE_UNKNOWN;
}
+#if !defined TIZEN_EXT
static enum rfkill_type convert_service_type(enum connman_service_type type)
{
switch (type) {
@@ -95,6 +96,7 @@ static enum rfkill_type convert_service_type(enum connman_service_type type)
return NUM_RFKILL_TYPES;
}
+#endif
static GIOStatus rfkill_process(GIOChannel *chan)
{
@@ -157,13 +159,20 @@ static GIOChannel *channel = NULL;
int __connman_rfkill_block(enum connman_service_type type, bool block)
{
+#if !defined TIZEN_EXT
uint8_t rfkill_type;
struct rfkill_event event;
ssize_t len;
int fd, err;
+#endif
DBG("type %d block %d", type, block);
+#if defined TIZEN_EXT
+ DBG("try to set rfkill block %d, but it's not permitted", block);
+
+ return 0;
+#else
rfkill_type = convert_service_type(type);
if (rfkill_type == NUM_RFKILL_TYPES)
return -EINVAL;
@@ -187,6 +196,7 @@ int __connman_rfkill_block(enum connman_service_type type, bool block)
close(fd);
return err;
+#endif
}
int __connman_rfkill_init(void)