Re,
Le mercredi 27 février 2008 à 21:21 +0900, Louis JANG a écrit :
> conn = hci_conn_hash_lookup_ba(hdev, ev->link_type, &ev->bdaddr);
> - if (!conn)
> - goto unlock;
> + if (!conn) {
> + __u8 link_type = (ev->link_type == ESCO_LINK) ? SCO_LINK : ESCO_LINK;
> +
> + conn = hci_conn_hash_lookup_ba(hdev, link_type, &ev->bdaddr);
> + if (!conn)
> + goto unlock;
Does your patch handle re-negotiation of the SCO link back to an eSCO
one ? Great.
And the style in your patch is better according to Marcel rules.
I vote for yours.
Best regards,
Guillaume B.