Lines Matching +full:device +full:- +full:handle

1 /*-
4 * SPDX-License-Identifier: BSD-2-Clause
6 * Copyright (c) 2001-2002 Maksim Yevmenkin <m_evmenkin@yahoo.com>
51 /* connection handle */ in hci_role_discovery()
77 fprintf(stdout, "Connection handle: %d\n", le16toh(rp.con_handle)); in hci_role_discovery()
103 memcpy(&cp.bdaddr, he->h_addr, sizeof(cp.bdaddr)); in hci_switch_role()
137 if (e->event == NG_HCI_EVENT_ROLE_CHANGE) { in hci_switch_role()
140 if (ep->status != 0x00) { in hci_switch_role()
142 hci_status2str(ep->status), ep->status); in hci_switch_role()
146 fprintf(stdout, "BD_ADDR: %s\n", hci_bdaddr2str(&ep->bdaddr)); in hci_switch_role()
148 (ep->role == NG_HCI_ROLE_MASTER)? "Master" : "Slave", in hci_switch_role()
149 ep->role); in hci_switch_role()
167 /* connection handle */ in hci_read_link_policy_settings()
193 fprintf(stdout, "Connection handle: %d\n", le16toh(rp.con_handle)); in hci_read_link_policy_settings()
210 /* connection handle */ in hci_write_link_policy_settings()
249 "\nThe Role_Discovery command is used for a Bluetooth device to determine\n" \
250 "which role the device is performing for a particular Connection Handle.\n" \
251 "The connection handle must be a connection handle for an ACL connection.\n\n" \
252 "\t<connection_handle> - dddd; connection handle",
257 "\nThe Switch_Role command is used for a Bluetooth device to switch the\n" \
258 "current role the device is performing for a particular connection with\n" \
259 "another specified Bluetooth device. The BD_ADDR command parameter indicates\n"\
261 "the requested new role that the local device performs. Note: the BD_ADDR\n" \
262 "command parameter must specify a Bluetooth device for which a connection\n"
264 "\t<BD_ADDR> - xx:xx:xx:xx:xx:xx BD_ADDR or name\n" \
265 "\t<role> - dd; role; 0 - Master, 1 - Slave",
271 "handle. The link policy settings parameter determines the behavior of the\n" \
272 "local Link Manager when it receives a request from a remote device or it\n" \
273 "determines itself to change the master-slave role or to enter the hold,\n" \
275 "reject such a request from the remote device, and may even autonomously\n" \
277 "for the corresponding connection handle. The connection handle must be a\n" \
278 "connection handle for an ACL connection.\n\n" \
279 "\t<connection_handle> - dddd; connection handle",
285 "handle. The link policy settings parameter determines the behavior of the\n" \
286 "local Link Manager when it receives a request from a remote device or it\n" \
287 "determines itself to change the master-slave role or to enter the hold,\n" \
289 "reject such a request from the remote device, and may even autonomously\n" \
291 "for the corresponding connection handle. The connection handle must be a\n" \
292 "connection handle for an ACL connection. Multiple Link Manager policies may\n"\
295 "\t<connection_handle> - dddd; connection handle\n" \
296 "\t<settings> - xxxx; settings\n" \
297 "\t\t0x0000 - Disable All LM Modes (Default)\n" \
298 "\t\t0x0001 - Enable Master Slave Switch\n" \
299 "\t\t0x0002 - Enable Hold Mode\n" \
300 "\t\t0x0004 - Enable Sniff Mode\n" \
301 "\t\t0x0008 - Enable Park Mode\n",