Skip to content

Commit

Permalink
Merge branch 'feat/use_wifi_modem_max_for_br' into 'main'
Browse files Browse the repository at this point in the history
feat(br): use wifi power save max modem

See merge request espressif/esp-thread-br!125
  • Loading branch information
chshu committed Jul 11, 2024
2 parents 215872f + a94544b commit bdda569
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion components/esp_ot_cli_extension/idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "1.1.3"
version: "1.1.4"
description: Espressif OpenThread CLI Extension
url: https://github.com/espressif/esp-thread-br/tree/main/components/esp_ot_cli_extension
dependencies:
Expand Down
5 changes: 1 addition & 4 deletions components/esp_ot_cli_extension/src/esp_ot_wifi_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,9 @@ static void wifi_join(const char *ssid, const char *psk)
}
esp_wifi_init(&cfg);
handle_wifi_addr_init();

ESP_ERROR_CHECK(esp_wifi_set_ps(WIFI_PS_MAX_MODEM));
#if CONFIG_ESP_COEX_SW_COEXIST_ENABLE && CONFIG_OPENTHREAD_RADIO_NATIVE
ESP_ERROR_CHECK(esp_wifi_set_ps(WIFI_PS_MIN_MODEM));
ESP_ERROR_CHECK(esp_coex_wifi_i154_enable());
#else
ESP_ERROR_CHECK(esp_wifi_set_ps(WIFI_PS_NONE));
#endif
ESP_ERROR_CHECK(
esp_event_handler_register(WIFI_EVENT, WIFI_EVENT_STA_DISCONNECTED, &handler_on_wifi_disconnect, NULL));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ static void ot_task_worker(void *ctx)
esp_openthread_lock_release();
ESP_ERROR_CHECK(example_connect());
#if CONFIG_EXAMPLE_CONNECT_WIFI
ESP_ERROR_CHECK(esp_wifi_set_ps(WIFI_PS_NONE));
ESP_ERROR_CHECK(esp_wifi_set_ps(WIFI_PS_MAX_MODEM));
#endif
esp_openthread_lock_acquire(portMAX_DELAY);
esp_openthread_set_backbone_netif(get_example_netif());
Expand Down

0 comments on commit bdda569

Please sign in to comment.