rymanluk opened a new pull request #871:
URL: https://github.com/apache/mynewt-nimble/pull/871


   Background:
   When Central sends LL_ENC_REQ, Peripheral is allowed to send unencrypted
   data until LL_ENC_RSP is sent back to Central. This is why, Nimble LL puts
   LL_ENC_RSP to the tail of the conn_txq.
   
   Issue description:
   When lot of trafic is ongoing in the link while encryption, we might
   stack in the process.
   This is because enc_state CONN_ENC_S_LTK_REQ_WAIT is set just after
   LL_ENC_REQ has been received. If there are still packets in the conn_txq
   to send, those will not be sent because of the enc_state. Instead empty
   packets will be send and LL_ENC_RSP will stack in the conn_txq.
   
   Fix:
   Add addition state for Peripheral role and make sure that LL is able to
   send unecypted packets from its conn_txq until LL_ENC_RSP is sent.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to