summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/smp.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-05-08 13:19:11 +0200
committerMarcel Holtmann <marcel@holtmann.org>2014-05-08 16:50:02 +0200
commit38e4a915663f3f3c03b753d90a34fbb6164ea55d (patch)
tree4a822a38a4db528106c1b9148a50eb1a8771fc65 /net/bluetooth/smp.h
parentBluetooth: Convert RFCOMM spinlocks into mutexes (diff)
downloadlinux-38e4a915663f3f3c03b753d90a34fbb6164ea55d.tar.xz
linux-38e4a915663f3f3c03b753d90a34fbb6164ea55d.zip
Bluetooth: Add support for SMP Invalid Parameters error code
The Invalid Parameters error code is used to indicate that the command length is invalid or that a parameter is outside of the specified range. This error code wasn't clearly specified in the Bluetooth 4.0 specification but since 4.1 this has been fixed. 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 1277147a9150..afd16231db13 100644
--- a/net/bluetooth/smp.h
+++ b/net/bluetooth/smp.h
@@ -111,6 +111,7 @@ struct smp_cmd_security_req {
#define SMP_CMD_NOTSUPP 0x07
#define SMP_UNSPECIFIED 0x08
#define SMP_REPEATED_ATTEMPTS 0x09
+#define SMP_INVALID_PARAMS 0x0a
#define SMP_MIN_ENC_KEY_SIZE 7
#define SMP_MAX_ENC_KEY_SIZE 16