diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-09-20 08:47:57 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2006-09-20 08:47:57 +0000 |
commit | 8ee8041f8ad6aeb75ff9d9dba3d27d6663da247a (patch) | |
tree | bbb949fd1d1f6d9aea0c7cf29b342c6c68015068 | |
parent | 8f7072550e48fd36d47d8b0d7ba442d9ccd200ff (diff) |
Fix endian issue with periodic inquiry
-rw-r--r-- | hcid/dbus-adapter.c | 4 | ||||
-rw-r--r-- | tools/hcitool.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/hcid/dbus-adapter.c b/hcid/dbus-adapter.c index 2989536c..1c6213c4 100644 --- a/hcid/dbus-adapter.c +++ b/hcid/dbus-adapter.c @@ -2316,8 +2316,8 @@ static DBusHandlerResult handle_dev_start_periodic_req(DBusConnection *conn, DBu memset(&cp, 0, sizeof(cp)); memcpy(&cp.lap, lap, 3); - cp.max_period = 24; - cp.min_period = 16; + cp.max_period = htobs(24); + cp.min_period = htobs(16); cp.length = 0x08; cp.num_rsp = 0x00; diff --git a/tools/hcitool.c b/tools/hcitool.c index 4ae4226d..88c320b6 100644 --- a/tools/hcitool.c +++ b/tools/hcitool.c @@ -888,8 +888,8 @@ static void cmd_spinq(int dev_id, int argc, char **argv) memset(&cp, 0, sizeof(cp)); memcpy(cp.lap, lap, 3); - cp.max_period = 16; - cp.min_period = 10; + cp.max_period = htobs(16); + cp.min_period = htobs(10); cp.length = 8; cp.num_rsp = 0; |