From 5624d6cc20e5fb63d4b34b672b2421eb38b849e5 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 26 Jun 2003 21:17:37 +0000 Subject: Add functions for park mode --- include/hci_lib.h | 2 ++ src/hci.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/hci_lib.h b/include/hci_lib.h index 31995411..6b7b6f63 100644 --- a/include/hci_lib.h +++ b/include/hci_lib.h @@ -84,6 +84,8 @@ int hci_authenticate_link(int dd, uint16_t handle, int to); int hci_encrypt_link(int dd, uint16_t handle, int on, int to); // role == 0 is master, 1 is slave int hci_switch_role(int dd, bdaddr_t peer, int role, int to); +int hci_park_mode(int dd, uint16_t handle, uint16_t max_interval, uint16_t min_interval, int to); +int hci_exit_park_mode(int dd, uint16_t handle, int to); int hci_for_each_dev(int flag, int(*func)(int s, int dev_id, long arg), long arg); int hci_get_route(bdaddr_t *bdaddr); diff --git a/src/hci.c b/src/hci.c index 676b8af8..b01dec97 100644 --- a/src/hci.c +++ b/src/hci.c @@ -1150,7 +1150,7 @@ int hci_switch_role(int dd, bdaddr_t peer, int role, int to) return 0; } -int hci_park_mode (int dd, uint16_t handle, uint16_t max_interval, uint16_t min_interval, int to) +int hci_park_mode(int dd, uint16_t handle, uint16_t max_interval, uint16_t min_interval, int to) { park_mode_cp cp; evt_mode_change rp; -- cgit