]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
Bluetooth: Fix the HCI to MGMT status conversion table
authorYu Liu <yudiliu@google.com>
Mon, 19 Apr 2021 23:53:30 +0000 (16:53 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 4 May 2021 13:20:31 +0000 (15:20 +0200)
0x2B, 0x31 and 0x33 are reserved for future use but were not present in
the HCI to MGMT conversion table, this caused the conversion to be
incorrect for the HCI status code greater than 0x2A.

Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
Signed-off-by: Yu Liu <yudiliu@google.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/mgmt.c

index 40f75b8e14165ee0e763daf7917d6cffb2930c63..b44e19c69c445dbdd8841c8fc3367bea3dacd123 100644 (file)
@@ -252,12 +252,15 @@ static const u8 mgmt_status_table[] = {
        MGMT_STATUS_TIMEOUT,            /* Instant Passed */
        MGMT_STATUS_NOT_SUPPORTED,      /* Pairing Not Supported */
        MGMT_STATUS_FAILED,             /* Transaction Collision */
+       MGMT_STATUS_FAILED,             /* Reserved for future use */
        MGMT_STATUS_INVALID_PARAMS,     /* Unacceptable Parameter */
        MGMT_STATUS_REJECTED,           /* QoS Rejected */
        MGMT_STATUS_NOT_SUPPORTED,      /* Classification Not Supported */
        MGMT_STATUS_REJECTED,           /* Insufficient Security */
        MGMT_STATUS_INVALID_PARAMS,     /* Parameter Out Of Range */
+       MGMT_STATUS_FAILED,             /* Reserved for future use */
        MGMT_STATUS_BUSY,               /* Role Switch Pending */
+       MGMT_STATUS_FAILED,             /* Reserved for future use */
        MGMT_STATUS_FAILED,             /* Slot Violation */
        MGMT_STATUS_FAILED,             /* Role Switch Failed */
        MGMT_STATUS_INVALID_PARAMS,     /* EIR Too Large */