Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rtl872x] fix wifi/ble coexistence issues; USB re-enum workarounds #2752

Merged
merged 6 commits into from
Mar 11, 2024

Conversation

avtolstoy
Copy link
Member

TODO

@avtolstoy avtolstoy added the bug label Mar 10, 2024
@avtolstoy avtolstoy added this to the 5.8.0 milestone Mar 10, 2024
@@ -229,7 +238,7 @@ class BleEventDispatcher {
void* allEvtQueue_;
void* ioEvtQueue_;
bool started_;
static constexpr uint8_t BLE_EVENT_THREAD_PRIORITY = OS_THREAD_PRIORITY_NETWORK;
static constexpr uint8_t BLE_EVENT_THREAD_PRIORITY = OS_THREAD_PRIORITY_NETWORK - 1; // IMPORTANT: below network for coexistence to work!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any thread managing WiFi would effectively be higher priority than the BLE thread?

if (r == GAP_CAUSE_SUCCESS) {
LOCAL_DEBUG("wait GAP_SCAN_STATE_IDLE");
if (!waitState(BleGapDevState().scan(GAP_SCAN_STATE_IDLE))) {
// IMPORTANT: have to poll here, for some reason we may not get notified
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this have anything to do with missing events/interrupts from the SDK?

@avtolstoy avtolstoy merged commit 7939fa4 into develop Mar 11, 2024
1 check passed
@avtolstoy avtolstoy deleted the fix/rtl872x-wifi-ble-coexistence-usb branch March 11, 2024 16:37
@Kategrode
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants