Skip to content

Commit 8f52501

Browse files
committed
nimble/ll: Add CS Configuration procedure
Implements: - LE CS Create Config command - LE CS Remove Config command
1 parent 2335683 commit 8f52501

File tree

6 files changed

+515
-4
lines changed

6 files changed

+515
-4
lines changed

nimble/controller/include/controller/ble_ll_conn.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ struct ble_ll_conn_sm
278278
uint8_t vers_nr;
279279
uint8_t conn_features;
280280
uint8_t remote_features[7];
281-
uint16_t pending_ctrl_procs;
281+
uint32_t pending_ctrl_procs;
282282
uint16_t event_cntr;
283283
uint16_t completed_pkts;
284284
uint16_t comp_id;

nimble/controller/include/controller/ble_ll_cs.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,17 @@ void ble_ll_cs_init(void);
3232
void ble_ll_cs_reset(void);
3333

3434
void ble_ll_cs_capabilities_pdu_make(struct ble_ll_conn_sm *connsm, uint8_t *dptr);
35+
void ble_ll_cs_config_req_make(struct ble_ll_conn_sm *connsm, uint8_t *dptr);
3536

3637
int ble_ll_cs_rx_capabilities_req(struct ble_ll_conn_sm *connsm, uint8_t *dptr, uint8_t *rspbuf);
3738
void ble_ll_cs_rx_capabilities_rsp(struct ble_ll_conn_sm *connsm, uint8_t *dptr);
3839
void ble_ll_cs_rx_capabilities_req_rejected(struct ble_ll_conn_sm *connsm, uint8_t ble_error);
3940
int ble_ll_cs_rx_fae_req(struct ble_ll_conn_sm *connsm, struct os_mbuf *om);
4041
void ble_ll_cs_rx_fae_rsp(struct ble_ll_conn_sm *connsm, uint8_t *dptr);
4142
void ble_ll_cs_rx_fae_req_rejected(struct ble_ll_conn_sm *connsm, uint8_t ble_error);
43+
int ble_ll_cs_rx_config_req(struct ble_ll_conn_sm *connsm, uint8_t *dptr, uint8_t *rspbuf);
44+
void ble_ll_cs_rx_config_rsp(struct ble_ll_conn_sm *connsm, uint8_t *dptr);
45+
void ble_ll_cs_rx_config_req_rejected(struct ble_ll_conn_sm *connsm, uint8_t ble_error);
4246

4347
/* HCI handlers */
4448
int ble_ll_cs_hci_rd_loc_supp_cap(uint8_t *rspbuf, uint8_t *rsplen);

nimble/controller/include/controller/ble_ll_ctrl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ extern "C" {
4545
#define BLE_LL_CTRL_PROC_SUBRATE_UPDATE (13)
4646
#define BLE_LL_CTRL_PROC_CS_CAP_XCHG (14)
4747
#define BLE_LL_CTRL_PROC_CS_FAE_REQ (15)
48-
#define BLE_LL_CTRL_PROC_NUM (16)
48+
#define BLE_LL_CTRL_PROC_CS_CONF (16)
49+
#define BLE_LL_CTRL_PROC_NUM (17)
4950
#define BLE_LL_CTRL_PROC_IDLE (255)
5051

5152
/* Checks if a particular control procedure is running */

0 commit comments

Comments
 (0)