Repository: incubator-mynewt-larva
Updated Branches:
  refs/heads/master 7a15092e5 -> 0cbef2dde


Respond correctly if we receive a LL control request that we dont 
understand/implement. Also, fix bug where we would not stop our own initiated 
slave feature req if we received a unknown response from the peer


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/0cbef2dd
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/0cbef2dd
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/0cbef2dd

Branch: refs/heads/master
Commit: 0cbef2dde3a363752bfc71e891d449b75d1b6e1e
Parents: 7a15092
Author: wes3 <w...@micosa.io>
Authored: Mon Jan 25 12:33:37 2016 -0800
Committer: wes3 <w...@micosa.io>
Committed: Mon Jan 25 12:33:37 2016 -0800

----------------------------------------------------------------------
 net/nimble/controller/src/ble_ll_ctrl.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/0cbef2dd/net/nimble/controller/src/ble_ll_ctrl.c
----------------------------------------------------------------------
diff --git a/net/nimble/controller/src/ble_ll_ctrl.c 
b/net/nimble/controller/src/ble_ll_ctrl.c
index 7531873..493b056 100644
--- a/net/nimble/controller/src/ble_ll_ctrl.c
+++ b/net/nimble/controller/src/ble_ll_ctrl.c
@@ -280,6 +280,9 @@ ble_ll_ctrl_proc_unk_rsp(struct ble_ll_conn_sm *connsm, 
uint8_t *dptr)
     case BLE_LL_CTRL_CONN_UPDATE_REQ:
         ctrl_proc = BLE_LL_CTRL_PROC_CONN_UPDATE;
         break;
+    case BLE_LL_CTRL_SLAVE_FEATURE_REQ:
+        ctrl_proc = BLE_LL_CTRL_PROC_FEATURE_XCHG;
+        break;
     case BLE_LL_CTRL_CONN_PARM_RSP:
     case BLE_LL_CTRL_CONN_PARM_REQ:
         ctrl_proc = BLE_LL_CTRL_PROC_CONN_PARAM_REQ;
@@ -1031,11 +1034,13 @@ ble_ll_ctrl_rx_pdu(struct ble_ll_conn_sm *connsm, 
struct os_mbuf *om)
         }
         break;
 
-    /* XXX: remember to check if feature supported */
+    /* XXX: remember to check if feature supported. Implement! */
     case BLE_LL_CTRL_CHANNEL_MAP_REQ:
     case BLE_LL_CTRL_ENC_REQ:
     case BLE_LL_CTRL_START_ENC_REQ:
     case BLE_LL_CTRL_PAUSE_ENC_REQ:
+    case BLE_LL_CTRL_PING_REQ:
+    case BLE_LL_CTRL_VERSION_IND:
         /* Construct unknown pdu */
         rspbuf[1] = opcode;
         rsp_opcode = BLE_LL_CTRL_UNKNOWN_RSP;

Reply via email to