net: Fix frame count check fail
bc_rxtail/rxtail should always point to newly frame. If input more than one frame before receive, missing assignment can result in old frame lost. Signed-off-by: larry <larry@transtekcorp.com>
This commit is contained in:
parent
e77b06721b
commit
8f72799e8e
|
@ -129,6 +129,8 @@ static int bluetooth_queue_frame(FAR struct bluetooth_conn_s *conn,
|
|||
conn->bc_rxtail->bn_flink = container;
|
||||
}
|
||||
|
||||
conn->bc_rxtail = container;
|
||||
|
||||
#if CONFIG_NET_BLUETOOTH_BACKLOG > 0
|
||||
/* If incrementing the count would exceed the maximum bc_backlog value,
|
||||
* then delete the oldest frame from the head of the RX queue.
|
||||
|
|
|
@ -136,6 +136,8 @@ static int ieee802154_queue_frame(FAR struct ieee802154_conn_s *conn,
|
|||
conn->rxtail->ic_flink = container;
|
||||
}
|
||||
|
||||
conn->rxtail = container;
|
||||
|
||||
#if CONFIG_NET_IEEE802154_BACKLOG > 0
|
||||
/* If incrementing the count would exceed the maximum backlog value, then
|
||||
* delete the oldest frame from the head of the RX queue.
|
||||
|
|
Loading…
Reference in New Issue