2002-11-20 23:01:59 +00:00
|
|
|
.\" Copyright (c) 2001-2002 Maksim Yevmenkin <m_evmenkin@yahoo.com>
|
|
|
|
.\" All rights reserved.
|
2003-05-20 21:01:21 +00:00
|
|
|
.\"
|
2002-11-20 23:01:59 +00:00
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
2003-05-20 21:01:21 +00:00
|
|
|
.\"
|
2002-11-20 23:01:59 +00:00
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
2003-05-20 21:01:21 +00:00
|
|
|
.\"
|
2003-10-12 22:04:24 +00:00
|
|
|
.\" $Id: ng_hci.4,v 1.3 2003/05/21 19:37:35 max Exp $
|
2002-11-20 23:01:59 +00:00
|
|
|
.\" $FreeBSD$
|
2003-05-20 21:01:21 +00:00
|
|
|
.\"
|
2002-11-20 23:01:59 +00:00
|
|
|
.Dd June 25, 2002
|
|
|
|
.Dt NG_HCI 4
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
2003-05-20 21:01:21 +00:00
|
|
|
.Nm ng_hci
|
|
|
|
.Nd Netgraph node type that is also a Bluetooth Host Controller Interface
|
2002-11-20 23:01:59 +00:00
|
|
|
(HCI) layer
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.In sys/types.h
|
2003-11-11 03:27:08 +00:00
|
|
|
.In netgraph/bluetooth/include/ng_hci.h
|
2002-11-20 23:01:59 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
2003-05-20 21:01:21 +00:00
|
|
|
.Nm hci
|
2002-11-20 23:01:59 +00:00
|
|
|
node type is a Netgraph node type that implements Bluetooth Host Controller
|
2003-05-20 21:01:21 +00:00
|
|
|
Interface (HCI) layer as per chapter H1 of the Bluetooth Specification Book
|
2002-11-20 23:01:59 +00:00
|
|
|
v1.1.
|
|
|
|
.Sh INTRODUCTION TO BLUETOOTH
|
2003-05-20 21:01:21 +00:00
|
|
|
Bluetooth is a short-range radio link intended to replace the cable(s)
|
|
|
|
connecting portable and/or fixed electronic devices.
|
|
|
|
Bluetooth operates in the unlicensed ISM band at 2.4 GHz.
|
|
|
|
The Bluetooth protocol uses a
|
|
|
|
combination of circuit and packet switching.
|
|
|
|
Bluetooth can support an
|
2002-11-20 23:01:59 +00:00
|
|
|
asynchronous data channel, up to three simultaneous synchronous voice
|
2003-05-20 21:01:21 +00:00
|
|
|
channels, or a channel which simultaneously supports asynchronous data
|
|
|
|
and synchronous voice.
|
|
|
|
Each voice channel supports a 64 kb/s synchronous
|
|
|
|
(voice) channel in each direction.
|
|
|
|
The asynchronous channel can support
|
|
|
|
maximal 723.2 kb/s asymmetric (and still up to 57.6 kb/s in the return
|
2002-11-20 23:01:59 +00:00
|
|
|
direction), or 433.9 kb/s symmetric.
|
|
|
|
.Pp
|
2003-05-20 21:01:21 +00:00
|
|
|
The Bluetooth system provides a point-to-point connection (only two
|
|
|
|
Bluetooth units involved), or a point-to-multipoint connection.
|
|
|
|
In the point-to-multipoint connection,
|
|
|
|
the channel is shared among several Bluetooth units.
|
|
|
|
Two or more units sharing the same channel form a
|
|
|
|
.Dq piconet .
|
|
|
|
One Bluetooth unit acts as the master of the piconet, whereas the other
|
|
|
|
unit(s) acts as slave(s).
|
|
|
|
Up to seven slaves can be active in the piconet.
|
2002-11-20 23:01:59 +00:00
|
|
|
In addition, many more slaves can remain locked to the master in a so-called
|
2003-05-20 21:01:21 +00:00
|
|
|
parked state.
|
|
|
|
These parked slaves cannot be active on the channel, but remain
|
|
|
|
synchronized to the master.
|
|
|
|
Both for active and parked slaves, the channel
|
2002-11-20 23:01:59 +00:00
|
|
|
access is controlled by the master.
|
2003-05-20 21:01:21 +00:00
|
|
|
.Pp
|
|
|
|
Multiple piconets with overlapping coverage areas form a
|
|
|
|
.Dq scatternet .
|
|
|
|
Each piconet can only have a single master.
|
|
|
|
However, slaves can participate
|
|
|
|
in different piconets on a time-division multiplex basis.
|
|
|
|
In addition, a master in one piconet can be a slave in another piconet.
|
|
|
|
The piconets shall not be frequency-synchronized.
|
|
|
|
Each piconet has its own hopping channel.
|
|
|
|
.Ss Time Slots
|
|
|
|
The channel is divided into time slots, each 625 usec in length.
|
|
|
|
The time
|
|
|
|
slots are numbered according to the Bluetooth clock of the piconet master.
|
|
|
|
The slot numbering ranges from 0 to 2^27 -1 and is cyclic with a cycle length
|
|
|
|
of 2^27.
|
|
|
|
In the time slots, master and slave can transmit packets.
|
|
|
|
.Ss SCO Link
|
|
|
|
The SCO link is a symmetric, point-to-point link between the master and a
|
|
|
|
specific slave.
|
|
|
|
The SCO link reserves slots and can therefore be considered
|
|
|
|
as a circuit-switched connection between the master and the slave.
|
|
|
|
The SCO link typically supports time-bounded information like voice.
|
|
|
|
The master can
|
|
|
|
support up to three SCO links to the same slave or to different slaves.
|
|
|
|
A slave can support up to three SCO links from the same master, or two SCO
|
|
|
|
links if the links originate from different masters.
|
|
|
|
SCO packets are never retransmitted.
|
|
|
|
.Ss ACL Link
|
|
|
|
In the slots not reserved for SCO links, the master can exchange packets
|
|
|
|
with any slave on a per-slot basis.
|
|
|
|
The ACL link provides a packet-switched
|
|
|
|
connection between the master and all active slaves participating in the
|
|
|
|
piconet.
|
|
|
|
Both asynchronous and isochronous services are supported.
|
|
|
|
Between a master and a slave only a single ACL link can exist.
|
|
|
|
For most ACL packets,
|
2002-11-20 23:01:59 +00:00
|
|
|
packet retransmission is applied to assure data integrity.
|
|
|
|
.Sh HOST CONTROLLER INTERFACE (HCI)
|
2003-05-20 21:01:21 +00:00
|
|
|
The HCI provides a command interface to the baseband controller and link
|
|
|
|
manager, and access to hardware status and control registers.
|
|
|
|
This interface
|
2002-11-20 23:01:59 +00:00
|
|
|
provides a uniform method of accessing the Bluetooth baseband capabilities.
|
|
|
|
.Pp
|
|
|
|
The HCI layer on the Host exchanges data and commands with the HCI firmware
|
2003-05-20 21:01:21 +00:00
|
|
|
on the Bluetooth hardware.
|
2004-07-03 18:29:24 +00:00
|
|
|
The Host Controller Transport Layer (i.e., physical
|
2002-11-20 23:01:59 +00:00
|
|
|
bus) driver provides both HCI layers with the ability to exchange information
|
|
|
|
with each other.
|
|
|
|
.Pp
|
2003-05-20 21:01:21 +00:00
|
|
|
The Host will receive asynchronous notifications of HCI events independent
|
|
|
|
of which Host Controller Transport Layer is used.
|
|
|
|
HCI events are used for
|
|
|
|
notifying the Host when something occurs.
|
|
|
|
When the Host discovers that an
|
|
|
|
event has occurred it will then parse the received event packet to determine
|
2002-11-20 23:01:59 +00:00
|
|
|
which event occurred.
|
|
|
|
The next sections specify the HCI packet formats.
|
2003-05-20 21:01:21 +00:00
|
|
|
.Ss HCI Command Packet
|
2002-11-20 23:01:59 +00:00
|
|
|
.Bd -literal -offset indent
|
|
|
|
#define NG_HCI_CMD_PKT 0x01
|
|
|
|
typedef struct {
|
|
|
|
u_int8_t type; /* MUST be 0x1 */
|
|
|
|
u_int16_t opcode; /* OpCode */
|
|
|
|
u_int8_t length; /* parameter(s) length in bytes */
|
|
|
|
} __attribute__ ((packed)) ng_hci_cmd_pkt_t;
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
The HCI command packet is used to send commands to the Host Controller
|
2003-05-20 21:01:21 +00:00
|
|
|
from the Host.
|
|
|
|
When the Host Controller completes most of the commands,
|
|
|
|
a Command Complete event is sent to the Host.
|
|
|
|
Some commands do not receive
|
|
|
|
a Command Complete event when they have been completed.
|
|
|
|
Instead, when the
|
|
|
|
Host Controller receives one of these commands the Host Controller sends
|
|
|
|
a Command Status event back to the Host when it has begun to execute the
|
|
|
|
command.
|
|
|
|
Later on, when the actions associated with the command have finished,
|
|
|
|
an event that is associated with the sent command will be sent by the Host
|
2002-11-20 23:01:59 +00:00
|
|
|
Controller to the Host.
|
2003-05-20 21:01:21 +00:00
|
|
|
.Ss HCI Event Packet
|
2002-11-20 23:01:59 +00:00
|
|
|
.Bd -literal -offset indent
|
|
|
|
#define NG_HCI_EVENT_PKT 0x04
|
|
|
|
typedef struct {
|
|
|
|
u_int8_t type; /* MUST be 0x4 */
|
|
|
|
u_int8_t event; /* event */
|
|
|
|
u_int8_t length; /* parameter(s) length in bytes */
|
|
|
|
} __attribute__ ((packed)) ng_hci_event_pkt_t;
|
|
|
|
.Ed
|
|
|
|
.Pp
|
2003-05-20 21:01:21 +00:00
|
|
|
The HCI event packet is used by the Host Controller to notify the Host
|
2002-11-20 23:01:59 +00:00
|
|
|
when events occur.
|
2003-05-20 21:01:21 +00:00
|
|
|
.Ss HCI ACL Data Packet
|
2002-11-20 23:01:59 +00:00
|
|
|
.Bd -literal -offset indent
|
|
|
|
#define NG_HCI_ACL_DATA_PKT 0x02
|
|
|
|
typedef struct {
|
|
|
|
u_int8_t type; /* MUST be 0x2 */
|
|
|
|
u_int16_t con_handle; /* connection handle + PB + BC flags */
|
|
|
|
u_int16_t length; /* payload length in bytes */
|
|
|
|
} __attribute__ ((packed)) ng_hci_acldata_pkt_t;
|
|
|
|
.Ed
|
|
|
|
.Pp
|
2003-05-20 21:01:21 +00:00
|
|
|
HCI ACL data packets are used to exchange ACL data between the Host and
|
2002-11-20 23:01:59 +00:00
|
|
|
Host Controller.
|
2003-05-20 21:01:21 +00:00
|
|
|
.Ss HCI SCO Data Packet
|
2002-11-20 23:01:59 +00:00
|
|
|
.Bd -literal -offset indent
|
|
|
|
#define NG_HCI_SCO_DATA_PKT 0x03
|
|
|
|
typedef struct {
|
|
|
|
u_int8_t type; /* MUST be 0x3 */
|
|
|
|
u_int16_t con_handle; /* connection handle + reserved bits */
|
|
|
|
u_int8_t length; /* payload length in bytes */
|
|
|
|
} __attribute__ ((packed)) ng_hci_scodata_pkt_t;
|
|
|
|
.Ed
|
|
|
|
.Pp
|
2003-05-20 21:01:21 +00:00
|
|
|
HCI SCO data packets are used to exchange SCO data between the Host and
|
2002-11-20 23:01:59 +00:00
|
|
|
Host Controller.
|
|
|
|
.Sh HCI INITIALIZATION
|
|
|
|
On initialization, HCI control application must issue the following HCI
|
|
|
|
commands (in any order).
|
2003-05-20 21:01:21 +00:00
|
|
|
.Bl -tag -width indent
|
2002-11-20 23:01:59 +00:00
|
|
|
.It Dv Read_BD_ADDR
|
|
|
|
To obtain BD_ADDR of the Bluetooth unit.
|
|
|
|
.It Dv Read_Local_Supported_Features
|
|
|
|
To obtain the list of features supported by Bluetooth unit.
|
|
|
|
.It Dv Read_Buffer_Size
|
2003-05-20 21:01:21 +00:00
|
|
|
To determine the maximum size of HCI ACL and SCO HCI data packets (excluding
|
|
|
|
header) that can be sent from the Host to the Host Controller.
|
|
|
|
There are also
|
|
|
|
two additional return parameters that specify the total number of HCI ACL and
|
|
|
|
SCO data packets that the Host Controller can have waiting for transmission in
|
|
|
|
its buffers.
|
2002-11-20 23:01:59 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
2003-05-20 21:01:21 +00:00
|
|
|
As soon as HCI initialization has been successfully performed, HCI control
|
2002-11-20 23:01:59 +00:00
|
|
|
application must turn on
|
|
|
|
.Dq inited
|
2003-05-20 21:01:21 +00:00
|
|
|
bit for the node.
|
2004-08-24 04:05:52 +00:00
|
|
|
Once HCI node has been initialized all upstream hooks
|
2003-05-20 21:01:21 +00:00
|
|
|
will receive a
|
2002-11-20 23:01:59 +00:00
|
|
|
.Dv NGM_HCI_NODE_UP
|
|
|
|
Netgraph message defined as follows.
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
#define NGM_HCI_NODE_UP 112 /* HCI -> Upper */
|
|
|
|
typedef struct {
|
|
|
|
u_int16_t pkt_size; /* max. ACL/SCO packet size (w/o hdr) */
|
|
|
|
u_int16_t num_pkts; /* ACL/SCO packet queue size */
|
|
|
|
u_int16_t reserved; /* place holder */
|
|
|
|
bdaddr_t bdaddr; /* bdaddr */
|
|
|
|
} ng_hci_node_up_ep;
|
|
|
|
.Ed
|
|
|
|
.Sh HCI FLOW CONTROL
|
2004-07-03 18:29:24 +00:00
|
|
|
HCI layer performs flow control on baseband connection basis (i.e., ACL and
|
2003-05-20 21:01:21 +00:00
|
|
|
SCO link).
|
|
|
|
Each baseband connection has
|
|
|
|
.Dq "connection handle"
|
|
|
|
and queue of outgoing data packets.
|
|
|
|
Upper layers protocols are allowed to
|
|
|
|
send up to
|
|
|
|
.Dv ( num_pkts
|
|
|
|
\-
|
2002-11-20 23:01:59 +00:00
|
|
|
.Dv pending )
|
2003-05-20 21:01:21 +00:00
|
|
|
packets at one time.
|
|
|
|
HCI layer will send
|
|
|
|
.Dv NGM_HCI_SYNC_CON_QUEUE
|
|
|
|
Netgraph messages to inform upper layers about current queue state for each
|
|
|
|
connection handle.
|
|
|
|
The
|
|
|
|
.Dv NGM_HCI_SYNC_CON_QUEUE
|
2002-11-20 23:01:59 +00:00
|
|
|
Netgraph message is defined as follows.
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
#define NGM_HCI_SYNC_CON_QUEUE 113 /* HCI -> Upper */
|
|
|
|
typedef struct {
|
|
|
|
u_int16_t con_handle; /* connection handle */
|
|
|
|
u_int16_t completed; /* number of completed packets */
|
|
|
|
} ng_hci_sync_con_queue_ep;
|
|
|
|
.Ed
|
|
|
|
.Sh HOOKS
|
|
|
|
This node type supports the following hooks:
|
2003-05-20 21:01:21 +00:00
|
|
|
.Bl -tag -width indent
|
2002-11-20 23:01:59 +00:00
|
|
|
.It Dv drv
|
2003-05-20 21:01:21 +00:00
|
|
|
Bluetooth Host Controller Transport Layer hook.
|
|
|
|
Single HCI packet contained in single
|
|
|
|
.Vt mbuf
|
2002-11-20 23:01:59 +00:00
|
|
|
structure.
|
|
|
|
.It Dv acl
|
2003-05-20 21:01:21 +00:00
|
|
|
Upper layer protocol/node is connected to the hook.
|
|
|
|
Single HCI ACL data packet contained in single
|
|
|
|
.Vt mbuf
|
2002-11-20 23:01:59 +00:00
|
|
|
structure.
|
|
|
|
.It Dv sco
|
2003-05-20 21:01:21 +00:00
|
|
|
Upper layer protocol/node is connected to the hook.
|
|
|
|
Single HCI SCO data packet contained in single
|
|
|
|
.Vt mbuf
|
2002-11-20 23:01:59 +00:00
|
|
|
structure.
|
|
|
|
.It Dv raw
|
2003-05-20 21:01:21 +00:00
|
|
|
Raw hook.
|
|
|
|
Every HCI frame (including HCI command frame) that goes in
|
|
|
|
or out will be delivered to the hook.
|
|
|
|
Usually the Bluetooth raw HCI socket layer is connected to the hook.
|
|
|
|
Single HCI frame contained in single
|
|
|
|
.Vt mbuf
|
2002-11-20 23:01:59 +00:00
|
|
|
structure.
|
|
|
|
.El
|
|
|
|
.Sh BLUETOOTH UPPER LAYER PROTOCOLS INTERFACE (LP CONTROL MESSAGES)
|
2003-05-20 21:01:21 +00:00
|
|
|
.Bl -tag -width indent
|
2002-11-20 23:01:59 +00:00
|
|
|
.It Dv NGM_HCI_LP_CON_REQ
|
2003-05-20 21:01:21 +00:00
|
|
|
Requests the lower protocol to create a connection.
|
|
|
|
If a physical link
|
2002-11-20 23:01:59 +00:00
|
|
|
to the remote device does not exist, this message must be sent to the lower
|
|
|
|
protocol (baseband) to establish the physical connection.
|
|
|
|
.It Dv NGM_HCI_LP_DISCON_REQ
|
2003-05-20 21:01:21 +00:00
|
|
|
Requests the lower protocol (baseband) to terminate a connection.
|
2002-11-20 23:01:59 +00:00
|
|
|
.It Dv NGM_HCI_LP_CON_CFM
|
|
|
|
Confirms success or failure of the
|
2003-05-20 21:01:21 +00:00
|
|
|
.Dv NGM_HCI_LP_CON_REQ
|
|
|
|
request to establish a lower layer (baseband) connection.
|
|
|
|
This includes passing the authentication challenge if authentication is
|
2002-11-20 23:01:59 +00:00
|
|
|
required to establish the physical link.
|
|
|
|
.It Dv NGM_HCI_LP_CON_IND
|
2003-05-20 21:01:21 +00:00
|
|
|
Indicates the lower protocol (baseband) has successfully established
|
|
|
|
incoming connection.
|
2002-11-20 23:01:59 +00:00
|
|
|
.It Dv NGM_HCI_LP_CON_RSP
|
|
|
|
A response accepting or rejecting the previous connection indication request.
|
|
|
|
.It Dv NGM_HCI_LP_DISCON_IND
|
2003-05-20 21:01:21 +00:00
|
|
|
Indicates the lower protocol (baseband) has terminated connection.
|
|
|
|
This could be a response to
|
2002-11-20 23:01:59 +00:00
|
|
|
.Dv NGM_HCI_LP_DISCON_REQ
|
|
|
|
or a timeout event.
|
|
|
|
.It Dv NGM_HCI_LP_QOS_REQ
|
2003-05-20 21:01:21 +00:00
|
|
|
Requests the lower protocol (baseband) to accommodate a particular QoS
|
2002-11-20 23:01:59 +00:00
|
|
|
parameter set.
|
|
|
|
.It Dv NGM_HCI_LP_QOS_CFM
|
|
|
|
Confirms success or failure of the request for a given quality of service.
|
|
|
|
.It Dv NGM_HCI_LP_QOS_IND
|
2003-05-20 21:01:21 +00:00
|
|
|
Indicates the lower protocol (baseband) has detected a violation of the QoS
|
2002-11-20 23:01:59 +00:00
|
|
|
agreement.
|
|
|
|
.El
|
|
|
|
.Sh NETGRAPH CONTROL MESSAGES
|
|
|
|
This node type supports the generic control messages, plus the following:
|
2003-05-20 21:01:21 +00:00
|
|
|
.Bl -tag -width indent
|
2002-11-20 23:01:59 +00:00
|
|
|
.It Dv NGM_HCI_NODE_GET_STATE
|
|
|
|
Returns current state for the node.
|
|
|
|
.It Dv NGM_HCI_NODE_INIT
|
|
|
|
Turn on
|
2003-05-20 21:01:21 +00:00
|
|
|
.Dq inited
|
2002-11-20 23:01:59 +00:00
|
|
|
bit for the node.
|
|
|
|
.It Dv NGM_HCI_NODE_GET_DEBUG
|
|
|
|
Returns an integer containing the current debug level for the node.
|
|
|
|
.It Dv NGM_HCI_NODE_SET_DEBUG
|
|
|
|
This command takes an integer argument and sets current debug level
|
|
|
|
for the node.
|
|
|
|
.It Dv NGM_HCI_NODE_GET_BUFFER
|
|
|
|
Returns current state of data buffers.
|
|
|
|
.It Dv NGM_HCI_NODE_GET_BDADDR
|
|
|
|
Returns BD_ADDR as cached in the node.
|
|
|
|
.It Dv NGM_HCI_NODE_GET_FEATURES
|
|
|
|
Returns the list of features supported by hardware (as cached by the node).
|
|
|
|
.It Dv NGM_HCI_NODE_GET_NEIGHBOR_CACHE
|
|
|
|
Returns content of the neighbor cache.
|
|
|
|
.It Dv NGM_HCI_NODE_FLUSH_NEIGHBOR_CACHE
|
|
|
|
Remove all neighbor cache entries.
|
|
|
|
.It Dv NGM_HCI_NODE_GET_CON_LIST
|
2004-07-03 18:29:24 +00:00
|
|
|
Returns list of active baseband connections (i.e., ACL and SCO links).
|
2002-11-20 23:01:59 +00:00
|
|
|
.It Dv NGM_HCI_NODE_GET_STAT
|
|
|
|
Returns various statistic counters.
|
|
|
|
.It Dv NGM_HCI_NODE_RESET_STAT
|
|
|
|
Resets all statistic counters to zero.
|
|
|
|
.It NGM_HCI_NODE_SET_LINK_POLICY_SETTINGS_MASK
|
2003-05-20 21:01:21 +00:00
|
|
|
Sets current link policy settings mask.
|
|
|
|
After the new ACL connection is
|
|
|
|
created the HCI node will try set link policy for the ACL connection.
|
|
|
|
By default, every supported Link Manager (LM) mode will be enabled.
|
|
|
|
User can
|
|
|
|
override this by setting link policy settings mask which specifies LM
|
2002-11-20 23:01:59 +00:00
|
|
|
modes to be enabled.
|
|
|
|
.It NGM_HCI_NODE_GET_LINK_POLICY_SETTINGS_MASK
|
|
|
|
Returns current link policy settings mask.
|
|
|
|
.It NGM_HCI_NODE_SET_PACKET_MASK
|
2003-05-20 21:01:21 +00:00
|
|
|
Sets current packet mask.
|
|
|
|
When new baseband (ACL or SCO) connection is
|
2002-11-20 23:01:59 +00:00
|
|
|
created the HCI node will specify every packet type supported by the device.
|
|
|
|
User can override this by setting packet mask which specifies packet types
|
|
|
|
to be used for new baseband connections.
|
|
|
|
.It NGM_HCI_NODE_GET_PACKET_MASK
|
|
|
|
Returns current packet mask.
|
2003-05-10 21:44:42 +00:00
|
|
|
.It NGM_HCI_NODE_SET_ROLE_SWITCH
|
2003-05-20 21:01:21 +00:00
|
|
|
Sets the value of the role switch.
|
|
|
|
Role switch is enabled when this value is not zero.
|
|
|
|
This is the default state.
|
2004-06-21 17:42:49 +00:00
|
|
|
Note that actual role switch at Bluetooth link level will only be performed if
|
2003-05-20 21:01:21 +00:00
|
|
|
hardware supports role switch and it was enabled.
|
2003-05-10 21:44:42 +00:00
|
|
|
.It NGM_HCI_NODE_GET_ROLE_SWITCH
|
|
|
|
Returns the value of the role switch for the node.
|
2002-11-20 23:01:59 +00:00
|
|
|
.El
|
|
|
|
.Sh SHUTDOWN
|
2003-05-20 21:01:21 +00:00
|
|
|
This node shuts down upon receipt of a
|
|
|
|
.Dv NGM_SHUTDOWN
|
|
|
|
control message, or
|
2002-11-20 23:01:59 +00:00
|
|
|
when all hooks have been disconnected.
|
|
|
|
.Sh BUGS
|
2003-05-20 21:01:21 +00:00
|
|
|
Most likely.
|
|
|
|
Please report if found.
|
2002-11-20 23:01:59 +00:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr netgraph 4 ,
|
2003-05-20 21:01:21 +00:00
|
|
|
.Xr hccontrol 8 ,
|
|
|
|
.Xr ngctl 8
|
2002-11-20 23:01:59 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
2003-05-20 21:01:21 +00:00
|
|
|
.Nm hci
|
2002-11-20 23:01:59 +00:00
|
|
|
node type was implemented in
|
|
|
|
.Fx 5.0 .
|
|
|
|
.Sh AUTHORS
|
|
|
|
.An Maksim Yevmenkin Aq m_evmenkin@yahoo.com
|