SMP_CLOSED
smp_state->smp_open_flag = SMP_CLOSED;
if (smp_state->smp_open_flag != SMP_CLOSED) {
if (smp_state->smp_open_flag == SMP_CLOSED) {