Bluetooth: Add support for Get Advertising Size Information command
Subsystems (2)
Marcel Holtmann
maintainerPATCH 3/3 Bluetooth: Add support for Get Advertising Size Information command
The Get Advertising Size Information command allows to retrieve size information for advertising data and scan response data fields depending on the selected flags. This is useful if applications want to know the available size ahead of time.
Signed-off-by Marcel Holtmann <[email protected]>
--- include/net/bluetooth/mgmt.h | 13 ++++++++++ net/bluetooth/mgmt.c | 58 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+)
include/net/bluetooth/mgmt.h +13 -0
@@ -571,6 +571,19 @@ struct mgmt_rp_remove_advertising {__u8 instance; } __packed; +#define MGMT_OP_GET_ADV_SIZE_INFO 0x0040 +struct mgmt_cp_get_adv_size_info { +__u8 instance; +__le32 flags; +} __packed; +#define MGMT_GET_ADV_SIZE_INFO_SIZE 5 +struct mgmt_rp_get_adv_size_info { +__u8 instance; +__le32 flags; +__u8 max_adv_data_len; +__u8 max_scan_rsp_len; +} __packed; +#define MGMT_EV_CMD_COMPLETE 0x0001struct mgmt_ev_cmd_complete {__le16 opcode;
net/bluetooth/mgmt.c +58 -0
76 lines not on this page · raw message
Signature · 1 line
2.5.0
Hi Marcel,
Quoted 10 lines · Marcel Holtmann
The Get Advertising Size Information command allows to retrieve size information for advertising data and scan response data fields depending on the selected flags. This is useful if applications want to know the available size ahead of time.
Signed-off-by Marcel Holtmann <[email protected]>--- include/net/bluetooth/mgmt.h | 13 ++++++++++ net/bluetooth/mgmt.c | 58 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+)
This patch has now also been applied. Thanks.
Johan