mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-14 13:10:02 +00:00
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. X-Original-Commit: aa7a2745937afd94882a13051d7fb52aa88dec01
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user