bluetooth: `bt_le_ext_adv_start_param` is const

`bt_le_ext_adv_start` does not modify the `param` argument, which can
therefore be marked as `const`. This allows the struct to exist purely
in ROM.

Signed-off-by: Jordan Yates <jordan@embeint.com>
This commit is contained in:
Jordan Yates 2024-06-26 22:21:16 +10:00 committed by Anas Nashif
parent 243eb36b18
commit 40eededf01
2 changed files with 2 additions and 2 deletions

View File

@ -1241,7 +1241,7 @@ struct bt_le_ext_adv_start_param {
* @param param Advertise start parameters.
*/
int bt_le_ext_adv_start(struct bt_le_ext_adv *adv,
struct bt_le_ext_adv_start_param *param);
const struct bt_le_ext_adv_start_param *param);
/**
* @brief Stop advertising with the given advertising set

View File

@ -1613,7 +1613,7 @@ int bt_le_ext_adv_update_param(struct bt_le_ext_adv *adv,
}
int bt_le_ext_adv_start(struct bt_le_ext_adv *adv,
struct bt_le_ext_adv_start_param *param)
const struct bt_le_ext_adv_start_param *param)
{
struct bt_conn *conn = NULL;
int err;