You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2020/03/20 06:22:55 UTC

[GitHub] [mynewt-nimble] prasad-alatkar opened a new issue #776: NimBLE Host: Advertisement and Scanning state should reset when `ble_hs_reset` is called

prasad-alatkar opened a new issue #776: NimBLE Host: Advertisement and Scanning state should reset when `ble_hs_reset` is called
URL: https://github.com/apache/mynewt-nimble/issues/776
 
 
   If NimBLE host stack resets because of some controller issue, it should clear the advertising and scanning states.
   
   **Brief scenario:**
    
   Currently I am running into scenario, wherein `bleprph` gets DISCONNECT event and followed by host reset (`ble_hs_reset`). Now in `DISCONNECT` event, we start advertisement successfully (`bleprph_adv`). Once `ble_hs_reset` is called it resets host and again starts advertisement in host sync callback (`bleprph_on_sync`). Here we face failure to start advertisement with error code `BLE_HS_EALREADY`. It is happening because in `ble_gap_adv_validate`, this check fails --> `if (ble_gap_slave[0].op != BLE_GAP_OP_NULL)`. 

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [mynewt-nimble] prasad-alatkar closed issue #776: NimBLE Host: Advertisement and Scanning state should be reset when `ble_hs_reset` is called

Posted by GitBox <gi...@apache.org>.
prasad-alatkar closed issue #776: NimBLE Host: Advertisement and Scanning state should be reset when `ble_hs_reset` is called
URL: https://github.com/apache/mynewt-nimble/issues/776
 
 
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services