File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed
subsys/bluetooth/controller/ll_sw Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -746,7 +746,6 @@ void ull_scan_aux_setup(memq_link_t *link, struct node_rx_hdr *rx)
746
746
void ull_scan_aux_done (struct node_rx_event_done * done )
747
747
{
748
748
struct ll_scan_aux_set * aux ;
749
- struct ull_hdr * hdr ;
750
749
751
750
/* Get reference to ULL context */
752
751
aux = CONTAINER_OF (done -> param , struct ll_scan_aux_set , ull );
@@ -757,8 +756,8 @@ void ull_scan_aux_done(struct node_rx_event_done *done)
757
756
758
757
sync = CONTAINER_OF (done -> param , struct ll_sync_set , ull );
759
758
LL_ASSERT (ull_sync_is_valid_get (sync ));
760
- hdr = & sync -> ull ;
761
759
760
+ /* Auxiliary context will be flushed by ull_scan_aux_stop() */
762
761
if (unlikely (sync -> is_stop ) || !sync -> lll .lll_aux ) {
763
762
return ;
764
763
}
@@ -778,18 +777,9 @@ void ull_scan_aux_done(struct node_rx_event_done *done)
778
777
if (unlikely (scan -> is_stop )) {
779
778
return ;
780
779
}
781
-
782
- /* Setup the disabled callback to flush the auxiliary PDUs */
783
- hdr = & aux -> ull ;
784
780
}
785
781
786
- if (ull_ref_get (hdr ) == 0U ) {
787
- flush (aux );
788
- } else {
789
- LL_ASSERT (!hdr -> disabled_cb );
790
- hdr -> disabled_param = aux ;
791
- hdr -> disabled_cb = done_disabled_cb ;
792
- }
782
+ flush (aux );
793
783
}
794
784
795
785
struct ll_scan_aux_set * ull_scan_aux_set_get (uint8_t handle )
You can’t perform that action at this time.
0 commit comments