From 3361d4251e1d494378eb2b3b80304605d002bab7 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 25 Sep 2006 18:39:03 +0000 Subject: Do byte order conversion on handle before passing it to the controller --- hcid/dbus-adapter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit