aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/llc_c_ac.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2011-01-19 12:06:52 +0530
committerGustavo F. Padovan <padovan@profusion.mobi>2011-01-19 14:43:11 -0200
commit765c2a964b49bd06b61a52991519281c85d82b67 (patch)
treee646cb50bd43f9a74583391805529d3397934f42 /include/net/llc_c_ac.h
parentBluetooth: Fix authentication request for L2CAP raw sockets (diff)
downloadlinux-dev-765c2a964b49bd06b61a52991519281c85d82b67.tar.xz
linux-dev-765c2a964b49bd06b61a52991519281c85d82b67.zip
Bluetooth: Fix race condition with conn->sec_level
The conn->sec_level value is supposed to represent the current level of security that the connection has. However, by assigning to it before requesting authentication it will have the wrong value during the authentication procedure. To fix this a pending_sec_level variable is added which is used to track the desired security level while making sure that sec_level always represents the current level of security. Signed-off-by: Johan Hedberg <johan.hedberg@nokia.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include/net/llc_c_ac.h')
0 files changed, 0 insertions, 0 deletions