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:
Andrzej Kaczmarek
2018-02-01 13:47:02 +01:00
parent 4661e7bbda
commit afbaf4b961
+2 -2
View File
@@ -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;
}