1152286Semax# Copyright (c) 2005 Maksim Yevmenkin <m_evmenkin@yahoo.com>
2152286Semax# All rights reserved.
3152286Semax#
4152286Semax# Redistribution and use in source and binary forms, with or without
5152286Semax# modification, are permitted provided that the following conditions
6152286Semax# are met:
7152286Semax# 1. Redistributions of source code must retain the above copyright
8152286Semax#    notice, this list of conditions and the following disclaimer.
9152286Semax# 2. Redistributions in binary form must reproduce the above copyright
10152286Semax#    notice, this list of conditions and the following disclaimer in the
11152286Semax#    documentation and/or other materials provided with the distribution.
12152286Semax#
13152286Semax# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14152286Semax# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15152286Semax# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16152286Semax# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17152286Semax# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18152286Semax# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19152286Semax# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20152286Semax# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21152286Semax# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22152286Semax# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23152286Semax# SUCH DAMAGE.
24152286Semax#
25152286Semax# $FreeBSD$
26152286Semax
27152286Semax# The authentication_enable parameter controls if the device requires to
28152286Semax# authenticate the remote device at connection setup. At connection setup,
29152286Semax# only the devices with the authentication_enable parameter enabled will
30152286Semax# try to authenticate the other device.
31152286Semax#
32152286Semax# Possible values:
33152286Semax#
34152286Semax# NO  or 0	authentication disabled (default);
35152286Semax# YES or 1	authentication enabled.
36152286Semax
37152286Semax# authentication_enable="NO"
38152286Semax
39152286Semax# The class parameter is used to indicate the capabilities of the device to
40152286Semax# other devices.
41152286Semax#
42179360Semax# For more details see "Assigned Numbers - Bluetooth Baseband" document
43152286Semax#
44152286Semax# Possible value:
45152286Semax#
46152286Semax# xx:xx:xx	where xx is a hex number
47152286Semax
48152286Semax# class="ff:01:0c"
49152286Semax
50152286Semax# The connectable parameter controls whether or not the device should
51152286Semax# periodically scan for page attempts from other devices.
52152286Semax#
53152286Semax# Possible values:
54152286Semax#
55152286Semax# NO  or 0	do not scan for page attempts;
56152286Semax# YES or 1	scan for page attempts (default).
57152286Semax
58152286Semax# connectable="YES"
59152286Semax
60152286Semax# The discoverable parameter controls whether or not the device should
61152286Semax# periodically scan for inquiry requests from other devices.
62152286Semax#
63152286Semax# Possible values:
64152286Semax#
65152286Semax# NO  or 0	do not scan for inquiry requests;
66152286Semax# YES or 1	scan for inquiry requests (default).
67152286Semax
68152286Semax# discoverable="YES"
69152286Semax
70152286Semax# The encryption_mode parameter controls if the device requires encryption
71152286Semax# to the remote device at connection setup. At connection setup, only the
72152286Semax# devices with the authentication_enable parameter enabled and encryption_mode
73152286Semax# parameter enabled will try to encrypt the connection to the other device.
74152286Semax#
75152286Semax# Possible values:
76152286Semax#
77152286Semax# NONE or 0	encryption disabled (default);
78152286Semax# P2P  or 1	encryption only for point-to-point packets;
79152286Semax# ALL  or 2	encryption for both point-to-point and broadcast packets.
80152286Semax
81152286Semax# encryption_mode="NONE"
82152286Semax
83152286Semax# HCI node debug level. Higher values mean more verbose output.
84152286Semax#
85152286Semax# Possible values: 0 - 4
86152286Semax
87152286Semax# hci_debug_level="3"
88152286Semax
89152286Semax# L2CAP node debug level. Higher values mean more verbose output.
90152286Semax#
91152286Semax# Possible values: 0 - 4
92152286Semax
93152286Semax# l2cap_debug_level="3"
94152286Semax
95152286Semax# The local_name parameter provides the ability to modify the user friendly
96152286Semax# name for the device.
97152286Semax
98152286Semax# local_name="My device"
99152286Semax
100152286Semax# The role_switch parameter controls whether the local device should perform
101152286Semax# role switch. By default, if role switch is supported, the local device will
102152286Semax# try to perform role switch and become Master on incoming connection. Some
103179360Semax# devices do not support role switch and thus incoming connections from such
104152286Semax# devices will fail. If role switch is disabled then accepting device will
105152286Semax# remain Slave.
106152286Semax#
107152286Semax# NO  or 0	do not perform role switch;
108152286Semax# YES or 1	perform role switch (default).
109152286Semax
110152286Semax# role_switch="YES"
111152286Semax
112