We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e83b12c + dda185b commit 60ce2cfCopy full SHA for 60ce2cf
nimble/controller/src/ble_ll.c
@@ -711,6 +711,7 @@ ble_ll_tx_pkt_in(void)
711
uint16_t pb;
712
struct os_mbuf_pkthdr *pkthdr;
713
struct os_mbuf *om;
714
+ os_sr_t sr;
715
716
/* Drain all packets off the queue */
717
while (STAILQ_FIRST(&g_ble_ll_data.ll_tx_pkt_q)) {
@@ -719,7 +720,9 @@ ble_ll_tx_pkt_in(void)
719
720
om = (struct os_mbuf *)((uint8_t *)pkthdr - sizeof(struct os_mbuf));
721
722
/* Remove from queue */
723
+ OS_ENTER_CRITICAL(sr);
724
STAILQ_REMOVE_HEAD(&g_ble_ll_data.ll_tx_pkt_q, omp_next);
725
+ OS_EXIT_CRITICAL(sr);
726
727
/* Strip HCI ACL header to get handle and length */
728
handle = get_le16(om->om_data);
0 commit comments