Re: [PATCH 6/7] Bluetooth: Add server socket support for LE connection

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

 



On Wed, Oct 6, 2010 at 2:42 PM, Ville Tervo <ville.tervo@xxxxxxxxx> wrote:
>                if (conn->hcon->type == LE_LINK) {
> -                       l2cap_sock_clear_timer(sk);
> -                       sk->sk_state = BT_CONNECTED;
> -                       sk->sk_state_change(sk);
> +                               l2cap_sock_clear_timer(sk);
> +                               sk->sk_state = BT_CONNECTED;
> +                               sk->sk_state_change(sk);
>                }
>
>                if (sk->sk_type != SOCK_SEQPACKET &&

Unrelated indentation above.

> @@ -1029,13 +1077,13 @@ static int l2cap_sock_connect(struct socket *sock, struct sockaddr *addr, int al
>        len = min_t(unsigned int, sizeof(la), alen);
>        memcpy(&la, addr, len);
>
> -+      if (la.l2_cid && la.l2_psm)
> +       if (la.l2_cid && la.l2_psm)
>                return -EINVAL;
>
>        lock_sock(sk);
>
>        if ((sk->sk_type == SOCK_SEQPACKET || sk->sk_type == SOCK_STREAM)
> -                       && !(la.l2_psm || la.la_cid)) {
> +                       && !(la.l2_psm || la.l2_cid)) {
>                err = -EINVAL;
>                goto done;
>        }

These typos were introduced in a previous patch. You should fix there instead.

-- 
Anderson Lizardo
OpenBossa Labs - 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