]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix LE responder/initiator address setting
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 24 Mar 2014 18:21:51 +0000 (20:21 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 26 Mar 2014 16:31:35 +0000 (09:31 -0700)
commitf20e62ac9e4b4db7becc6fefca5ea63210d1209c
tree072d5f23ee4adc4f195cf59fc516757a1d095e50
parent683e9fab89733581dc64f9f6a25169c4a05efb82
Bluetooth: Fix LE responder/initiator address setting

Once directed advertising is brought into the picture simply the lack of
an hci_conn object when an le_conn_complete event occurs is no longer a
reliable indication that the responder & initiator values need to be
set based on our advertising address type.

This patch moves the code for setting these values outside of the
"if (!conn)" branch and ensures that they get set for any connection
where we are in the slave role.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_event.c