summaryrefslogtreecommitdiff
path: root/src/rfkill.c
diff options
context:
space:
mode:
authorAlok Barsode <alok.barsode@linux.intel.com>2011-08-24 16:44:11 +0300
committerSamuel Ortiz <sameo@linux.intel.com>2011-08-25 11:14:21 +0200
commit1780bb28cfc7198483f0bd36aa0a90020698e2ba (patch)
treec86b9296ed1bd7f0c0ed8ea4c86e8c96e1d284aa /src/rfkill.c
parent902f7b27814640781c07158b25bf9c7738338cf2 (diff)
downloadconnman-1780bb28cfc7198483f0bd36aa0a90020698e2ba.tar.gz
connman-1780bb28cfc7198483f0bd36aa0a90020698e2ba.tar.bz2
connman-1780bb28cfc7198483f0bd36aa0a90020698e2ba.zip
technology: Remove global rfkill table
Remove the global rfkill_table and maintain a per technology rfkill table.
Diffstat (limited to 'src/rfkill.c')
-rw-r--r--src/rfkill.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/rfkill.c b/src/rfkill.c
index 2a4458b8..3d214ef3 100644
--- a/src/rfkill.c
+++ b/src/rfkill.c
@@ -99,18 +99,19 @@ static GIOStatus rfkill_process(GIOChannel *chan)
event->type, event->op,
event->soft, event->hard);
+ type = convert_type(event->type);
+
switch (event->op) {
case RFKILL_OP_ADD:
- type = convert_type(event->type);
__connman_technology_add_rfkill(event->idx, type,
event->soft, event->hard);
break;
case RFKILL_OP_DEL:
- __connman_technology_remove_rfkill(event->idx);
+ __connman_technology_remove_rfkill(event->idx, type);
break;
case RFKILL_OP_CHANGE:
- __connman_technology_update_rfkill(event->idx, event->soft,
- event->hard);
+ __connman_technology_update_rfkill(event->idx, type,
+ event->soft, event->hard);
break;
default:
break;