Lines Matching refs:cmd_code
135 typedef BT_HDR* (*tSMP_CMD_ACT)(uint8_t cmd_code, tSMP_CB* p_cb);
137 static BT_HDR* smp_build_pairing_cmd(uint8_t cmd_code, tSMP_CB* p_cb);
138 static BT_HDR* smp_build_confirm_cmd(UNUSED_ATTR uint8_t cmd_code,
140 static BT_HDR* smp_build_rand_cmd(UNUSED_ATTR uint8_t cmd_code, tSMP_CB* p_cb);
141 static BT_HDR* smp_build_pairing_fail(UNUSED_ATTR uint8_t cmd_code,
143 static BT_HDR* smp_build_identity_info_cmd(UNUSED_ATTR uint8_t cmd_code,
145 static BT_HDR* smp_build_encrypt_info_cmd(UNUSED_ATTR uint8_t cmd_code,
147 static BT_HDR* smp_build_security_request(UNUSED_ATTR uint8_t cmd_code,
149 static BT_HDR* smp_build_signing_info_cmd(UNUSED_ATTR uint8_t cmd_code,
151 static BT_HDR* smp_build_master_id_cmd(UNUSED_ATTR uint8_t cmd_code,
153 static BT_HDR* smp_build_id_addr_cmd(UNUSED_ATTR uint8_t cmd_code,
155 static BT_HDR* smp_build_pair_public_key_cmd(UNUSED_ATTR uint8_t cmd_code,
157 static BT_HDR* smp_build_pairing_commitment_cmd(UNUSED_ATTR uint8_t cmd_code,
159 static BT_HDR* smp_build_pair_dhkey_check_cmd(UNUSED_ATTR uint8_t cmd_code,
162 UNUSED_ATTR uint8_t cmd_code, tSMP_CB* p_cb);
364 bool smp_send_cmd(uint8_t cmd_code, tSMP_CB* p_cb) { in smp_send_cmd() argument
369 cmd_code, p_cb->pairing_bda.ToString().c_str()); in smp_send_cmd()
371 if (cmd_code <= (SMP_OPCODE_MAX + 1 /* for SMP_OPCODE_PAIR_COMMITM */) && in smp_send_cmd()
372 smp_cmd_build_act[cmd_code] != NULL) { in smp_send_cmd()
373 p_buf = (*smp_cmd_build_act[cmd_code])(cmd_code, p_cb); in smp_send_cmd()
448 BT_HDR* smp_build_pairing_cmd(uint8_t cmd_code, tSMP_CB* p_cb) { in smp_build_pairing_cmd() argument
456 UINT8_TO_STREAM(p, cmd_code); in smp_build_pairing_cmd()
478 static BT_HDR* smp_build_confirm_cmd(UNUSED_ATTR uint8_t cmd_code, in smp_build_confirm_cmd() argument
504 static BT_HDR* smp_build_rand_cmd(UNUSED_ATTR uint8_t cmd_code, tSMP_CB* p_cb) { in smp_build_rand_cmd() argument
528 static BT_HDR* smp_build_encrypt_info_cmd(UNUSED_ATTR uint8_t cmd_code, in smp_build_encrypt_info_cmd() argument
553 static BT_HDR* smp_build_master_id_cmd(UNUSED_ATTR uint8_t cmd_code, in smp_build_master_id_cmd() argument
579 static BT_HDR* smp_build_identity_info_cmd(UNUSED_ATTR uint8_t cmd_code, in smp_build_identity_info_cmd() argument
607 static BT_HDR* smp_build_id_addr_cmd(UNUSED_ATTR uint8_t cmd_code, in smp_build_id_addr_cmd() argument
633 static BT_HDR* smp_build_signing_info_cmd(UNUSED_ATTR uint8_t cmd_code, in smp_build_signing_info_cmd() argument
658 static BT_HDR* smp_build_pairing_fail(UNUSED_ATTR uint8_t cmd_code, in smp_build_pairing_fail() argument
683 static BT_HDR* smp_build_security_request(UNUSED_ATTR uint8_t cmd_code, in smp_build_security_request() argument
710 static BT_HDR* smp_build_pair_public_key_cmd(UNUSED_ATTR uint8_t cmd_code, in smp_build_pair_public_key_cmd() argument
740 static BT_HDR* smp_build_pairing_commitment_cmd(UNUSED_ATTR uint8_t cmd_code, in smp_build_pairing_commitment_cmd() argument
765 static BT_HDR* smp_build_pair_dhkey_check_cmd(UNUSED_ATTR uint8_t cmd_code, in smp_build_pair_dhkey_check_cmd() argument
791 UNUSED_ATTR uint8_t cmd_code, tSMP_CB* p_cb) { in smp_build_pairing_keypress_notification_cmd() argument
967 uint8_t cmd_code = p_cb->rcvd_cmd_code; in smp_command_has_invalid_length() local
969 if ((cmd_code > (SMP_OPCODE_MAX + 1 /* for SMP_OPCODE_PAIR_COMMITM */)) || in smp_command_has_invalid_length()
970 (cmd_code < SMP_OPCODE_MIN)) { in smp_command_has_invalid_length()
972 __func__, cmd_code); in smp_command_has_invalid_length()
996 uint8_t cmd_code = p_cb->rcvd_cmd_code; in smp_command_has_invalid_parameters() local
998 if ((cmd_code > (SMP_OPCODE_MAX + 1 /* for SMP_OPCODE_PAIR_COMMITM */)) || in smp_command_has_invalid_parameters()
999 (cmd_code < SMP_OPCODE_MIN)) { in smp_command_has_invalid_parameters()
1001 __func__, cmd_code); in smp_command_has_invalid_parameters()
1005 if (!(*smp_cmd_len_is_valid[cmd_code])(p_cb)) { in smp_command_has_invalid_parameters()
1007 __func__, cmd_code); in smp_command_has_invalid_parameters()
1011 if (!(*smp_cmd_param_ranges_are_valid[cmd_code])(p_cb)) { in smp_command_has_invalid_parameters()
1013 cmd_code); in smp_command_has_invalid_parameters()
1032 uint8_t cmd_code = p_cb->rcvd_cmd_code; in smp_command_has_valid_fixed_length() local
1034 SMP_TRACE_DEBUG("%s for cmd code 0x%02x", __func__, cmd_code); in smp_command_has_valid_fixed_length()
1036 if (p_cb->rcvd_cmd_len != smp_cmd_size_per_spec[cmd_code]) { in smp_command_has_valid_fixed_length()
1040 cmd_code, p_cb->rcvd_cmd_len, smp_cmd_size_per_spec[cmd_code]); in smp_command_has_valid_fixed_length()