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 2018/05/25 14:20:57 UTC

[GitHub] rymanluk closed pull request #116: nimble/mesh: Don't send scannable adv events if non-connectable

rymanluk closed pull request #116: nimble/mesh: Don't send scannable adv events if non-connectable
URL: https://github.com/apache/mynewt-nimble/pull/116
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/nimble/host/mesh/src/glue.c b/nimble/host/mesh/src/glue.c
index f6d86bc4..d952c6b6 100644
--- a/nimble/host/mesh/src/glue.c
+++ b/nimble/host/mesh/src/glue.c
@@ -501,10 +501,10 @@ ble_adv_copy_to_ext_param(struct ble_gap_ext_adv_params *ext_param,
     memset(ext_param, 0, sizeof(*ext_param));
 
     ext_param->legacy_pdu = 1;
-    ext_param->scannable = 1;
 
     if (param->conn_mode != BLE_GAP_CONN_MODE_NON) {
         ext_param->connectable = 1;
+        ext_param->scannable = 1;
     }
 
     ext_param->itvl_max = param->itvl_max;


 

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