[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bluetooth-dev] why multiple L2CAP-cons for one phys link ?






On Wed, 20 Jun 2001, Heiko Hutschenreiter wrote:

> But what the Axis driver does is establishing a new L2CAP
> connection (different CIDs) for every new RFCOMM connection (DLCI).

It seems rfcomm.c checks for existance of L2CAP link but only within the
context of given line:

	if (!(rfcomm = get_rfcomm_con(line))) {
		...
	}
	...
        if (!(rfcomm->l2cap)) {

                rfcomm->dlci[0].state = CONNECTING;

                /* we don't have a l2cap connection yet */
                if (l2ca_connect_req(bd_addr, RFCOMM_LAYER)) {
                        D_ERR(FNC"l2ca_connect_req failed\n");
                        return -1;
                }
	} else ...

> [RFCOMM]
>
> line[0] mtu[127] dlci#0 state[CONNECTED]
> line[0] mtu[127] dlci#2 state[CONNECTED]
> line[1] mtu[127] dlci#0 state[CONNECTED]
> line[1] mtu[127] dlci#2 state[CONNECTED]

Do I understand correctly that there are 2 RFCOMM sessions between 2
devices?

Sorry for my ignorance, but are the /dev/ttyBT[0-6] lines supposed to
provide the user-space data channels corresponding to the opened L2CAP
links?

Ilguiz


-
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com