Bluetooth: host: Fix high-duty cycle directed extended advertising

Fix high-duty cycle directed advertising when extended advertising
feature has been enabled. The duration parameter when starting extended
high duty cycle directed advertising has to be set to a non-zero value
less than or equal to 1.28 seconds.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
Joakim Andersson 2020-03-30 14:15:53 +02:00 committed by Johan Hedberg
commit 29749af88a
2 changed files with 14 additions and 1 deletions

View file

@ -1088,6 +1088,12 @@ struct bt_hci_cp_le_set_ext_scan_rsp_data {
u8_t data[251];
} __packed;
/* If the advertising is high duty cycle connectable directed advertising, then
* Duration[i] shall be less than or equal to 1.28 seconds and shall not be
* equal to 0.
*/
#define BT_HCI_LE_EXT_ADV_DURATION_HI_DC_MAX 128
#define BT_HCI_OP_LE_SET_EXT_ADV_ENABLE BT_OP(BT_OGF_LE, 0x0039)
struct bt_hci_ext_adv_set {
u8_t handle;