You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2018/03/12 13:37:59 UTC

[mynewt-nimble] 25/32: nimble/ll: Allow setting scan rsp data before configuring advertising

This is an automated email from the ASF dual-hosted git repository.

andk pushed a commit to branch new-master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git

commit 8acb7a83eff5dc0722c1aef7624444d9b0c57551
Author: MichaƂ Narajowski <mi...@codecoup.pl>
AuthorDate: Tue Mar 6 15:35:46 2018 +0100

    nimble/ll: Allow setting scan rsp data before configuring advertising
    
    When using legacy advertising commands
    
    X-Original-Commit: 7c9ebd15755af50377418f4fb7b19fd9f22fcfc8
---
 nimble/controller/src/ble_ll_adv.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/nimble/controller/src/ble_ll_adv.c b/nimble/controller/src/ble_ll_adv.c
index e2bf15a..e8a4f71 100644
--- a/nimble/controller/src/ble_ll_adv.c
+++ b/nimble/controller/src/ble_ll_adv.c
@@ -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) {

-- 
To stop receiving notification emails like this one, please contact
andk@apache.org.