Bluetooth: MGMT: Fix error report for ADD_EXT_ADV_PARAMS
authorInga Stotland <inga.stotland@intel.com>
Sat, 22 Oct 2022 00:48:56 +0000 (17:48 -0700)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 12 Dec 2022 22:19:23 +0000 (14:19 -0800)
commit3b1c7c00b8c22b3cb79532252c59eb0b287bb86d
tree2ea1ccd0141f80a5056a0ecd619524e88737a2b0
parent0d75da38e060d21f948b3df5f5e349c962cf1ed2
Bluetooth: MGMT: Fix error report for ADD_EXT_ADV_PARAMS

When validating the parameter length for MGMT_OP_ADD_EXT_ADV_PARAMS
command, use the correct op code in error status report:
was MGMT_OP_ADD_ADVERTISING, changed to MGMT_OP_ADD_EXT_ADV_PARAMS.

Fixes: 12410572833a2 ("Bluetooth: Break add adv into two mgmt commands")
Signed-off-by: Inga Stotland <inga.stotland@intel.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/mgmt.c