Skip to content

Commit

Permalink
handle extended reset
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-szczepanek-arm committed Mar 12, 2019
1 parent 8dcc52d commit b96c0ac
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ void CordioHCIDriver::handle_reset_sequence(uint8_t *pMsg)
case HCI_OPCODE_LE_WRITE_DEF_DATA_LEN:
if (hciCoreCb.extResetSeq) {
/* send first extended command */
(*hciCoreCb.extResetSeq)(pMsg, opcode);
HciReadLocalVerInfoCmd();

This comment has been minimized.

Copy link
@pan-

pan- Mar 12, 2019

Collaborator

What's the impact of this change ?

This comment has been minimized.

Copy link
@paul-szczepanek-arm

paul-szczepanek-arm Mar 13, 2019

Author Owner

The sequence inside hciCoreCb.extResetSeq needs this command to kick it off

} else {
/* initialize extended parameters */
hciCoreCb.maxAdvDataLen = 0;
Expand All @@ -237,6 +237,7 @@ void CordioHCIDriver::handle_reset_sequence(uint8_t *pMsg)
}
break;

case HCI_OPCODE_READ_LOCAL_VER_INFO:
case HCI_OPCODE_LE_READ_MAX_ADV_DATA_LEN:
case HCI_OPCODE_LE_READ_NUM_SUP_ADV_SETS:
case HCI_OPCODE_LE_READ_PER_ADV_LIST_SIZE:
Expand Down

0 comments on commit b96c0ac

Please sign in to comment.