From 0df7fd68a7cda5444c61c1eb4d4c0fdd6d8a8835 Mon Sep 17 00:00:00 2001 From: Pisit Sawangvonganan Date: Wed, 21 Feb 2024 00:36:13 +0700 Subject: [PATCH] bluetooth: mesh: fix typo Utilize a code spell-checking tool to scan for and correct spelling errors in all files within the subsys/bluetooth/mesh directory. Signed-off-by: Pisit Sawangvonganan --- subsys/bluetooth/mesh/Kconfig | 4 ++-- subsys/bluetooth/mesh/blob_cli.c | 6 +++--- subsys/bluetooth/mesh/op_agg_srv.c | 2 +- subsys/bluetooth/mesh/provisionee.c | 2 +- subsys/bluetooth/mesh/provisioner.c | 2 +- subsys/bluetooth/mesh/sar_cfg_internal.h | 4 ++-- subsys/bluetooth/mesh/shell/cfg.c | 4 ++-- subsys/bluetooth/mesh/va.h | 2 +- 8 files changed, 13 insertions(+), 13 deletions(-) diff --git a/subsys/bluetooth/mesh/Kconfig b/subsys/bluetooth/mesh/Kconfig index 5a941e57442..bcf781e72d2 100644 --- a/subsys/bluetooth/mesh/Kconfig +++ b/subsys/bluetooth/mesh/Kconfig @@ -628,7 +628,7 @@ config BT_MESH_SAR_RX_SEG_INT_STEP help This value defines the segments reception interval step used for delaying the transmission of an acknowledgment message after - receiving a new segmnet. The interval is measured in milliseconds + receiving a new segment. The interval is measured in milliseconds and calculated using the following formula: (CONFIG_BT_MESH_SAR_RX_SEG_INT_STEP + 1) * 10 ms @@ -679,7 +679,7 @@ config BT_MESH_RPL_STORAGE_MODE_SETTINGS bool "Persistent storage of RPL in Settings" help Persistent storage of RPL in Settings. If BT_SETTINGS is not - enabled this choise will provide a non-persistent implementation + enabled this choice will provide a non-persistent implementation variant of the RPL list. endchoice diff --git a/subsys/bluetooth/mesh/blob_cli.c b/subsys/bluetooth/mesh/blob_cli.c index f96a9af0653..ab32d554c96 100644 --- a/subsys/bluetooth/mesh/blob_cli.c +++ b/subsys/bluetooth/mesh/blob_cli.c @@ -764,9 +764,9 @@ static void block_get_tx(struct bt_mesh_blob_cli *cli, uint16_t dst) * * After sending all reported missing chunks to each target, the Client updates * @ref bt_mesh_blob_target_pull::block_report_timestamp value for every target individually in - * chunk_tx_complete. The Client then proceedes to block_report_wait state and uses the earliest of + * chunk_tx_complete. The Client then proceeds to block_report_wait state and uses the earliest of * all block_report_timestamp and cli_timestamp to schedule the retry timer. When the retry - * timer expires, the Client proceedes to the block_check_end state. + * timer expires, the Client proceeds to the block_check_end state. * * In Pull mode, target nodes send a Partial Block Report message to the Client to inform about * missing chunks. The Client doesn't control when these messages are sent by target nodes, and @@ -916,7 +916,7 @@ static void chunk_tx_complete(struct bt_mesh_blob_cli *cli, uint16_t dst) int64_t timestamp = k_uptime_get() + BLOCK_REPORT_TIME_MSEC; if (!UNICAST_MODE(cli)) { - /* If using group adressing, reset timestamp for all targets after all chunks are + /* If using group addressing, reset timestamp for all targets after all chunks are * sent to the group address */ TARGETS_FOR_EACH(cli, target) { diff --git a/subsys/bluetooth/mesh/op_agg_srv.c b/subsys/bluetooth/mesh/op_agg_srv.c index 9bbe01384e2..b2463e53ef6 100644 --- a/subsys/bluetooth/mesh/op_agg_srv.c +++ b/subsys/bluetooth/mesh/op_agg_srv.c @@ -19,7 +19,7 @@ LOG_MODULE_REGISTER(bt_mesh_op_agg_srv); NET_BUF_SIMPLE_DEFINE_STATIC(sdu, BT_MESH_TX_SDU_MAX); -/** Mesh Opcodes Aggragator Server Model Context */ +/** Mesh Opcodes Aggregator Server Model Context */ static struct bt_mesh_op_agg_srv { /** Composition data model entry pointer. */ const struct bt_mesh_model *model; diff --git a/subsys/bluetooth/mesh/provisionee.c b/subsys/bluetooth/mesh/provisionee.c index dcecb5838f0..10fdab49fa6 100644 --- a/subsys/bluetooth/mesh/provisionee.c +++ b/subsys/bluetooth/mesh/provisionee.c @@ -195,7 +195,7 @@ static void prov_start(const uint8_t *data) bt_mesh_prov->static_val_len > auth_size ? auth_size : bt_mesh_prov->static_val_len); - /* Padd with zeros if the Auth is shorter the required length*/ + /* Pad with zeros if the Auth is shorter the required length */ if (bt_mesh_prov->static_val_len < auth_size) { memset(bt_mesh_prov_link.auth + bt_mesh_prov->static_val_len, 0, auth_size - bt_mesh_prov->static_val_len); diff --git a/subsys/bluetooth/mesh/provisioner.c b/subsys/bluetooth/mesh/provisioner.c index 08b3f8bb8f1..af7ee743b45 100644 --- a/subsys/bluetooth/mesh/provisioner.c +++ b/subsys/bluetooth/mesh/provisioner.c @@ -767,7 +767,7 @@ int bt_mesh_auth_method_set_static(const uint8_t *static_val, uint8_t size) memcpy(bt_mesh_prov_link.auth, static_val, size > PROV_AUTH_MAX_LEN ? PROV_AUTH_MAX_LEN : size); - /* Padd with zeros if the Auth is shorter the required length*/ + /* Pad with zeros if the Auth is shorter the required length */ if (size < PROV_AUTH_MAX_LEN) { memset(bt_mesh_prov_link.auth + size, 0, PROV_AUTH_MAX_LEN - size); } diff --git a/subsys/bluetooth/mesh/sar_cfg_internal.h b/subsys/bluetooth/mesh/sar_cfg_internal.h index e7e58c3d41e..02b56dcec1c 100644 --- a/subsys/bluetooth/mesh/sar_cfg_internal.h +++ b/subsys/bluetooth/mesh/sar_cfg_internal.h @@ -11,9 +11,9 @@ #ifndef ZEPHYR_SUBSYS_BLUETOOTH_MESH_SAR_CFG_INTERNAL_H__ #define ZEPHYR_SUBSYS_BLUETOOTH_MESH_SAR_CFG_INTERNAL_H__ -/** SAR Transmitter Configuraion state encoded length */ +/** SAR Transmitter state encoded length */ #define BT_MESH_SAR_TX_LEN 4 -/** SAR Receiver Configuraion state encoded length */ +/** SAR Receiver state encoded length */ #define BT_MESH_SAR_RX_LEN 3 /** SAR Transmitter Configuration state initializer */ diff --git a/subsys/bluetooth/mesh/shell/cfg.c b/subsys/bluetooth/mesh/shell/cfg.c index c4a62a996e3..016a67ff2be 100644 --- a/subsys/bluetooth/mesh/shell/cfg.c +++ b/subsys/bluetooth/mesh/shell/cfg.c @@ -1150,7 +1150,7 @@ static int cmd_mod_sub_del(const struct shell *sh, size_t argc, char *argv[]) if (status) { shell_print(sh, "Model Subscription Delete failed with status 0x%02x", status); } else { - shell_print(sh, "Model subscription deltion was successful"); + shell_print(sh, "Model subscription deletion was successful"); } return 0; @@ -1387,7 +1387,7 @@ static int cmd_mod_sub_del_all(const struct shell *sh, size_t argc, char *argv[] if (status) { shell_print(sh, "Model Subscription Delete All failed with status 0x%02x", status); } else { - shell_print(sh, "Model subscription deltion all was successful"); + shell_print(sh, "Model subscription deletion all was successful"); } return 0; diff --git a/subsys/bluetooth/mesh/va.h b/subsys/bluetooth/mesh/va.h index 958b99af6c0..7620a157b2e 100644 --- a/subsys/bluetooth/mesh/va.h +++ b/subsys/bluetooth/mesh/va.h @@ -42,7 +42,7 @@ uint8_t bt_mesh_va_del(const uint8_t *uuid); */ const struct bt_mesh_va *bt_mesh_va_find(const uint8_t *uuid); -/** @brief Check if there are more than one Label UUID which hash has the specificed virtual +/** @brief Check if there are more than one Label UUID which hash has the specified virtual * address. * * @param addr Virtual address to check