L2CAP_CLOSED
if (chan->lc_state == L2CAP_CLOSED)
chan->lc_state = L2CAP_CLOSED;
if (chan && chan->lc_state != L2CAP_CLOSED)
if (chan->lc_lcid != L2CAP_NULL_CID || chan->lc_state != L2CAP_CLOSED)
if (chan != NULL && chan->lc_state != L2CAP_CLOSED)
new->lc_state = L2CAP_CLOSED;
if (chan->lc_state != L2CAP_CLOSED)
chan->lc_state = L2CAP_CLOSED;
if (chan->lc_state == L2CAP_CLOSED
if (chan->lc_state != L2CAP_CLOSED)
if (chan->lc_state == L2CAP_CLOSED) {
else if (chan->lc_state == L2CAP_CLOSED)
chan->lc_state = L2CAP_CLOSED;