Skip to content

Commit a219598

Browse files
cvinayaknashif
authored andcommitted
Bluetooth: controller: legacy: Fix interval check in CONNECT_IND PDU
Check for interval value in received CONNECT_IND PDU and ignore connection setup. Relates to commit 813b241 ("Bluetooth: controller: Fix interval check in CONNECT_IND PDU"). Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent b39cf80 commit a219598

File tree

1 file changed

+2
-3
lines changed
  • subsys/bluetooth/controller/ll_sw

1 file changed

+2
-3
lines changed

subsys/bluetooth/controller/ll_sw/ctrl.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,15 +1054,14 @@ static inline u32_t isr_rx_adv(u8_t devmatch_ok, u8_t devmatch_id,
10541054
util_ones_count_get(&conn->data_chan_map[0],
10551055
sizeof(conn->data_chan_map));
10561056
conn->data_chan_hop = pdu_adv->connect_ind.hop;
1057+
conn->conn_interval = pdu_adv->connect_ind.interval;
10571058
if ((conn->data_chan_count < 2) || (conn->data_chan_hop < 5) ||
1058-
(conn->data_chan_hop > 16)) {
1059+
(conn->data_chan_hop > 16) || !conn->conn_interval) {
10591060
return 1;
10601061
}
10611062

10621063
_radio.advertiser.conn = NULL;
10631064

1064-
conn->conn_interval =
1065-
pdu_adv->connect_ind.interval;
10661065
conn_interval_us =
10671066
pdu_adv->connect_ind.interval * 1250;
10681067
conn->latency = pdu_adv->connect_ind.latency;

0 commit comments

Comments
 (0)