1878ed226SJulian Elischer.\" Copyright (c) 2001-2002 Maksim Yevmenkin <m_evmenkin@yahoo.com> 2878ed226SJulian Elischer.\" All rights reserved. 3878ed226SJulian Elischer.\" 4878ed226SJulian Elischer.\" Redistribution and use in source and binary forms, with or without 5878ed226SJulian Elischer.\" modification, are permitted provided that the following conditions 6878ed226SJulian Elischer.\" are met: 7878ed226SJulian Elischer.\" 1. Redistributions of source code must retain the above copyright 8878ed226SJulian Elischer.\" notice, this list of conditions and the following disclaimer. 9878ed226SJulian Elischer.\" 2. Redistributions in binary form must reproduce the above copyright 10878ed226SJulian Elischer.\" notice, this list of conditions and the following disclaimer in the 11878ed226SJulian Elischer.\" documentation and/or other materials provided with the distribution. 12878ed226SJulian Elischer.\" 13878ed226SJulian Elischer.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14878ed226SJulian Elischer.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15878ed226SJulian Elischer.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16878ed226SJulian Elischer.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17878ed226SJulian Elischer.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18878ed226SJulian Elischer.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19878ed226SJulian Elischer.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20878ed226SJulian Elischer.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21878ed226SJulian Elischer.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22878ed226SJulian Elischer.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23878ed226SJulian Elischer.\" SUCH DAMAGE. 24878ed226SJulian Elischer.\" 250986ab12SMaksim Yevmenkin.\" $Id: ng_bluetooth.4,v 1.3 2003/05/21 19:37:35 max Exp $ 2672f00208SRuslan Ermilov.\" 27878ed226SJulian Elischer.Dd November 9, 2002 28878ed226SJulian Elischer.Dt NG_BLUETOOTH 4 29878ed226SJulian Elischer.Os 30878ed226SJulian Elischer.Sh NAME 3172f00208SRuslan Ermilov.Nm ng_bluetooth 32878ed226SJulian Elischer.Nd placeholder for global Bluetooth variables 33878ed226SJulian Elischer.Sh SYNOPSIS 34878ed226SJulian Elischer.In sys/types.h 353a08bb88SMaksim Yevmenkin.In netgraph/bluetooth/include/ng_bluetooth.h 36878ed226SJulian Elischer.Sh DESCRIPTION 37878ed226SJulian ElischerThe 38878ed226SJulian Elischer.Nm 3972f00208SRuslan Ermilovmodule is a placeholder for global Bluetooth variables. 4072f00208SRuslan ErmilovAll Bluetooth variables can be examined and changed via 41878ed226SJulian Elischer.Xr sysctl 8 . 4272f00208SRuslan Ermilov.Ss Bluetooth Variables 4372f00208SRuslan ErmilovBelow is the description of default variables. 4472f00208SRuslan ErmilovEach Bluetooth module might add its own variables to the tree. 45c60bda17SJoel Dahl.Bl -tag -width foo 4672f00208SRuslan Ermilov.It Va net.bluetooth.version 4772f00208SRuslan ErmilovA read-only integer variable that shows the current version of the 48878ed226SJulian ElischerBluetooth stack. 4972f00208SRuslan Ermilov.It Va net.bluetooth.hci.command_timeout 50c48524c2SMike PritchardA read-write integer variable that controls the Host Controller Interface 515203edcdSRuslan Ermilov(HCI) command timeout (in seconds), i.e., how long the HCI layer will wait 52878ed226SJulian Elischerfor the 53878ed226SJulian Elischer.Dv Command_Complete 54878ed226SJulian Elischeror 55878ed226SJulian Elischer.Dv Command_Status 56878ed226SJulian Elischerevent from a Bluetooth device. 5772f00208SRuslan Ermilov.It Va net.bluetooth.hci.connection_timeout 5872f00208SRuslan ErmilovA read-write integer variable that controls the HCI connection timeout, i.e.\& 59878ed226SJulian Elischerhow long the HCI layer will wait for the 60878ed226SJulian Elischer.Dv Connection_Complete 6172f00208SRuslan Ermilovevent. 6272f00208SRuslan ErmilovNormally this should not be required as Bluetooth devices have 6372f00208SRuslan Ermilovconnection timeout of their own and will send event back. 6472f00208SRuslan ErmilovThis timeout 65878ed226SJulian Elischeris required to ensure that no connection will stall in case when the HCI 6672f00208SRuslan Ermilovtransport layer is broken. 6772f00208SRuslan ErmilovBe careful when changing this variable. 68878ed226SJulian ElischerMake sure you understand what you are doing. 6972f00208SRuslan Ermilov.It Va net.bluetooth.hci.max_neighbor_age 70878ed226SJulian ElischerA read-write integer variable that controls time-to-live (in seconds) for 7172f00208SRuslan Ermiloventries in the HCI neighbor cache. 7272f00208SRuslan ErmilovEvery time a Bluetooth device performs an 73878ed226SJulian Elischer.Dv Inquiry 7472f00208SRuslan Ermilovoperation, the results will be put in cache. 7572f00208SRuslan ErmilovLater when a Bluetooth device 76878ed226SJulian Elischerestablishes a baseband connection, it will try to find the matching entry in 7772f00208SRuslan Ermilovthe cache and use it. 7872f00208SRuslan ErmilovThis might speed up establishment of the baseband 79878ed226SJulian Elischerconnection. 8072f00208SRuslan Ermilov.It Va net.bluetooth.l2cap.rtx_timeout 81878ed226SJulian ElischerA read-write integer variable that controls the Link Layer Control and 82878ed226SJulian ElischerAdaptation Protocol (L2CAP) Retransmission Timeout (RTX) (in seconds). 83878ed226SJulian ElischerEvery time the L2CAP layer submits a control command, the RTX timeout is set. 84878ed226SJulian ElischerThe value of the RTX timeout should be greater or equal to the value of 8572f00208SRuslan Ermilovthe HCI connection timeout. 8672f00208SRuslan ErmilovBe careful when changing this variable. 8772f00208SRuslan ErmilovMake sure you understand what you are doing. 8872f00208SRuslan Ermilov.It Va net.bluetooth.l2cap.ertx_timeout 89878ed226SJulian ElischerA read-write integer variable that controls the L2CAP Extended Retransmission 9072f00208SRuslan ErmilovTimeout (ERTX) (in seconds). 9172f00208SRuslan ErmilovIn some cases remote peer may respond with 92878ed226SJulian Elischer.Dv PENDING 9372f00208SRuslan Ermilovstatus to the L2CAP control command. 9472f00208SRuslan ErmilovIn this case the L2CAP command timeout is reset to the ERTX timeout value. 9572f00208SRuslan ErmilovThe value of the ERTX timeout should be 9672f00208SRuslan Ermilovgreater or equal to the value of the RTX timeout. 9772f00208SRuslan ErmilovBe careful when changing this variable. 9872f00208SRuslan ErmilovMake sure you understand what you are doing. 99878ed226SJulian Elischer.El 100878ed226SJulian Elischer.Sh SEE ALSO 10172f00208SRuslan Ermilov.Xr ng_btsocket 4 , 102878ed226SJulian Elischer.Xr ng_hci 4 , 103878ed226SJulian Elischer.Xr ng_l2cap 4 , 10472f00208SRuslan Ermilov.Xr sysctl 8 105878ed226SJulian Elischer.Sh HISTORY 106878ed226SJulian ElischerThe 107878ed226SJulian Elischer.Nm 108878ed226SJulian Elischermodule was implemented in 109878ed226SJulian Elischer.Fx 5.0 . 110878ed226SJulian Elischer.Sh AUTHORS 111*6c899950SBaptiste Daroussin.An Maksim Yevmenkin Aq Mt m_evmenkin@yahoo.com 112