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)
commit387a33e304caeeabf0c2439607fa6e726666bdf0
treeb90a6d87494d36c77489e6c8fe318ab2ce85a67f
parent68d6f6ded5bdaa89f9da0144359a7c5565991f8d
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