Merge pull request #710 from andrzej-kaczmarek/nimble-iphone-fix

nimble/ll: Do not initiate features xchg as a slave

X-Original-Commit: 4df0a173a97d2556a7f5f8997822e5f69a126e19
This commit is contained in:
Andrzej Kaczmarek
2017-12-22 10:32:39 +01:00
committed by GitHub
+10 -3
View File
@@ -2511,10 +2511,17 @@ ble_ll_conn_created(struct ble_ll_conn_sm *connsm, struct ble_mbuf_hdr *rxhdr)
#if (MYNEWT_VAL(BLE_LL_CFG_FEAT_LE_CSA2) == 1)
ble_ll_hci_ev_le_csa(connsm);
#endif
}
/* Initiate features exchange */
ble_ll_ctrl_proc_start(connsm, BLE_LL_CTRL_PROC_FEATURE_XCHG);
/*
* Initiate features exchange
*
* XXX we do this only as a master as it was observed that sending
* LL_SLAVE_FEATURE_REQ after connection breaks some recent iPhone
* models; for slave just assume master will initiate features xchg
* if it has some additional features to use.
*/
ble_ll_ctrl_proc_start(connsm, BLE_LL_CTRL_PROC_FEATURE_XCHG);
}
}
return rc;