nimble/controller: Add support for high duty cycle non-conn

Bluetooth specification 5.0 removes restrictions regarding minimum
advertising interval for non-connectable advertising. This enables
high duty cycle for this advertising type.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/aa7a2745
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/aa7a2745
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/aa7a2745

Branch: refs/heads/bluetooth5
Commit: aa7a2745937afd94882a13051d7fb52aa88dec01
Parents: 9ed2a9e
Author: Łukasz Rymanowski <[email protected]>
Authored: Fri Mar 31 10:55:18 2017 +0200
Committer: Łukasz Rymanowski <[email protected]>
Committed: Wed Apr 5 14:40:59 2017 +0200

----------------------------------------------------------------------
 net/nimble/controller/include/controller/ble_ll_adv.h | 1 -
 net/nimble/controller/src/ble_ll_adv.c                | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/aa7a2745/net/nimble/controller/include/controller/ble_ll_adv.h
----------------------------------------------------------------------
diff --git a/net/nimble/controller/include/controller/ble_ll_adv.h 
b/net/nimble/controller/include/controller/ble_ll_adv.h
index 298f4bf..635c62e 100644
--- a/net/nimble/controller/include/controller/ble_ll_adv.h
+++ b/net/nimble/controller/include/controller/ble_ll_adv.h
@@ -44,7 +44,6 @@ extern "C" {
 #define BLE_LL_ADV_ITVL_MS_MAX          (10240)         /* msecs */
 #define BLE_LL_ADV_ITVL_SCAN_MIN        (160)           /* units */
 #define BLE_LL_ADV_ITVL_SCAN_MS_MIN     (100)           /* msecs */
-#define BLE_LL_ADV_ITVL_NONCONN_MIN     (160)           /* units */
 #define BLE_LL_ADV_ITVL_NONCONN_MS_MIN  (100)           /* msecs */
 #define BLE_LL_ADV_DELAY_MS_MIN         (0)             /* msecs */
 #define BLE_LL_ADV_DELAY_MS_MAX         (10)            /* msecs */

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/aa7a2745/net/nimble/controller/src/ble_ll_adv.c
----------------------------------------------------------------------
diff --git a/net/nimble/controller/src/ble_ll_adv.c 
b/net/nimble/controller/src/ble_ll_adv.c
index 8240d7a..16455fd 100644
--- a/net/nimble/controller/src/ble_ll_adv.c
+++ b/net/nimble/controller/src/ble_ll_adv.c
@@ -633,7 +633,7 @@ ble_ll_adv_set_adv_params(uint8_t *cmd, uint8_t instance, 
int is_multi)
         break;
     case BLE_HCI_ADV_TYPE_ADV_NONCONN_IND:
     case BLE_HCI_ADV_TYPE_ADV_SCAN_IND:
-        min_itvl = BLE_LL_ADV_ITVL_NONCONN_MIN;
+        min_itvl = 0;
         break;
     default:
         /* This will cause an invalid parameter error */

Reply via email to