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/05/21 19:54:01 UTC

[GitHub] [mynewt-nimble] apache-mynewt-bot commented on pull request #540: nimble/host: Add support to accept or reject pairing request through GAP event

apache-mynewt-bot commented on pull request #540:
URL: https://github.com/apache/mynewt-nimble/pull/540#issuecomment-632310248


   
   <!-- style-bot -->
   
   ## Style check summary
   
   ### Our coding style is [here!](https://github.com/apache/mynewt-core/blob/master/CODING_STANDARDS.md)
   
   
   #### nimble/host/src/ble_sm.c
   <details>
   
   ```diff
   @@ -1813,12 +1812,12 @@
         */
        rc = ble_sm_pairing_req(conn_handle, req);
        if (rc != 0) {
   -         /* The app indicated that the pairing request should be rejected. */
   -         res->sm_err = BLE_SM_ERR_AUTHREQ;
   -         res->app_status = BLE_HS_SM_US_ERR(rc);
   -         res->execute = 0;
   -         return;
   -     }
   +        /* The app indicated that the pairing request should be rejected. */
   +        res->sm_err = BLE_SM_ERR_AUTHREQ;
   +        res->app_status = BLE_HS_SM_US_ERR(rc);
   +        res->execute = 0;
   +        return;
   +    }
    
        /* Check if there is storage capacity for a new bond.  If there isn't, ask
         * the application to make room.
   ```
   
   </details>


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