summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-adapter.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2006-09-25 18:39:03 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2006-09-25 18:39:03 +0000
commit3361d4251e1d494378eb2b3b80304605d002bab7 (patch)
tree053fe4a827eaf57261ef200954ec8f64e11743a2 /hcid/dbus-adapter.c
parent76391441eebe1bfebddb772419d2ba63ecc913d0 (diff)
Do byte order conversion on handle before passing it to the controller
Diffstat (limited to 'hcid/dbus-adapter.c')
-rw-r--r--hcid/dbus-adapter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hcid/dbus-adapter.c b/hcid/dbus-adapter.c
index 4312c284..417a907c 100644
--- a/hcid/dbus-adapter.c
+++ b/hcid/dbus-adapter.c
@@ -1844,7 +1844,7 @@ static gboolean create_bonding_conn_complete(GIOChannel *io, GIOCondition cond,
memset(&rp, 0, sizeof(rp));
memset(&cp, 0, sizeof(cp));
- cp.handle = cinfo.hci_handle;
+ cp.handle = htobs(cinfo.hci_handle);
memset(&rq, 0, sizeof(rq));
rq.ogf = OGF_LINK_CTL;