BLE Host - Combine PREP_WRITE, EXEC_WRITE syscfg

This commit combines the BLE_ATT_SVR_PREP_WRITE and
BLE_ATT_SVR_EXEC_WRITE syscfg settings into one:
BLE_ATT_SVR_QUEUED_WRITE.

It didn't make sense to support one without the other.


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

Branch: refs/heads/develop
Commit: defd62a78d62563a151b1efdac9e68491b02fde3
Parents: 80f4e7f
Author: Christopher Collins <ccoll...@apache.org>
Authored: Thu Dec 1 18:25:08 2016 -0800
Committer: Christopher Collins <ccoll...@apache.org>
Committed: Thu Dec 1 18:25:08 2016 -0800

----------------------------------------------------------------------
 net/nimble/host/src/ble_att_svr.c | 4 ++--
 net/nimble/host/syscfg.yml        | 9 ++++-----
 2 files changed, 6 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/defd62a7/net/nimble/host/src/ble_att_svr.c
----------------------------------------------------------------------
diff --git a/net/nimble/host/src/ble_att_svr.c 
b/net/nimble/host/src/ble_att_svr.c
index f13105e..46daf87 100644
--- a/net/nimble/host/src/ble_att_svr.c
+++ b/net/nimble/host/src/ble_att_svr.c
@@ -2383,7 +2383,7 @@ ble_att_svr_insert_prep_entry(uint16_t conn_handle,
 int
 ble_att_svr_rx_prep_write(uint16_t conn_handle, struct os_mbuf **rxom)
 {
-#if !MYNEWT_VAL(BLE_ATT_SVR_PREP_WRITE)
+#if !MYNEWT_VAL(BLE_ATT_SVR_QUEUED_WRITE)
     return BLE_HS_ENOTSUP;
 #endif
 
@@ -2498,7 +2498,7 @@ done:
 int
 ble_att_svr_rx_exec_write(uint16_t conn_handle, struct os_mbuf **rxom)
 {
-#if !MYNEWT_VAL(BLE_ATT_SVR_EXEC_WRITE)
+#if !MYNEWT_VAL(BLE_ATT_SVR_QUEUED_WRITE)
     return BLE_HS_ENOTSUP;
 #endif
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/defd62a7/net/nimble/host/syscfg.yml
----------------------------------------------------------------------
diff --git a/net/nimble/host/syscfg.yml b/net/nimble/host/syscfg.yml
index 2223c56..c4bbca9 100644
--- a/net/nimble/host/syscfg.yml
+++ b/net/nimble/host/syscfg.yml
@@ -183,11 +183,10 @@ syscfg.defs:
     BLE_ATT_SVR_SIGNED_WRITE:
         description: 'TBD'
         value: 1
-    BLE_ATT_SVR_PREP_WRITE:
-        description: 'TBD'
-        value: 1
-    BLE_ATT_SVR_EXEC_WRITE:
-        description: 'TBD'
+    BLE_ATT_SVR_QUEUED_WRITE:
+        description: >
+            Whether the device can receive ATT queued writes (prepare write
+            and execute write requests).
         value: 1
     BLE_ATT_SVR_NOTIFY:
         description: 'TBD'

Reply via email to