Skip to content

Commit 2b2eb9b

Browse files
cvinayakcarlescufi
authored andcommitted
Bluetooth: controller: Refactor Conn Param Req implementation
Refactor the Connection Parameter Request Procedure to be separate from and not overlap the variables of the Connection Update Procedure. Also, added missing implementations to pass all Connection Parameter Request Procedure related Conformance Tests. Jira: ZEP-1918 Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent f597c81 commit 2b2eb9b

File tree

5 files changed

+898
-498
lines changed

5 files changed

+898
-498
lines changed

subsys/bluetooth/controller/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,13 @@ config BT_CTLR_LE_ENC
112112
# Enable support for Bluetooth v4.0 LE Encryption feature in the
113113
# Controller.
114114

115+
config BT_CTLR_CONN_PARAM_REQ
116+
bool "Connection Parameter Request"
117+
default y
118+
help
119+
Enable support for Bluetooth v4.1 Connection Parameter Request feature
120+
in the Controller.
121+
115122
config BT_CTLR_LE_PING
116123
bool "LE Ping"
117124
default y

subsys/bluetooth/controller/hci/hci.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2431,6 +2431,10 @@ static void le_conn_param_req(struct pdu_data *pdu_data, u16_t handle,
24312431

24322432
if (!(event_mask & BT_EVT_MASK_LE_META_EVENT) ||
24332433
!(le_event_mask & BT_EVT_MASK_LE_CONN_PARAM_REQ)) {
2434+
/* event masked, reject the conn param req */
2435+
ll_conn_update(handle, 2, BT_HCI_ERR_UNSUPP_REMOTE_FEATURE,
2436+
0, 0, 0);
2437+
24342438
return;
24352439
}
24362440

0 commit comments

Comments
 (0)