Imported Upstream version 1.35
[platform/upstream/connman.git] / src / rfkill.c
index 2bfb092..d9bed4d 100644 (file)
@@ -196,7 +196,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;