Merge pull request #871 from michal-narajowski/ll-legacy-adv-fix

nimble/ll: Allow setting scan rsp data before configuring advertising

X-Original-Commit: 8f0a8d53bd57cc17644758dc31f0d0439327f752
This commit is contained in:
Michał Narajowski
2018-03-07 11:10:06 +01:00
committed by GitHub
+3 -1
View File
@@ -1813,7 +1813,9 @@ ble_ll_adv_set_scan_rsp_data(uint8_t *cmd, uint8_t instance, uint8_t operation)
/* check if type of advertising support scan rsp */
if (!(advsm->props & BLE_HCI_LE_SET_EXT_ADV_PROP_SCANNABLE)) {
return BLE_ERR_INV_HCI_CMD_PARMS;
if (!(advsm->props & BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY)) {
return BLE_ERR_INV_HCI_CMD_PARMS;
}
}
switch (operation) {