]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix properly ignoring unexpected SMP PDUs
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 18 Feb 2014 08:19:37 +0000 (10:19 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 18 Feb 2014 08:47:03 +0000 (00:47 -0800)
commite6752481c3390cdecd7107ca768260f82b37166f
tree6bd8869c54b062c915472f6f7fde6b364cb10be4
parente73a966c7dcba55ee2e7eed17a1133fe41214bbf
Bluetooth: Fix properly ignoring unexpected SMP PDUs

If we didn't request certain pieces of information during the key
distribution negotiation we should properly ignore those PDUs if the
peer incorrectly sends them. This includes the Encryption Information
and Master Identification PDUs if the EncKey bit was not set, and the
Identity Information and Identity Address Information PDUs if the IdKey
bit was not set.

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