Skip to content

Commit

Permalink
Merge branch 'bugfix/wifi_sta_and_ble_disconnect_BCI-303_v4.4' into '…
Browse files Browse the repository at this point in the history
…release/v4.4'

component_bt: Fix wifi is initialized before bluetooth initialization, bluetooth can't stay connected(v4.4)

See merge request espressif/esp-idf!18999
  • Loading branch information
jack0c committed Jul 12, 2022
2 parents 327624b + c85f71a commit bd72694
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 2 additions & 0 deletions components/bt/controller/esp32c3/bt.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ extern int ble_txpwr_get(int power_type);

extern uint16_t l2c_ble_link_get_tx_buf_num(void);
extern int coex_core_ble_conn_dyn_prio_get(bool *low, bool *high);
extern void coex_pti_v2(void);

extern bool btdm_deep_sleep_mem_init(void);
extern void btdm_deep_sleep_mem_deinit(void);
Expand Down Expand Up @@ -1125,6 +1126,7 @@ esp_err_t esp_bt_controller_init(esp_bt_controller_config_t *cfg)
err = ESP_ERR_NO_MEM;
goto error;
}
coex_pti_v2();

btdm_controller_status = ESP_BT_CONTROLLER_STATUS_INITED;

Expand Down
2 changes: 2 additions & 0 deletions components/bt/controller/esp32s3/bt.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ extern int ble_txpwr_get(int power_type);

extern uint16_t l2c_ble_link_get_tx_buf_num(void);
extern int coex_core_ble_conn_dyn_prio_get(bool *low, bool *high);
extern void coex_pti_v2(void);

extern bool btdm_deep_sleep_mem_init(void);
extern void btdm_deep_sleep_mem_deinit(void);
Expand Down Expand Up @@ -1092,6 +1093,7 @@ esp_err_t esp_bt_controller_init(esp_bt_controller_config_t *cfg)
err = ESP_ERR_NO_MEM;
goto error;
}
coex_pti_v2();

btdm_controller_status = ESP_BT_CONTROLLER_STATUS_INITED;

Expand Down
6 changes: 0 additions & 6 deletions components/esp_phy/src/phy_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,6 @@ void esp_phy_enable(void)
#if CONFIG_IDF_TARGET_ESP32
coex_bt_high_prio();
#endif

#if CONFIG_BT_ENABLED && (CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32S3)
extern void coex_pti_v2(void);
coex_pti_v2();
#endif

}
s_phy_access_ref++;

Expand Down

0 comments on commit bd72694

Please sign in to comment.