]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Enable LTK distribution to slave devices
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 29 Jan 2014 21:55:59 +0000 (13:55 -0800)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 13 Feb 2014 07:51:39 +0000 (09:51 +0200)
commitd641a384c51b344b4115ee996eadfa996846e689
treec77b20562a7082da7afc40782c5b5dd51d51234c
parentde470ec50dba58d14b23bd806046e98cfe3ff298
Bluetooth: Enable LTK distribution to slave devices

So far we've only been requesting the LTK to be distributed to the
master (initiator) of pairing, which is usually enough since it's the
master that will establish future connections and initiate encryption.
However, in the case that both devices support switching to the opposing
role (which seems to be increasingly common) pairing will have to
performed again since the "new" master will not have all information.

As there is no real harm in it, this patch updates the code to always
try distributing the LTK also to the slave device, thereby enabling role
switches for future connections.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Vinicius Gomes <vcgomes@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/smp.c