SO_L2CAP_OMTU
case SO_L2CAP_OMTU: /* get Outgoing MTU */
sockopt_init(&sopt, BTPROTO_L2CAP, SO_L2CAP_OMTU, 0);
sockopt_init(&sopt, BTPROTO_L2CAP, SO_L2CAP_OMTU, 0);
getsockopt(sc, BTPROTO_L2CAP, SO_L2CAP_OMTU, &mtu, &mtusize);
if (getsockopt(fd, BTPROTO_L2CAP, SO_L2CAP_OMTU, &mtu, &len) == -1) {
if (getsockopt(fd, BTPROTO_L2CAP, SO_L2CAP_OMTU, &mtu, &len) == -1) {
if (getsockopt(cfd, BTPROTO_L2CAP, SO_L2CAP_OMTU, &omtu, &len) == -1)