Bluetooth: mgmt: Fix wrong opcode in the response for add_adv cmd
authorTedd Ho-Jeong An <tedd.an@intel.com>
Mon, 26 Jul 2021 20:22:36 +0000 (13:22 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Sep 2021 07:50:35 +0000 (09:50 +0200)
commit61b1db2358686101db62f6bd200cb0eaf86f9ff6
treef3251bf8cfdc0605b5cb3163008e653fe670d5d1
parentbca46d228393682d47f91923da46675346ec2110
Bluetooth: mgmt: Fix wrong opcode in the response for add_adv cmd

[ Upstream commit a25fca4d3c18766b6f7a3c95fa8faec23ef464c5 ]

This patch fixes the MGMT add_advertising command repsones with the
wrong opcode when it is trying to return the not supported error.

Fixes: cbbdfa6f33198 ("Bluetooth: Enable controller RPA resolution using Experimental feature")
Signed-off-by: Tedd Ho-Jeong An <tedd.an@intel.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bluetooth/mgmt.c