summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Paulo Rechi Vita <jprvita@openbossa.org>2012-02-24 16:33:39 -0300
committerJoão Paulo Rechi Vita <jprvita@openbossa.org>2012-02-27 17:40:09 -0300
commit95822169b1b45a63dfbe7a69e32b4c9badd1a7b4 (patch)
tree137abe56b42ace6db9662c4427f9cd7b8bccf354
parent7dea20adcf8ca4be316f29d783d54cbaa80e20bd (diff)
downloadbluez-le-docs-95822169b1b45a63dfbe7a69e32b4c9badd1a7b4.tar.gz
bluez-le-docs-95822169b1b45a63dfbe7a69e32b4c9badd1a7b4.tar.xz
bluez-le-docs-95822169b1b45a63dfbe7a69e32b4c9badd1a7b4.zip
howto: remove refs to enable_mgmt and related texts
-rw-r--r--howto.tex24
1 files changed, 13 insertions, 11 deletions
diff --git a/howto.tex b/howto.tex
index 45006b2..225f4bf 100644
--- a/howto.tex
+++ b/howto.tex
@@ -139,20 +139,24 @@ $ cd ..
$ sudo dpkg -i linux-image* linux-headers*
\end{verbatim}
-After the installation is complete, reboot to use the new kernel. To enable the
-new MGMT interface a parameter should passed to the {\em bluetooth} kernel
-module. Another parameter is also needed to enable LE discovery. After
+After the installation is complete, reboot to use the new kernel. To enable LE
+discovery a parameter should passed to the {\em bluetooth} kernel module. After
unloading all bluetooth adapters ({\em hci0} to {\em hciN}) and bluetooth
kernel modules, the {\em bluetooth} module should be reloaded with {\em
-enable\_mgmt=1} and {\em enable\_le=1} (make sure substitute {\em hciX} with
-the name of the adapter, for all bluetooth adapters on the system).
+enable\_le=1} (make sure you substitute {\em hciX} with the name of the
+adapter, for all bluetooth adapters on the system).
\begin{verbatim}
+$ sudo service bluetooth stop
$ sudo hciconfig hciX down
-$ sudo btusb bluetooth
-$ sudo modprobe bluetooth enable_mgmt=1 enable_le=1
+$ sudo rmmod bnep rfcomm btusb bluetooth
+$ sudo modprobe bluetooth enable_le=1
+$ sudo modprobe btusb
\end{verbatim}
+To check if the {\em bluetooth} module has been loaded with correct parameters,
+refer to Section \ref{sec:test-mgmt}.
+
\subsection{Userspace}
@@ -200,7 +204,7 @@ $ sudo src/bluetoothd -nd
% bluetoothd traces, valgrind
-\section{Testing management interface}
+\section{Testing management interface} \label{sec:test-mgmt}
The Bluetooth Management Interface is a new kernel-userspace API, which
replaces the traditional HCI interface. It aims to move some core host features
@@ -216,11 +220,9 @@ interface is not enabled in the kernel, the plugin system will fallback to HCI
plugin.
To check if the MGMT interface and LE discovery are enabled in the kernel, the
-following commands should return a \verb|Y|.
+following command should return a \verb|Y|.
\begin{verbatim}
-$ cat /sys/module/bluetooth/parameters/enable_mgmt
-Y
$ cat /sys/module/bluetooth/parameters/enable_le
Y
\end{verbatim}