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

[bluetooth-dev] RFCOMM & DM Packets

What to do after receiving DM packets? The stack actually does

	case DM:
		D_CTRL(FNC"DM packet received\n");
		rfcomm = ((rfcomm_con*) l2cap->upper_con);
		rfcomm->dlci[tmp_dlci].state = DISCONNECTED;

That means the upper layer (the application) does not notice that a DM
packet was received and the SABM command was not accepted by the remote
device. That means it stays waiting for a connect indication and runs into a
RFCOMM connection timeout with unknown reason. My proposal is to inform the
upper layer e.g. with bt_disconnect_ind with special parameter about the
received DM packet.

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