diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2010-10-07 20:03:48 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-10-07 20:07:43 +0200 |
commit | 6d935efb1a315faaa5eb049e77d7d96f90be5cfb (patch) | |
tree | 8e13c1e01fd8453abcd9a62b3df90a78ff43a054 /src/rfkill.c | |
parent | 6766d9764b7c8b1b0bcd8e85eced6e6e8a46699f (diff) | |
download | connman-6d935efb1a315faaa5eb049e77d7d96f90be5cfb.tar.gz connman-6d935efb1a315faaa5eb049e77d7d96f90be5cfb.tar.bz2 connman-6d935efb1a315faaa5eb049e77d7d96f90be5cfb.zip |
technology: Block devices based on technology rfkill status
Devices are blocked when their technology is blocked, i.e. all its devices
are rfkilled. They all move back to the unblocked state when all the
technology devices are no longer rfkilled.
Diffstat (limited to 'src/rfkill.c')
-rw-r--r-- | src/rfkill.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/rfkill.c b/src/rfkill.c index 0f54185c..ba6da452 100644 --- a/src/rfkill.c +++ b/src/rfkill.c @@ -79,9 +79,7 @@ static GIOStatus rfkill_process(GIOChannel *chan) GIOStatus status = G_IO_STATUS_NORMAL; unsigned char buf[32]; struct rfkill_event *event = (void *) buf; - char sysname[32]; enum connman_service_type type; - connman_bool_t blocked; gsize len; DBG(""); @@ -118,19 +116,6 @@ static GIOStatus rfkill_process(GIOChannel *chan) break; } - snprintf(sysname, sizeof(sysname) - 1, "rfkill%d", event->idx); - - blocked = (event->soft || event->hard) ? TRUE : FALSE; - - switch (event->type) { - case RFKILL_TYPE_ALL: - case RFKILL_TYPE_WLAN: - /* FIXME: unblock device */ - break; - default: - break; - } - return status; } |