Lines Matching refs:cmd
138 uint8_t cmd; in smp_data_received() local
148 STREAM_TO_UINT8(cmd, p); in smp_data_received()
150 SMP_TRACE_EVENT("%s: SMDBG l2c, cmd=0x%x", __func__, cmd); in smp_data_received()
153 if ((SMP_OPCODE_MAX < cmd) || (SMP_OPCODE_MIN > cmd)) { in smp_data_received()
154 SMP_TRACE_WARNING("Ignore received command with RESERVED code 0x%02x", cmd); in smp_data_received()
160 if (SMP_OPCODE_PAIRING_REQ == cmd || SMP_OPCODE_SEC_REQ == cmd) { in smp_data_received()
182 if (cmd == SMP_OPCODE_CONFIRM) { in smp_data_received()
186 __func__, cmd, p_cb->peer_auth_req, p_cb->loc_auth_req); in smp_data_received()
190 cmd = SMP_OPCODE_PAIR_COMMITM; in smp_data_received()
194 p_cb->rcvd_cmd_code = cmd; in smp_data_received()
198 smp_sm_event(p_cb, cmd, &smp_int_data); in smp_data_received()
289 uint8_t cmd; in smp_br_data_received() local
300 STREAM_TO_UINT8(cmd, p); in smp_br_data_received()
303 if ((SMP_OPCODE_MAX < cmd) || (SMP_OPCODE_MIN > cmd)) { in smp_br_data_received()
304 SMP_TRACE_WARNING("Ignore received command with RESERVED code 0x%02x", cmd); in smp_br_data_received()
310 if (SMP_OPCODE_PAIRING_REQ == cmd) { in smp_br_data_received()
331 p_cb->rcvd_cmd_code = cmd; in smp_br_data_received()
335 smp_br_state_machine_event(p_cb, cmd, &smp_int_data); in smp_br_data_received()