Skip to content

Commit 4c46b0b

Browse files
mlaschdanieldegrasse
authored andcommitted
net: lwm2m: Fix typo in bootstrap_on_fail
Bootstrap vs. Boostrap. Signed-off-by: Marc Lasch <marc.lasch@husqvarnagroup.com>
1 parent baf53b3 commit 4c46b0b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

subsys/net/lib/lwm2m/lwm2m_obj_server.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ static char transport_binding[MAX_INSTANCE_COUNT][TRANSPORT_BINDING_LEN];
5555
/* Server object version 1.1 */
5656
static uint8_t priority[MAX_INSTANCE_COUNT];
5757
static bool mute_send[MAX_INSTANCE_COUNT];
58-
static bool boostrap_on_fail[MAX_INSTANCE_COUNT];
58+
static bool bootstrap_on_fail[MAX_INSTANCE_COUNT];
5959

6060
static struct lwm2m_engine_obj server;
6161
static struct lwm2m_engine_obj_field fields[] = {
@@ -355,7 +355,7 @@ static struct lwm2m_engine_obj_inst *server_create(uint16_t obj_inst_id)
355355
default_min_period[index] = CONFIG_LWM2M_SERVER_DEFAULT_PMIN;
356356
default_max_period[index] = CONFIG_LWM2M_SERVER_DEFAULT_PMAX;
357357
disabled_timeout[index] = 86400U;
358-
boostrap_on_fail[index] = true;
358+
bootstrap_on_fail[index] = true;
359359

360360
lwm2m_engine_get_binding(transport_binding[index]);
361361

@@ -410,7 +410,7 @@ static struct lwm2m_engine_obj_inst *server_create(uint16_t obj_inst_id)
410410
INIT_OBJ_RES_OPTDATA(SERVER_REGISTRATION_FAILURE_BLOCK_ID, res[index], i,
411411
res_inst[index], j);
412412
INIT_OBJ_RES_DATA(SERVER_BOOTSTRAP_ON_REGISTRATION_FAILURE_ID, res[index], i,
413-
res_inst[index], j, &boostrap_on_fail[index], sizeof(bool));
413+
res_inst[index], j, &bootstrap_on_fail[index], sizeof(bool));
414414
INIT_OBJ_RES_OPTDATA(SERVER_COMMUNICATION_RETRY_COUNT_ID, res[index], i,
415415
res_inst[index], j);
416416
INIT_OBJ_RES_OPTDATA(SERVER_COMMUNICATION_RETRY_TIMER_ID, res[index], i,

tests/net/lib/lwm2m/interop/pytest/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def endpoint_bootstrap(request, shell: Shell, dut: DeviceAdapter, leshan: Leshan
138138
passwd = ''.join(random.choice(string.ascii_lowercase) for i in range(16))
139139

140140
logger.debug('Endpoint: %s', ep)
141-
logger.debug('Boostrap PSK: %s', binascii.b2a_hex(bs_passwd.encode()).decode())
141+
logger.debug('Bootstrap PSK: %s', binascii.b2a_hex(bs_passwd.encode()).decode())
142142
logger.debug('PSK: %s', binascii.b2a_hex(passwd.encode()).decode())
143143

144144
# Create device entries in Leshan and Bootstrap server

0 commit comments

Comments
 (0)