mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-01 06:40:08 +00:00
Added checks to disable stack callback registered with controller during
stack deinit
This commit is contained in:
committed by
Abhinav Kudnar
parent
dbb11daba8
commit
61a861eb00
@@ -582,11 +582,12 @@ ble_hs_enqueue_hci_event(uint8_t *hci_evt)
|
||||
struct ble_npl_event *ev;
|
||||
|
||||
ev = os_memblock_get(&ble_hs_hci_ev_pool);
|
||||
if (ev == NULL) {
|
||||
ble_transport_free(hci_evt);
|
||||
} else {
|
||||
if (ev && ble_hs_evq->eventq) {
|
||||
ble_npl_event_init(ev, ble_hs_event_rx_hci_ev, hci_evt);
|
||||
ble_npl_eventq_put(ble_hs_evq, ev);
|
||||
} else {
|
||||
/* Either ev is NULL or queue doesn't exist */
|
||||
ble_transport_free(hci_evt);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -852,6 +853,8 @@ ble_hs_deinit(void)
|
||||
ble_monitor_deinit();
|
||||
#endif
|
||||
|
||||
ble_hci_trans_cfg_hs(NULL, NULL, NULL, NULL);
|
||||
|
||||
ble_npl_mutex_deinit(&ble_hs_mutex);
|
||||
|
||||
ble_mqueue_deinit(&ble_hs_rx_q);
|
||||
|
||||
Reference in New Issue
Block a user