Bluetooth: report the right security level in getsockopt
authorGustavo Padovan <gustavo@padovan.org>
Mon, 7 May 2012 06:07:26 +0000 (03:07 -0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Wed, 16 May 2012 19:14:09 +0000 (16:14 -0300)
commitc6585a4da0c709a7a9f59aab68869298b52ca1e1
treeebd37772e20596f5ddd92e2150b6be4107ed0e99
parenta6a5568c03c4805d4d250f6bd9d468eeeb4ea059
Bluetooth: report the right security level in getsockopt

During a security level elevation we need to keep track of the current
security level of a connection until the new one is not confirmed.

Signed-off-by: Gustavo Padovan <gustavo@padovan.org>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/l2cap_sock.c