L2CAP_LM_SECURE
sockopt_setint(&sc->sc_mode, L2CAP_LM_SECURE);
else if ((mode & L2CAP_LM_SECURE) && !(new & L2CAP_LM_SECURE))
else if (ISSET(mode, L2CAP_LM_SECURE) && !ISSET(new, L2CAP_LM_SECURE))
sockopt_setint(&sc->sc_mode, L2CAP_LM_SECURE);
mode |= L2CAP_LM_SECURE;
if (chan->lc_mode & L2CAP_LM_SECURE)
(chan->lc_mode & L2CAP_LM_SECURE ? "yes" : "no"));
(new & L2CAP_LM_SECURE ? "on" : "off"));
|| ((mode & L2CAP_LM_SECURE) && !(new & L2CAP_LM_SECURE)))
mode &= (L2CAP_LM_SECURE | L2CAP_LM_ENCRYPT | L2CAP_LM_AUTH);
if (mode & L2CAP_LM_SECURE)
mode |= L2CAP_LM_SECURE;
(new & L2CAP_LM_SECURE ? "on" : "off"));
if (new & L2CAP_LM_SECURE)
l2cap_mode = L2CAP_LM_SECURE;
l2cap_mode = L2CAP_LM_SECURE;