Received: by 10.223.148.5 with SMTP id 5csp6120901wrq; Wed, 17 Jan 2018 09:38:09 -0800 (PST) X-Google-Smtp-Source: ACJfBosjXL7HeNcmi00HgMAXddKLnwFwROQRWN05d8nqFOQCuYGBTYsq/vIqyQVw/cTlK6nqJyPg X-Received: by 10.84.174.197 with SMTP id r63mr3845006plb.310.1516210689654; Wed, 17 Jan 2018 09:38:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516210689; cv=none; d=google.com; s=arc-20160816; b=rJOumcusT+eoMApxLBeeIYV+XZXOwjHfZ5i8ceU3Qlncf1/RDSCiA6D6fmut52ubpc GGCdPq7cEyRabLLN6vXfMCiwrDWLipjcZVFyHive3nzqiY5dI5Lv2Wg0us+P7x4mua3x 1JL7S4mup20bUJ8GRVnJXAH6ln3qSgPodtd/MP9xOZ1nq0vSY+R8w2ypQERRuQQjPSxy DT2VFFTsha2fUbPtlPE4IRyJRNrOGRuCbhkxjgu89XMBlrfwxxZZi0H6U2OE2GiqVrnC 5y6eqimYupSJ77di6DmAp7AkRA/HV2DnMwF5fP74/9yEVSp32Q9U0FO33Rlzvs60Cfio VSRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=jnhI5K5qjx7gGFqpoHS3q836/ggrosMB8WTuNCU4u9o=; b=Lp8dVzWhfVLgXFDDA8nbNXBSzCQzCTVrJ6s+VMNQYrpgRnh3BIeiRkwtCUXyka6wOO D2ggIgaFBnsGNwnxiaFJzxqHcHz8o92X69xeRR8Z238QmVjsIAfD7weJ7kZaDNIdGR9k tI6n1DkkZNZYuOEfs3eln3HuhJuuwclHFSFjrrCaRS6c1nyMaOzmZ1uLubuXbjvegqrm 1epJpNV3P0tSzSBsWpCgXTYEVc6IpUCGrOnaHZ54YjMkZQPdPNAHPEtkY/87vi99Tcaw jhPjag3R5mxwx8DdmNFwQOVyOK+Y1ZITbv1ZeEapiZynkbSYUynt85A+uxen02zbT4Ex 1Gaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=g57+kkfR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l12si4250284pgu.265.2018.01.17.09.37.54; Wed, 17 Jan 2018 09:38:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=g57+kkfR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754190AbeAQRh2 (ORCPT + 99 others); Wed, 17 Jan 2018 12:37:28 -0500 Received: from mail-it0-f68.google.com ([209.85.214.68]:38872 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752578AbeAQRh0 (ORCPT ); Wed, 17 Jan 2018 12:37:26 -0500 Received: by mail-it0-f68.google.com with SMTP id w14so9540274itc.3; Wed, 17 Jan 2018 09:37:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=jnhI5K5qjx7gGFqpoHS3q836/ggrosMB8WTuNCU4u9o=; b=g57+kkfRHJWG/ZyApTAZSEXgnJzt2fafCTYhoswRvuEziFHl+EbPqhP1R6EbK6TLIW 68U7AExbpORQCIdTQRB4yZhVu7/Jt6rlQrt0CmfIt/C64gwK7+EXuvCLs0vvnBmfbbxX n5zbKZVljXWvrrc4eDDbWhTKXggs8zcSiKiL90Of6HeWtOA0ItRUDia9Xjo86XoP0vXF pdLEqJ5CPZiYykKcypLSqcnvFKTZgJyNFZIBeLPiZbYLlj3xlMmceY1wfL061wHOaGwB v9gNvQYSsraYuUSpK0jGnuGSlo+yKSVsLLivDA+PJDx25jwdMI4KJ15/0oiP/BDUJ9pK 8c9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=jnhI5K5qjx7gGFqpoHS3q836/ggrosMB8WTuNCU4u9o=; b=DXfNK57iqCrO5t4Tn71YN6PqMfNHFcldLrO/Zk7bvOxqOm9IAETOz862lMPUbQXahH +kVMufm7X6qzgbOlLSHTbUt+C8e38+ltRRXlMcyg1oZKm618+Nm26AXUnO7hoFUzbYYP keqMBI9jQMKgDY5dEpCTnz7q9v3L+5jVA/fpiJ2llYwZhw9PrMVpOPsOLlnsQupIiP4t ubQXcqOimgSap9d3arBEW82cmqTwCaDGKdcfYoL/9c4CRjoHyq7NYLfWiSYQ5YXsaBeq CxD77pRV/J9hWbwF5MWILijXQGue4iRSa0FSyzoNMam+06FWVbFu2fl17DEKLQ4Fb3gg gjBQ== X-Gm-Message-State: AKwxytc1G06MLz7v2q2MTeTDgCS2cZlbS/8QnBA4BPrmwGFmP72BxCns BLGr6LJX00cVKzqKfohhMDuCLxIuljrp9oZqECo= X-Received: by 10.36.211.132 with SMTP id n126mr22052972itg.12.1516210645914; Wed, 17 Jan 2018 09:37:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.16.11 with HTTP; Wed, 17 Jan 2018 09:37:25 -0800 (PST) In-Reply-To: References: <1516160848-471-1-git-send-email-yi2010.guo@samsung.com> From: Alexander Aring Date: Wed, 17 Jan 2018 12:37:25 -0500 Message-ID: Subject: Re: [PATCH] Bluetooth: 6lowpan: Fix disconnect bug in 6lowpan To: Luiz Augusto von Dentz Cc: Guo Yi , "linux-bluetooth@vger.kernel.org" , "open list:NETWORKING [GENERAL]" , Linux Kernel Mailing List , Marcel Holtmann , "Gustavo F. Padovan" , Johan Hedberg , David Miller Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, 2018-01-17 7:15 GMT-05:00 Luiz Augusto von Dentz : > Hi, > > On Wed, Jan 17, 2018 at 1:47 AM, Guo Yi wrote: >> This patch fix the bluetooth 6lowpan disconnect fail bug. >> >> The type of the same address type have different define value in HCI layer >> and L2CAP layer.That makes disconnect fail due to wrong network type.User >> will not be able to disconnect from console with the network type that used >> in connect. >> >> This patch add a var lookup_type, and covert the channel address type to >> HCI address type. By these means, user can disconnect successfuly. >> >> Signed-off-by: Guo Yi > > While this fix seems alright the debugfs interface was never meant for > production, in fact we are working on a replacement: > Is the new API fixing the issue that the 6LoWPAN device creation is done by iproute e.g.: ip link add link wpan0 name lowpan0 type lowpan or is there a special bluetooth API call needed, like the current case with debugfs. I know hcis are not netdevs, but it bothers me that we running into two different worlds on how to deal with that and it just requires "more" special bluetooth specific handling in user space applications. Later more "netdev" capable link layers will maybe support 6LoWPAN and then bluetooth might the only subsystem where different handling is needed to do such job like that. We maybe need to support a special handling in "ip link add" to map to bluetooth instead moving that to people in user space? - Alex