X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Frfkill.c;h=fce9d720d806c80d256a6be32a18183abcc18c07;hb=55c73c5d731572b1c92894ac57150555b7e61216;hp=20908d71ed270aa375d5317285f3a88e4b52aba3;hpb=6aa4055ef0544ae85457c25c510fe3db04949c43;p=platform%2Fupstream%2Fconnman.git diff --git a/src/rfkill.c b/src/rfkill.c index 20908d7..fce9d72 100755 --- a/src/rfkill.c +++ b/src/rfkill.c @@ -169,7 +169,7 @@ int __connman_rfkill_block(enum connman_service_type type, bool 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); + DBG("try to set rfkill block %d, but it's not permitted", block); return 0; #else @@ -206,7 +206,7 @@ int __connman_rfkill_init(void) DBG(""); - fd = open("/dev/rfkill", O_RDWR | O_CLOEXEC); + fd = open("/dev/rfkill", O_RDONLY | O_CLOEXEC); if (fd < 0) { connman_error("Failed to open RFKILL control device"); return -EIO;