Repository: incubator-mynewt-core Updated Branches: refs/heads/master b2a367eb0 -> be82a7ad6
net/nimble; adjust BCM2837 fix to print a warning instead of erroring. Keep header file define the same. 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/be82a7ad Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/be82a7ad Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/be82a7ad Branch: refs/heads/master Commit: be82a7ad60926d746a77409c322449563f02cce5 Parents: 1db1b3c Author: Marko Kiiskila <[email protected]> Authored: Wed Apr 26 17:32:47 2017 -0700 Committer: Christopher Collins <[email protected]> Committed: Tue May 16 11:33:41 2017 -0700 ---------------------------------------------------------------------- net/nimble/host/src/ble_hs_hci_util.c | 3 +-- net/nimble/include/nimble/hci_common.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/be82a7ad/net/nimble/host/src/ble_hs_hci_util.c ---------------------------------------------------------------------- diff --git a/net/nimble/host/src/ble_hs_hci_util.c b/net/nimble/host/src/ble_hs_hci_util.c index e143e19..f50eafd 100644 --- a/net/nimble/host/src/ble_hs_hci_util.c +++ b/net/nimble/host/src/ble_hs_hci_util.c @@ -55,8 +55,7 @@ ble_hs_hci_util_read_adv_tx_pwr(int8_t *out_tx_pwr) if (params_len != 1 || *out_tx_pwr < BLE_HCI_ADV_CHAN_TXPWR_MIN || *out_tx_pwr > BLE_HCI_ADV_CHAN_TXPWR_MAX) { - - return BLE_HS_ECONTROLLER; + BLE_HS_LOG(WARN, "advertiser txpwr out of range\n"); } return 0; http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/be82a7ad/net/nimble/include/nimble/hci_common.h ---------------------------------------------------------------------- diff --git a/net/nimble/include/nimble/hci_common.h b/net/nimble/include/nimble/hci_common.h index 4387caf..ff34316 100644 --- a/net/nimble/include/nimble/hci_common.h +++ b/net/nimble/include/nimble/hci_common.h @@ -191,7 +191,7 @@ extern "C" { /* --- LE advertising channel tx power (OCF 0x0007) */ #define BLE_HCI_ADV_CHAN_TXPWR_ACK_PARAM_LEN (2) /* Includes status byte. */ #define BLE_HCI_ADV_CHAN_TXPWR_MIN (-20) -#define BLE_HCI_ADV_CHAN_TXPWR_MAX (12) +#define BLE_HCI_ADV_CHAN_TXPWR_MAX (10) /* --- LE set advertising data (OCF 0x0008) */ #define BLE_HCI_MAX_ADV_DATA_LEN (31)
