esp-wifi: Fix ble + coex + defmt for ESP32 (#3596)

* Make CI fail as it should

* Fix ESP32 + defmt + ble + coex

* CHANGELOG
This commit is contained in:
Björn Quentin 2025-06-04 16:26:59 +02:00 committed by GitHub
parent b6ba222dec
commit 75f728aec9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 8 deletions

View File

@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Fix a compilation error for ESP32 + coex + ble + defmt (#3596)
### Removed

View File

@ -633,7 +633,7 @@ pub(crate) const BTDM_ASYNC_WAKEUP_REQ_COEX: i32 = 1;
/// *************************************************************************
#[cfg(coex)]
pub(crate) fn async_wakeup_request(event: i32) -> bool {
trace!("async_wakeup_request {event}");
trace!("async_wakeup_request {}", event);
unsafe extern "C" {
fn btdm_in_wakeup_requesting_set(set: bool);
@ -643,7 +643,7 @@ pub(crate) fn async_wakeup_request(event: i32) -> bool {
fn btdm_wakeup_request();
}
let request_lock = match event {
match event {
e if e == BTDM_ASYNC_WAKEUP_REQ_HCI => {
unsafe {
btdm_in_wakeup_requesting_set(true);
@ -664,9 +664,8 @@ pub(crate) fn async_wakeup_request(event: i32) -> bool {
false
}
}
_ => return false,
};
request_lock
_ => false,
}
}
/// **************************************************************************
@ -684,7 +683,7 @@ pub(crate) fn async_wakeup_request(event: i32) -> bool {
/// *************************************************************************
#[cfg(coex)]
pub(crate) fn async_wakeup_request_end(event: i32) {
trace!("async_wakeup_request_end {event}");
trace!("async_wakeup_request_end {}", event);
let request_lock = match event {
e if e == BTDM_ASYNC_WAKEUP_REQ_HCI => true,

View File

@ -146,10 +146,10 @@ impl Package {
features.push("smoltcp/proto-ipv4".to_owned());
features.push("smoltcp/proto-ipv6".to_owned());
}
if config.contains("ble") {
if config.contains("bt") {
features.push("ble".to_owned());
}
if config.contains("coex") {
if config.contains("wifi") && config.contains("bt") {
features.push("coex".to_owned());
}
}