summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/smp.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2013-05-14 17:05:12 +0200
committerMarcel Holtmann <marcel@holtmann.org>2013-12-05 16:05:33 +0100
commitad32a2f5ced269f5516950fc8f52b6673462d208 (patch)
treead0af02a62228b1be224483fa18432f6dcebb6ec /net/bluetooth/smp.h
parentBluetooth: Add initial code for LE L2CAP Connect Request (diff)
downloadlinux-ad32a2f5ced269f5516950fc8f52b6673462d208.tar.xz
linux-ad32a2f5ced269f5516950fc8f52b6673462d208.zip
Bluetooth: Add smp_sufficient_security helper function
This function is needed both by the smp_conn_security function as well as upcoming code to check for the security requirements when receiving an L2CAP connect request over LE. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/smp.h')
-rw-r--r--net/bluetooth/smp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bluetooth/smp.h b/net/bluetooth/smp.h
index f8ba07f3e5fa..a700bcb490d7 100644
--- a/net/bluetooth/smp.h
+++ b/net/bluetooth/smp.h
@@ -136,6 +136,7 @@ struct smp_chan {
};
/* SMP Commands */
+bool smp_sufficient_security(struct hci_conn *hcon, u8 sec_level);
int smp_conn_security(struct hci_conn *hcon, __u8 sec_level);
int smp_sig_channel(struct l2cap_conn *conn, struct sk_buff *skb);
int smp_distribute_keys(struct l2cap_conn *conn, __u8 force);