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

[mynewt-nimble] 08/13: nimble/ll: Fix handling HCI Le Set Advertising Data command

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

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

commit 83cc4e5b2f887ba60e4d199b14a16b8f12afe89b
Author: Ɓukasz Rymanowski <lu...@codecoup.pl>
AuthorDate: Tue Nov 13 09:17:15 2018 +0100

    nimble/ll: Fix handling HCI Le Set Advertising Data command
    
    When extended advertising mode is used, Controller shall send Command
    Status with Error Command Disallowed (0x0c) on HCI Le Set Advertising
    data command.
    
    It fixes HCI/GEV/BV-02-C
---
 nimble/controller/src/ble_ll_hci.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/nimble/controller/src/ble_ll_hci.c b/nimble/controller/src/ble_ll_hci.c
index 07f520b..95dd16e 100644
--- a/nimble/controller/src/ble_ll_hci.c
+++ b/nimble/controller/src/ble_ll_hci.c
@@ -671,6 +671,7 @@ ble_ll_is_valid_adv_mode(uint8_t ocf)
     case BLE_HCI_OCF_LE_CREATE_CONN:
     case BLE_HCI_OCF_LE_SET_ADV_PARAMS:
     case BLE_HCI_OCF_LE_SET_ADV_ENABLE:
+    case BLE_HCI_OCF_LE_SET_ADV_DATA:
     case BLE_HCI_OCF_LE_SET_SCAN_PARAMS:
     case BLE_HCI_OCF_LE_SET_SCAN_ENABLE:
     case BLE_HCI_OCF_LE_SET_SCAN_RSP_DATA: