You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by gi...@git.apache.org on 2017/07/25 20:54:56 UTC

[GitHub] andrzej-kaczmarek commented on a change in pull request #461: nimble/controller: Improve scanner (do not merge)

andrzej-kaczmarek commented on a change in pull request #461: nimble/controller: Improve scanner (do not merge)
URL: https://github.com/apache/mynewt-core/pull/461#discussion_r129419933
 
 

 ##########
 File path: net/nimble/controller/src/ble_ll_conn.c
 ##########
 @@ -808,6 +808,22 @@ ble_ll_conn_reset_pending_aux_conn_rsp(void)
     return;
 }
 
+bool
+ble_ll_conn_init_aux_conn_is_sent(void)
+{
+#if !MYNEWT_VAL(BLE_LL_CFG_FEAT_LL_EXT_ADV)
+    return false;
+#endif
+    struct ble_ll_conn_sm *connsm;
+
+    connsm = g_ble_ll_conn_create_sm;
+    if (!connsm) {
+        return false;
+    }
+
+    return !!CONN_F_AUX_CONN_REQ(connsm);
 
 Review comment:
   no need for !!
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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