summaryrefslogtreecommitdiff
path: root/src/connman.h
diff options
context:
space:
mode:
authorMartin Xu <martin.xu@intel.com>2010-01-18 15:27:17 +0800
committerMarcel Holtmann <marcel@holtmann.org>2010-01-18 00:48:29 -0800
commit0935c628cf83b096d72ffba5e53a6d6e8029e7ef (patch)
tree32e3402035f4ed83e7682615a27696c6fdab74d6 /src/connman.h
parent5fbfa700fb4b3ccdafd16343d02462f7ba408cee (diff)
downloadconnman-0935c628cf83b096d72ffba5e53a6d6e8029e7ef.tar.gz
connman-0935c628cf83b096d72ffba5e53a6d6e8029e7ef.tar.bz2
connman-0935c628cf83b096d72ffba5e53a6d6e8029e7ef.zip
Check RFKILL block state before enable the device
When starting, the device RFKILL block state will be recorded using update_rfkill_state(). And at following device detection stage, before enable the device, __connman_udev_get_blocked() should be used to check the block state. If the device is blocked, it should not be enabled. This avoids unnecessary enable and disable operation and a race condition.
Diffstat (limited to 'src/connman.h')
-rw-r--r--src/connman.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/connman.h b/src/connman.h
index a6619df6..a7040270 100644
--- a/src/connman.h
+++ b/src/connman.h
@@ -265,6 +265,7 @@ char *__connman_udev_get_devtype(const char *ifname);
char *__connman_udev_get_mbm_devnode(const char *ifname);
void __connman_udev_rfkill(const char *sysname, connman_bool_t blocked);
void __connman_udev_enable_rfkill_processing(void);
+connman_bool_t __connman_udev_get_blocked(int phyindex);
#include <connman/device.h>