Re: [PATCH] profiles/network: Add remove connection if iface couldn't bring up

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

 



ping.

On 27 March 2015 at 14:46, Grzegorz Kolodziejczyk
<grzegorz.kolodziejczyk@xxxxxxxxx> wrote:
> Connection should be deleted if bnep interface couldn't bring up.
> ---
>  profiles/network/bnep.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/profiles/network/bnep.c b/profiles/network/bnep.c
> index e325b72..ab72021 100644
> --- a/profiles/network/bnep.c
> +++ b/profiles/network/bnep.c
> @@ -631,8 +631,10 @@ int bnep_server_add(int sk, char *bridge, char *iface, const bdaddr_t *addr,
>         }
>
>         err = bnep_if_up(iface);
> -       if (err < 0)
> +       if (err < 0) {
> +               bnep_conndel(addr);
>                 rsp = BNEP_CONN_NOT_ALLOWED;
> +       }
>
>  reply:
>         if (bnep_send_ctrl_rsp(sk, BNEP_SETUP_CONN_RSP, rsp) < 0) {
> --
> 2.1.0
>
--
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