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

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


The following commit(s) were added to refs/heads/master by this push:
     new 8b7eda2a5 nimble/host: Fix ble_gap_adv_set_data return code
8b7eda2a5 is described below

commit 8b7eda2a561df50004fb507fbfa4451b72398d78
Author: taks <[email protected]>
AuthorDate: Mon Mar 4 09:01:06 2024 +0900

    nimble/host: Fix ble_gap_adv_set_data return code
---
 nimble/host/src/ble_gap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nimble/host/src/ble_gap.c b/nimble/host/src/ble_gap.c
index 8c63610c6..8e83b2d85 100644
--- a/nimble/host/src/ble_gap.c
+++ b/nimble/host/src/ble_gap.c
@@ -2772,7 +2772,7 @@ ble_gap_adv_set_data(const uint8_t *data, int data_len)
     /* Check for valid parameters */
     if (((data == NULL) && (data_len != 0)) ||
             (data_len > BLE_HCI_MAX_ADV_DATA_LEN)) {
-        return BLE_ERR_INV_HCI_CMD_PARMS;
+        return BLE_HS_EINVAL;
     }
 
     memcpy(cmd.adv_data, data, data_len);

Reply via email to