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 2021/09/02 14:08:50 UTC

[GitHub] [mynewt-nimble] jrotkiewicz opened a new pull request #1018: Dialog and bttester

jrotkiewicz opened a new pull request #1018:
URL: https://github.com/apache/mynewt-nimble/pull/1018


   Fixes for bttester to build on dialog_da1469x-dk-pro board


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

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



[GitHub] [mynewt-nimble] jrotkiewicz commented on a change in pull request #1018: Dialog and bttester

Posted by GitBox <gi...@apache.org>.
jrotkiewicz commented on a change in pull request #1018:
URL: https://github.com/apache/mynewt-nimble/pull/1018#discussion_r744725640



##########
File path: apps/bttester/src/bttester.h
##########
@@ -320,6 +320,12 @@ struct gap_set_mitm_cmd {
     uint8_t mitm;
 } __packed;
 
+#define GAP_SET_FILTER_ACCEPT_LIST	0x1f
+struct gap_set_filter_accept_list_cmd {
+    uint8_t list_len;
+    uint8_t own_addr_type;

Review comment:
       Fixed: https://github.com/apache/mynewt-nimble/pull/1085
   list_len remained, the explicit way of providing the number of addresses is better imo. Nevertheless added check for number of bytes received. 




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

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



[GitHub] [mynewt-nimble] jrotkiewicz commented on pull request #1018: Dialog and bttester

Posted by GitBox <gi...@apache.org>.
jrotkiewicz commented on pull request #1018:
URL: https://github.com/apache/mynewt-nimble/pull/1018#issuecomment-963228137


   Separated commits to different pull requests. Closing PR. 


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

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



[GitHub] [mynewt-nimble] jrotkiewicz commented on a change in pull request #1018: Dialog and bttester

Posted by GitBox <gi...@apache.org>.
jrotkiewicz commented on a change in pull request #1018:
URL: https://github.com/apache/mynewt-nimble/pull/1018#discussion_r744723134



##########
File path: nimble/host/util/src/addr.c
##########
@@ -55,8 +55,13 @@ ble_hs_util_ensure_rand_addr(void)
 
     /* Otherwise, try to load a random address. */
     rc = ble_hs_util_load_rand_addr(&addr);
+
     if (rc != 0) {
-        return rc;
+        /* If it didn't work, generate random address */

Review comment:
       > I feel like this should be a separate PR. It is a standalone fix and we can get it in faster that way.
   
   https://github.com/apache/mynewt-nimble/pull/1084




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

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



[GitHub] [mynewt-nimble] jrotkiewicz closed pull request #1018: Dialog and bttester

Posted by GitBox <gi...@apache.org>.
jrotkiewicz closed pull request #1018:
URL: https://github.com/apache/mynewt-nimble/pull/1018


   


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

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



[GitHub] [mynewt-nimble] michal-narajowski commented on a change in pull request #1018: Dialog and bttester

Posted by GitBox <gi...@apache.org>.
michal-narajowski commented on a change in pull request #1018:
URL: https://github.com/apache/mynewt-nimble/pull/1018#discussion_r742767749



##########
File path: nimble/host/util/src/addr.c
##########
@@ -55,8 +55,13 @@ ble_hs_util_ensure_rand_addr(void)
 
     /* Otherwise, try to load a random address. */
     rc = ble_hs_util_load_rand_addr(&addr);
+
     if (rc != 0) {
-        return rc;
+        /* If it didn't work, generate random address */

Review comment:
       Also, we need to add dialog targets to the CI.

##########
File path: nimble/host/util/src/addr.c
##########
@@ -55,8 +55,13 @@ ble_hs_util_ensure_rand_addr(void)
 
     /* Otherwise, try to load a random address. */
     rc = ble_hs_util_load_rand_addr(&addr);
+
     if (rc != 0) {
-        return rc;
+        /* If it didn't work, generate random address */

Review comment:
       I feel like this should be a separate PR. It is a standalone fix and we can get it in faster that way. 

##########
File path: apps/bttester/src/bttester.h
##########
@@ -320,6 +320,12 @@ struct gap_set_mitm_cmd {
     uint8_t mitm;
 } __packed;
 
+#define GAP_SET_FILTER_ACCEPT_LIST	0x1f
+struct gap_set_filter_accept_list_cmd {
+    uint8_t list_len;
+    uint8_t own_addr_type;

Review comment:
       `own_addr_type` is not related to this command. You don't use it there.

##########
File path: apps/bttester/src/bttester.h
##########
@@ -320,6 +320,12 @@ struct gap_set_mitm_cmd {
     uint8_t mitm;
 } __packed;
 
+#define GAP_SET_FILTER_ACCEPT_LIST	0x1f
+struct gap_set_filter_accept_list_cmd {
+    uint8_t list_len;
+    uint8_t own_addr_type;

Review comment:
       `list_len` is not necessary because BLE Address has a known, fixed length, so we can assume that the length of the command should be a multiple of (address + addr type) length. In case it isn't we should return an error.




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

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