mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-10 16:27:22 +00:00
nimble/gap: Allow adv data for connectable ext adv
This is allowed by spec, only legacy directed advertising cannot have adv data included. X-Original-Commit: d40b1364ea1e75bdea6b061f0b00c69cade704d4
This commit is contained in:
@@ -2741,8 +2741,8 @@ ble_gap_ext_adv_set_data_validate(uint8_t instance, struct os_mbuf *data)
|
||||
return BLE_HS_EINVAL;
|
||||
}
|
||||
|
||||
/* not allowed with directed advertising */
|
||||
if (ble_gap_slave[instance].directed) {
|
||||
/* not allowed with directed advertising for legacy*/
|
||||
if (ble_gap_slave[instance].legacy_pdu && ble_gap_slave[instance].directed) {
|
||||
return BLE_HS_EINVAL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user