Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/src/modules/network/network.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ static void lte_lc_evt_handler(const struct lte_lc_evt *const evt)
network_status_notify(NETWORK_MODEM_RESET_LOOP);
} else if (evt->modem_evt == LTE_LC_MODEM_EVT_LIGHT_SEARCH_DONE) {
LOG_DBG("LTE_LC_MODEM_EVT_LIGHT_SEARCH_DONE");
network_status_notify(NETWORK_LIGHT_SERACH_DONE);
network_status_notify(NETWORK_LIGHT_SEARCH_DONE);
}
break;
case LTE_LC_EVT_PSM_UPDATE: {
Expand Down
2 changes: 1 addition & 1 deletion app/src/modules/network/network.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ enum network_msg_type {
* attach to without finding a suitable cell according to 3GPP selection rules.
* The modem will continue with a more thorough search unless it is explicitly stopped.
*/
NETWORK_LIGHT_SERACH_DONE,
NETWORK_LIGHT_SEARCH_DONE,

/* A network attach request has been rejected by the network. */
NETWORK_ATTACH_REJECTED,
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/network.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The following messages are supported:
- **NETWORK_CONNECTED**: The device is connected to the network and has an IP address.
- **NETWORK_MODEM_RESET_LOOP**: The modem has detected a reset loop with too many attach requests within a short time.
- **NETWORK_UICC_FAILURE**: The modem has detected an error with the SIM card. Confirm that it is installed correctly.
- **NETWORK_LIGHT_SERACH_DONE**: The modem has completed a light search based on previous cell history without finding a suitable cell. This message can be used to stop the search to save power.
- **NETWORK_LIGHT_SEARCH_DONE**: The modem has completed a light search based on previous cell history without finding a suitable cell. This message can be used to stop the search to save power.
- **NETWORK_ATTACH_REJECTED**: A network attach request has been rejected by the network.
- **NETWORK_PSM_PARAMS**: PSM parameters have been received (in the `.psm_cfg` field of the message).
- **NETWORK_EDRX_PARAMS**: eDRX parameters have been received (in `.edrx_cfg` field).
Expand Down
4 changes: 2 additions & 2 deletions tests/module/network/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,9 @@ void test_light_search_done(void)

send_mdmev_evt(LTE_LC_MODEM_EVT_LIGHT_SEARCH_DONE);

wait_for_and_check_msg(&msg, NETWORK_LIGHT_SERACH_DONE);
wait_for_and_check_msg(&msg, NETWORK_LIGHT_SEARCH_DONE);

TEST_ASSERT_EQUAL(NETWORK_LIGHT_SERACH_DONE, msg.type);
TEST_ASSERT_EQUAL(NETWORK_LIGHT_SEARCH_DONE, msg.type);
}

void test_modem_reset_loop(void)
Expand Down
Loading