mynewt-nimble icon indicating copy to clipboard operation
mynewt-nimble copied to clipboard

nimble/host: Add support to accept or reject pairing request through GAP event

Open prasad-alatkar opened this issue 6 years ago • 7 comments

  • The PR is intended to give chance to application to accept or reject pairing request through GAP event.
  • In case of implementing Mode 1 security level 4, the connection should be authenticated le secure connection only, but there is no way to make sure that the Mode 1 security level 4 is achieved or not. The PR addresses this issue in particular but is not limited to.

prasad-alatkar avatar Jul 24 '19 17:07 prasad-alatkar

@rymanluk Apologies for not updating the PR for long time. I have incorporated your suggestions. Please take a look and suggest if any improvements. I am expecting few CI test failures given the nature of PR, please provide inputs on modifying tests as well. Thanks

prasad-alatkar avatar Apr 05 '21 20:04 prasad-alatkar

@andrzej-kaczmarek @rymanluk Could you guys please take a look ?

prasad-alatkar avatar Apr 07 '21 05:04 prasad-alatkar

@rymanluk Can you please take a look at the PR ?

prasad-alatkar avatar Apr 15 '21 08:04 prasad-alatkar

Style check summary

No suggestions at this time!

apache-mynewt-bot avatar Apr 15 '21 13:04 apache-mynewt-bot

@prasad-alatkar looks like unit tests are failing. newt test @apache-mynewt-nimble/nimble/host/test could you check that? Also could you please add a patch to btshell which would allow to test this patch? Thanks

rymanluk avatar Apr 17 '21 00:04 rymanluk

@prasad-alatkar looks like unit tests are failing. newt test @apache-mynewt-nimble/nimble/host/test could you check that? Also could you please add a patch to btshell which would allow to test this patch? Thanks

@rymanluk , as per my understanding the failure is seen in unit test : ble_sm_test_case_peer_lgcy_fail_confirm. However, I am a little confused with the error prints here: nimble_host_test.elf: nimble/host/src/ble_hs.c:194: ble_hs_lock: Assertion !ble_hs_locked_by_cur_task()' failed. It seems that ble_hs_lock` is getting called twice somewhere, but the PR changes do not add any extra host lock. Could you please help here to pass the CI tests ? I am not very familiar with BT tests here, could you please let me know if it is possible to collect debug logs through CI ?

prasad-alatkar avatar Jul 27 '21 15:07 prasad-alatkar

Hi @rymanluk , Can you kindly let us know that except for the test case passing, is the code changes done to resolve this issue acceptable ?

Thanks, Rahul

rahult-github avatar Aug 26 '21 04:08 rahult-github