]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Pass initiator/acceptor information to hci_conn_security()
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 17 Jul 2014 12:35:38 +0000 (15:35 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 17 Jul 2014 12:39:39 +0000 (14:39 +0200)
commit0d89aba88cb220dcf0de65ac6a2f3789ffbf1511
tree8fbc0fa09ea36fc175d57b46a98ae28450628973
parent8e57967907075856ee0b4afbe2f618d695266def
Bluetooth: Pass initiator/acceptor information to hci_conn_security()

We're interested in whether an authentication request is because of a
remote or local action. So far hci_conn_security() has been used both
for incoming and outgoing actions (e.g. RFCOMM or L2CAP connect
requests) so without some modifications it cannot know which peer is
responsible for requesting authentication.

This patch adds a new "bool initiator" parameter to hci_conn_security()
to indicate which side is responsible for the request and updates the
current users to pass this information correspondingly.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci_core.h
include/net/bluetooth/l2cap.h
net/bluetooth/hci_conn.c
net/bluetooth/l2cap_core.c
net/bluetooth/l2cap_sock.c
net/bluetooth/mgmt.c
net/bluetooth/rfcomm/core.c