summaryrefslogtreecommitdiff
path: root/src/rfkill.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rfkill.c')
-rwxr-xr-xsrc/rfkill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rfkill.c b/src/rfkill.c
index 36426e00..fce9d720 100755
--- a/src/rfkill.c
+++ b/src/rfkill.c
@@ -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;