]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix checking for pending Set SSP in Set HS handler
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 19 Feb 2015 15:38:07 +0000 (17:38 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 19 Feb 2015 16:05:09 +0000 (17:05 +0100)
commitdad3e26fcb65de8dc96d79759fa0d1967f202adf
tree36331b7ac61ec2a46ff80038ed69cf8339bef999
parent4f946f4630ce0fe50a41220f85196bb1ab480886
Bluetooth: Fix checking for pending Set SSP in Set HS handler

Changing the HS setting requires that SSP is enabled, however so far the
code only checked for the SSP flag but not a potentially ongoing Set SSP
operation. This patch adds a check for a pending Set SSP command in the
Set HS handler, and returns a 'busy' error if one is found.

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