Skip to content

Commit

Permalink
FW-725. only remove packet not handled by IEEE802154E component.
Browse files Browse the repository at this point in the history
  • Loading branch information
changtengfei committed Mar 15, 2019
1 parent ead7264 commit 25e2551
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions openstack/cross-layers/openqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,18 @@ owerror_t openqueue_freePacketBuffer(OpenQueueEntry_t* pkt) {
\param creator The identifier of the component, taken in COMPONENT_*.
*/
void openqueue_removeAllCreatedBy(uint8_t creator) {
uint8_t i;
INTERRUPT_DECLARATION();
DISABLE_INTERRUPTS();
for (i=0;i<QUEUELENGTH;i++){
if (openqueue_vars.queue[i].creator==creator) {
openqueue_reset_entry(&(openqueue_vars.queue[i]));
}
}
ENABLE_INTERRUPTS();
uint8_t i;
INTERRUPT_DECLARATION();
DISABLE_INTERRUPTS();
for (i=0;i<QUEUELENGTH;i++){
if (
openqueue_vars.queue[i].creator == creator &&
openqueue_vars.queue[i].owner != COMPONENT_IEEE802154E
) {
openqueue_reset_entry(&(openqueue_vars.queue[i]));
}
}
ENABLE_INTERRUPTS();
}

//======= called by RES
Expand Down

0 comments on commit 25e2551

Please sign in to comment.