/* Converts a request opcode to its corresponding response opcode.  */
static uint8_t smp_rsp_op(uint8_t req_op)
/* Converts a request opcode to its corresponding response opcode.  */
static uint8_t smp_rsp_op(uint8_t req_op)
{
	if (req_op == MGMT_OP_READ) {
		return MGMT_OP_READ_RSP;
	} else {
		return MGMT_OP_WRITE_RSP;
	}
}