fix(bt): Fixed blocking during LMP packet type negotiation on ESP32-S31

In the Bluetooth connections with some smartphones, communication can possibly be blocked
during packet type negotation, when ESP32-S31 attempts to finalize the ACL-U transmission
and waits for the last Tx ACL-U packet to be transmitted, but peer device rejects the
packet with FLOW=STOP in its packet, thus causing a deadlock.

Closes https://github.com/espressif/esp-idf/issues/18797

This MR also provide with some optimizations and fixes
This commit is contained in:
Wang Mengyang
2026-07-22 15:53:44 +08:00
committed by Jack
parent 41e3a0ef34
commit 481b244fe8