Re: [PATCH] Bluetooth: Add rejecting SCO

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

 



Hi Claudio,

On Thu, Apr 11, 2013 at 10:35 AM, Claudio Takahasi
<claudio.takahasi@xxxxxxxxxxxxx> wrote:
> @@ -276,7 +286,8 @@ static void hci_conn_timeout(struct work_struct *work)
>                                 hci_acl_create_connection_cancel(conn);
>                         else if (conn->type == LE_LINK)
>                                 hci_le_create_connection_cancel(conn);
> -               }
> +               } else if (conn->type == SCO_LINK || conn->type == ESCO_LINK)
> +                       hci_reject_sco(conn);

IIRC for kernel you always use curly braces if one of the if()
branches have it (even if one of the branches has a single line), i.e.
use:

if (...) {
...
} else {
...
}

instead of:

if (...) {
...
} else
...

Best Regards,
-- 
Anderson Lizardo
Instituto Nokia de Tecnologia - INdT
Manaus - Brazil
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux