]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix updating Identity Address in L2CAP channels
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 18 Feb 2014 19:41:33 +0000 (21:41 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 18 Feb 2014 19:48:55 +0000 (11:48 -0800)
commit800eafefa17abd4eb718938291172372c361e861
treeb90a6d87494d36c77489e6c8fe318ab2ce85a67f
parent20e9d53f6d6c08f982f23e74979b95a9dd4a7102
Bluetooth: Fix updating Identity Address in L2CAP channels

When we receive a remote identity address during SMP key distribution we
should ensure that any associated L2CAP channel instances get their
address information correspondingly updated (so that e.g. doing
getpeername on associated sockets returns the correct address).

This patch adds a new L2CAP core function l2cap_conn_update_id_addr()
which is used to iterate through all L2CAP channels associated with a
connection and update their address information.

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