diff options
author | Daniel Winkler <danielwinkler@google.com> | 2020-10-29 16:06:16 -0700 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2020-10-29 17:42:46 -0700 |
commit | 657abc0ebe6ba049ae783d13f06e0eff6abd9ab2 (patch) | |
tree | 2c6163ab6ae8f2db41d9b5f262c2ae00d08d8cd3 /lib | |
parent | 838cafe4f04192f24eac97cbf9c93ffe60c7d6ad (diff) | |
download | bluez-657abc0ebe6ba049ae783d13f06e0eff6abd9ab2.tar.gz |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mgmt.h | 4 |
1 files changed, 4 insertions, 0 deletions
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; |