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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jul 2021 07:44:53 +0000 (09:44 +0200)
commit8f939b4c25630e7a8190fc463964eb6e31cf97ae
tree404d3daa7c7017a373e63584635069423099f81c
parent5f5f8022c1aaa5e184bf2a3ce130a821e9a1684b
Bluetooth: Fix the HCI to MGMT status conversion table

[ Upstream commit 4ef36a52b0e47c80bbfd69c0cce61c7ae9f541ed ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bluetooth/mgmt.c