sacca97 opened a new issue, #1662:
URL: https://github.com/apache/mynewt-nimble/issues/1662

   When attempting to pair using SC with JustWorks inside the 
`ble_sm_sc_public_key_exec()` function the call to `ble_sm_tx()` writes the 
wrong content to the output buffer ~80% of the time, causing SC Pairing to 
fail. (testing on peripheral)
   
   This only seems to happen in this specific case when the packet is bigger 
than a certain size (the pubkey is 64) and explains why it is the only function 
that has this problem.
   
   While debugging I found that the buffer content changes already in the first 
line of `ble_sm_tx()`, so technically before any other operation happens. 
   
   I cannot figure out why this is happening but as temporary solution I am 
copying the data in the `om_buf` by using the `_copyinto` function.


-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to