mynewt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ccoll...@apache.org
Subject incubator-mynewt-larva git commit: Fix some minor ble spec comments.
Date Sat, 31 Oct 2015 01:57:48 GMT
Repository: incubator-mynewt-larva
Updated Branches:
  refs/heads/master d5ed97b0c -> 73f7db240


Fix some minor ble spec comments.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/73f7db24
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/73f7db24
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/73f7db24

Branch: refs/heads/master
Commit: 73f7db240a6e96762548648f0183144855d15729
Parents: d5ed97b
Author: Christopher Collins <ccollins476ad@gmail.com>
Authored: Fri Oct 30 18:57:29 2015 -0700
Committer: Christopher Collins <ccollins476ad@gmail.com>
Committed: Fri Oct 30 18:57:29 2015 -0700

----------------------------------------------------------------------
 net/nimble/host/src/host_hci.c         | 3 +--
 net/nimble/include/nimble/hci_common.h | 7 +++----
 2 files changed, 4 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/73f7db24/net/nimble/host/src/host_hci.c
----------------------------------------------------------------------
diff --git a/net/nimble/host/src/host_hci.c b/net/nimble/host/src/host_hci.c
index 837d2e8..629ea3d 100644
--- a/net/nimble/host/src/host_hci.c
+++ b/net/nimble/host/src/host_hci.c
@@ -91,8 +91,7 @@ host_hci_cmd_le_set_adv_params(struct hci_adv_params *adv)
 
     /* Make sure parameters are valid */
     rc = -1;
-    if ((adv->adv_itvl_min > adv->adv_itvl_max) ||
-        (adv->adv_itvl_min == adv->adv_itvl_max) ||
+    if ((adv->adv_itvl_min >= adv->adv_itvl_max) ||
         (adv->own_addr_type > BLE_HCI_ADV_OWN_ADDR_MAX) ||
         (adv->peer_addr_type > BLE_HCI_ADV_PEER_ADDR_MAX) ||
         (adv->adv_filter_policy > BLE_HCI_ADV_FILT_MAX) ||

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/73f7db24/net/nimble/include/nimble/hci_common.h
----------------------------------------------------------------------
diff --git a/net/nimble/include/nimble/hci_common.h b/net/nimble/include/nimble/hci_common.h
index cff82bd..eebca4c 100644
--- a/net/nimble/include/nimble/hci_common.h
+++ b/net/nimble/include/nimble/hci_common.h
@@ -21,10 +21,9 @@
 /* 
  * HCI Command Header
  * 
- * Comprised of the following fields
- *  -> Opcode command field (1)
- *  -> Opcode group field   (1)
- *  -> Parameter Length     (1)
+ * Comprises the following fields
+ *  -> Opcode group field & Opcode command field (2)
+ *  -> Parameter Length                          (1)
  *      Length of all the parameters (does not include any part of the hci
  *      command header
  */


Mime
View raw message