You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@mynewt.apache.org by "szymon-czapracki (via GitHub)" <gi...@apache.org> on 2025/05/22 13:13:25 UTC

Re: [PR] nimble/host: add support for asynchronous authorization [mynewt-nimble]

szymon-czapracki commented on code in PR #2013:
URL: https://github.com/apache/mynewt-nimble/pull/2013#discussion_r2102530931


##########
apps/btshell/src/main.c:
##########
@@ -1555,6 +1559,25 @@ btshell_gap_event(struct ble_gap_event *event, void *arg)
         return 0;
 #endif
 #endif
+    case BLE_GAP_EVENT_AUTHORIZE:
+        for (i = 0; i < PENDING_ATTR_MAX; i++) {
+            if (authorized_attrs[i].conn_handle ==
+            event->authorize.conn_handle && authorized_attrs[i].attr_handle ==
+            event->authorize.attr_handle) {

Review Comment:
   ```suggestion
   if (authorized_attrs[i].conn_handle == event->authorize.conn_handle &&
       authorized_attrs[i].attr_handle == event->authorize.attr_handle) {
   ```



-- 
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: notifications-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org