Bluetooth: Manually enable or disable 6LoWPAN between devices
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Wed, 11 Dec 2013 15:05:38 +0000 (17:05 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 11 Dec 2013 20:57:55 +0000 (12:57 -0800)
commit89863109e3dd562529ffd8a559b0de068d1d8502
treea83a3675a567d16b20e284002b9e97de64a7156c
parent18722c247023035b9e2e2a08a887adec2a9a6e49
Bluetooth: Manually enable or disable 6LoWPAN between devices

This is a temporary patch where user can manually enable or
disable BT 6LoWPAN functionality between devices.
Eventually the connection is established automatically if
the devices are advertising suitable capability and this patch
can be removed.

Before connecting the devices do this

echo Y > /sys/kernel/debug/bluetooth/hci0/6lowpan

This enables 6LoWPAN support and creates the bt0 interface
automatically when devices are finally connected.

Rebooting or unloading the bluetooth kernel module will also clear the
settings from the kernel.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_core.c