CHROMIUM: Add a new MGMT error code for 0x3E HCI error.
BUG=b:174806913
TEST=Test with user space change
Signed-off-by: Yu Liu <yudiliu@google.com>
Change-Id: Ic231ad3cfa66df90373578777cf7cdc7f0e8f2ae
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/2844788
Reviewed-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Reviewed-by: Yu Liu <yudiliu@google.com>
Commit-Queue: Yu Liu <yudiliu@google.com>
Tested-by: Yu Liu <yudiliu@google.com>
(cherry picked from commit 12d6c51a771058308b22c6e1f2277e36a99ac89b)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/2878681
Reviewed-by: Alain Michaud <alainm@chromium.org>
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h
index ea5dff3..a34d434 100644
--- a/include/net/bluetooth/mgmt.h
+++ b/include/net/bluetooth/mgmt.h
@@ -45,6 +45,7 @@
#define MGMT_STATUS_RFKILLED 0x12
#define MGMT_STATUS_ALREADY_PAIRED 0x13
#define MGMT_STATUS_PERMISSION_DENIED 0x14
+#define MGMT_STATUS_CONNECT_NOT_ESTD 0x15
struct mgmt_hdr {
__le16 opcode;
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index edc2a56..440057d 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -267,7 +267,7 @@
MGMT_STATUS_INVALID_PARAMS, /* Unsuitable Connection Interval */
MGMT_STATUS_TIMEOUT, /* Directed Advertising Timeout */
MGMT_STATUS_AUTH_FAILED, /* Terminated Due to MIC Failure */
- MGMT_STATUS_CONNECT_FAILED, /* Connection Establishment Failed */
+ MGMT_STATUS_CONNECT_NOT_ESTD, /* Connection Establishment Failed */
MGMT_STATUS_CONNECT_FAILED, /* MAC Connection Failed */
};