From 1bda83af1ca76206da5cc27f753eee57b478f678 Mon Sep 17 00:00:00 2001 From: Vinayak Kariappa Chettimada Date: Thu, 15 Feb 2018 20:11:26 +0100 Subject: [PATCH] Bluetooth: controller: Fix to use random CRC init value Fixed controller implementation to use random CRC init value. Fixes #6204. Signed-off-by: Vinayak Kariappa Chettimada --- subsys/bluetooth/controller/ll_sw/ctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/controller/ll_sw/ctrl.c b/subsys/bluetooth/controller/ll_sw/ctrl.c index 92c6c066b47..8d9ce1fd622 100644 --- a/subsys/bluetooth/controller/ll_sw/ctrl.c +++ b/subsys/bluetooth/controller/ll_sw/ctrl.c @@ -10393,7 +10393,7 @@ u32_t radio_connect_enable(u8_t adv_addr_type, u8_t *adv_addr, u16_t interval, conn->llcp_features = RADIO_BLE_FEAT; access_addr = access_addr_get(); memcpy(&conn->access_addr[0], &access_addr, sizeof(conn->access_addr)); - memcpy(&conn->crc_init[0], &conn, 3); + bt_rand(&conn->crc_init[0], 3); memcpy(&conn->data_chan_map[0], &_radio.data_chan_map[0], sizeof(conn->data_chan_map)); conn->data_chan_count = _radio.data_chan_count;