From 9e7ccc53900e9fe24bfcf56c22a4c6be7b002dc5 Mon Sep 17 00:00:00 2001 From: Seonah Moon Date: Thu, 23 Apr 2015 10:20:43 +0900 Subject: Add TIZEN_EXT patch to ignore rfkill block Change-Id: I624a38019f853988eabe65fb8552710d5dd7aeb7 Signed-off-by: Seonah Moon --- src/rfkill.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') 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) -- cgit v1.2.3