]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix setting Universal/Local bit
authorClaudio Takahasi <claudio.takahasi@openbossa.org>
Tue, 7 Jan 2014 12:07:47 +0000 (09:07 -0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Tue, 7 Jan 2014 13:32:11 +0000 (11:32 -0200)
commit865fdf9c215d5ed6be4f05ed08b7ce6efe37b4a8
treedb8e1afd4010e05534ac5a4ccedb37d9f993d443
parenta0be612a9ff382579adb6bc73459c7e5c883fa34
Bluetooth: Fix setting Universal/Local bit

This patch fixes the Bluetooth Low Energy Address type checking when
setting Universal/Local bit for the 6loWPAN network device or for the
peer device connection.

ADDR_LE_DEV_PUBLIC or ADDR_LE_DEV_RANDOM are the values allowed for
"src_type" and "dst_type" in the hci_conn struct. The Bluetooth link
type can be obtainned reading the "type" field in the same struct.

Signed-off-by: Claudio Takahasi <claudio.takahasi@openbossa.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/6lowpan.c