From 657abc0ebe6ba049ae783d13f06e0eff6abd9ab2 Mon Sep 17 00:00:00 2001 From: Daniel Winkler Date: Thu, 29 Oct 2020 16:06:16 -0700 Subject: advertising: Detect if extended advertising mgmt commands are supported We need to know if kernel supports the new MGMT interface. To do so, we check the return from adapter's MGMT_OP_READ_COMMANDS call for the new commands. This will later be used to route our requests for new advertisements. The change is tested by manually verifying that the correct MGMT commands are used when the feature is and is not available in kernel. --- lib/mgmt.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/mgmt.h b/lib/mgmt.h index 6aa0f5f88..59608e7ea 100644 --- a/lib/mgmt.h +++ b/lib/mgmt.h @@ -700,6 +700,10 @@ struct mgmt_rp_remove_adv_monitor { uint16_t monitor_handle; } __packed; +#define MGMT_OP_ADD_EXT_ADV_PARAMS 0x0054 + +#define MGMT_OP_ADD_EXT_ADV_DATA 0x0055 + #define MGMT_EV_CMD_COMPLETE 0x0001 struct mgmt_ev_cmd_complete { uint16_t opcode; -- cgit v1.2.1