Skip to content

Commit 223714c

Browse files
ccollins476adsjanc
authored andcommitted
host: Wake up stalled conns when a conn is dropped
When a connection is dropped, it may free up some ACL packet capacity in the controller. When this happens, we need to wake up all stalled connections. We want to wake up connections every time the ACL data buffer capcity increases (whenever `ble_hs_hci_add_avail_pkts()` is called).
1 parent 8e1d7ea commit 223714c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nimble/host/src/ble_hs_hci_evt.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,12 @@ ble_hs_hci_evt_disconn_complete(uint8_t event_code, uint8_t *data, int len)
166166

167167
ble_gap_rx_disconn_complete(&evt);
168168

169+
/* The connection termination may have freed up some capacity in the
170+
* controller for additional ACL data packets. Wake up any stalled
171+
* connections.
172+
*/
173+
ble_hs_wakeup_tx();
174+
169175
return 0;
170176
}
171177

0 commit comments

Comments
 (0)