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