doc: Add the mgmt interface versions and how the map to kernel releases

This commit is contained in:
Marcel Holtmann 2014-01-28 18:30:53 -08:00
parent ca7f6e5f92
commit ba8a3e83e4

View File

@ -4,12 +4,29 @@ Bluetooth Management API
Copyright (C) 2008-2009 Marcel Holtmann <marcel@holtmann.org>
Overview
========
This document describes the format of data used for communicating with
the kernel using a so-called Bluetooth Management sockets. These sockets
are available starting with Linux kernel version 3.4, and can be created
by setting the hci_channel member of struct sockaddr_hci to
HCI_CHANNEL_CONTROL (3) when creating a raw HCI socket. In C the needed
code would look something like the following:
are available starting with Linux kernel version 3.4
The following kernel versions introduced new commands to the Bluetooth
Management API:
Linux kernel v3.4 Version 1.0
Linux kernel v3.5 Version 1.1
Linux kernel v3.7 Version 1.2
Linux kernel v3.9 Version 1.3
Linux kernel v3.13 Version 1.4
Example
=======
The Bluetooth management sockets can be created by setting the hci_channel
member of struct sockaddr_hci to HCI_CHANNEL_CONTROL (3) when creating a
raw HCI socket. In C the needed code would look something like the following:
int mgmt_create(void)
{