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/10/12 13:46:50 UTC

[GitHub] sjanc commented on a change in pull request #605: nimble/ll: Fix scheduling of extended advertising events

sjanc commented on a change in pull request #605: nimble/ll: Fix scheduling of extended advertising events
URL: https://github.com/apache/mynewt-core/pull/605#discussion_r144290457
 
 

 ##########
 File path: net/nimble/controller/src/ble_ll_adv.c
 ##########
 @@ -118,13 +119,27 @@ struct ble_ll_adv_sm
 #define BLE_LL_ADV_SM_FLAG_RX_ADD           0x02
 #define BLE_LL_ADV_SM_FLAG_SCAN_REQ_NOTIF   0x04
 #define BLE_LL_ADV_SM_FLAG_CONN_RSP_TXD     0x08
-#define BLE_LL_ADV_SM_FLAG_SECONDARY        0x10
+#define BLE_LL_ADV_SM_FLAG_ACTIVE_CHANSET   0x30 /* use helpers to get/set */
+
+/* active channels set is 1 for primary, 2 for secondary and 0 for none */
+static inline int
+ble_ll_adv_active_chanset_get(struct ble_ll_adv_sm *advsm)
 
 Review comment:
   if you have separate helper for testing primary and secondary you could avoid magic 1 and 2 in code 
 
----------------------------------------------------------------
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