diff options
author | Andre Eisenbach <eisenbach@google.com> | 2015-04-15 17:56:03 -0700 |
---|---|---|
committer | Andre Eisenbach <eisenbach@google.com> | 2015-04-15 23:25:23 -0700 |
commit | fdb346d90c04bb1a83d87f1f46fdbc9db890b612 (patch) | |
tree | ce8df33c74cd51c58495f218c23463448f21f749 | |
parent | 636d6714a4c08dd99d2147dcce05dc3892e804b4 (diff) | |
download | bt-fdb346d90c04bb1a83d87f1f46fdbc9db890b612.tar.gz |
Fix LE pairing
Change-Id: Ie4ecab207f83d8ec27c5922c0c794f8bd824255f
-rw-r--r-- | stack/l2cap/l2c_ble.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/stack/l2cap/l2c_ble.c b/stack/l2cap/l2c_ble.c index 05ff5bf40..75032b2b0 100644 --- a/stack/l2cap/l2c_ble.c +++ b/stack/l2cap/l2c_ble.c @@ -352,14 +352,6 @@ void l2cble_scanner_conn_comp (UINT16 handle, BD_ADDR bda, tBLE_ADDR_TYPE type, p_lcb->peer_chnl_mask[0] = L2CAP_FIXED_CHNL_ATT_BIT | L2CAP_FIXED_CHNL_BLE_SIG_BIT | L2CAP_FIXED_CHNL_SMP_BIT; btm_ble_set_conn_st(BLE_CONN_IDLE); - /* - * This is wrong. However, querying the other side is wrong too, since as per spec they - * cannot really tell us when they have fixed channels open. Yes, bluedroid breaks the - * spec in EDR mode in that respect, but that it a whole new story. - */ - for(i = 0; i < L2CAP_FIXED_CHNL_ARRAY_SIZE; i++) - p_lcb->peer_chnl_mask[i] = 0xFF; - l2cu_process_fixed_chnl_resp (p_lcb); } @@ -439,14 +431,6 @@ void l2cble_advertiser_conn_comp (UINT16 handle, BD_ADDR bda, tBLE_ADDR_TYPE typ { L2CA_CancelBleConnectReq(bda); } - /* - * This is wrong. However, querying the other side is wrong too, since as per spec they - * cannot really tell us when they have fixed channels open. Yes, bluedroid breaks the - * spec in EDR mode in that respect, but that it a whole new story. - */ - for(i = 0; i < L2CAP_FIXED_CHNL_ARRAY_SIZE; i++) - p_lcb->peer_chnl_mask[i] = 0xFF; - l2cu_process_fixed_chnl_resp (p_lcb); } /******************************************************************************* |