From: Jefferson Delfes <jefferson.delfes@xxxxxxxxxxxxx> Add command to set advertising parameters before enable it. Signed-off-by: Aloisio Almeida Jr <aloisio.almeida@xxxxxxxxxxxxx> --- include/net/bluetooth/hci.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h index 348f4bf..c539314 100644 --- a/include/net/bluetooth/hci.h +++ b/include/net/bluetooth/hci.h @@ -938,6 +938,20 @@ struct hci_rp_le_read_adv_tx_power { __s8 tx_power; } __packed; +#define ADV_USE_ALL_CHANNELS 0x07 + +#define HCI_OP_LE_SET_ADV_PARAMS 0x2006 +struct hci_cp_le_set_adv_params { + __le16 interval_min; + __le16 interval_max; + __u8 type; + __u8 own_address_type; + __u8 direct_address_type; + __u8 direct_address[6]; + __u8 channel_map; + __u8 filter_policy; +} __packed; + #define HCI_OP_LE_SET_SCAN_PARAM 0x200b struct hci_cp_le_set_scan_param { __u8 type; -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html