From: Johan Hedberg Date: Thu, 13 Nov 2014 08:55:18 +0000 (+0200) Subject: Bluetooth: Add key preference parameter to smp_sufficient_security X-Git-Tag: omap-for-v3.19/fixes-rc1~125^2~134^2~5^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35dc6f834c9dc888391c7b700130d0831a907ca1;p=pandora-kernel.git Bluetooth: Add key preference parameter to smp_sufficient_security So far smp_sufficient_security() has returned false if we're encrypted with an STK but do have an LTK available. However, for the sake of LE CoC servers we do want to let the incoming connection through even though we're only encrypted with the STK. This patch adds a key preference parameter to smp_sufficient_security() with two possible values (enum used instead of bool for readability). Signed-off-by: Johan Hedberg Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed