Received: by 10.223.176.46 with SMTP id f43csp2822648wra; Mon, 22 Jan 2018 04:05:50 -0800 (PST) X-Google-Smtp-Source: AH8x227jnmJweAkNOpIN/y9qybfoaiExWo0puApReOH+0JQ79TR9Q6wVGzefaR2sbwTJ7iXyVxMI X-Received: by 10.98.131.200 with SMTP id h191mr8226873pfe.149.1516622750388; Mon, 22 Jan 2018 04:05:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516622750; cv=none; d=google.com; s=arc-20160816; b=fIcWSAcotTcaPIE7bZyqTzOo7wdSVKUdX0Tc19bPmH7jnlYvW57xZoOVHmi6zdTWDy 1DKQO7R0ciMasnbsEIq05pyYHK7WwDGvDsJj5b6SF4isI8wLdgUsK0miDdpvmPJzR3D+ LR+aYETs60sLOAeoFybKBlrQ4oIlXBbXrJdQoIJobmRodzr2t8nSVPutZxVVkM+Q0lqY 0srtu7yNkxaC02tZGmHRBFzSmQrD2lTRT++XgJrPMz1ykPGgyWsLpJrXAiOv9uXr90Lx dCx7mdCWkRVdevCwZcdO87aSzLk9njHksrT6OnkVPhrxHAxmXP9sZ/Q/Li51R3l/+BCl 0pZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:arc-authentication-results; bh=4V94RTFAxuKxxuwPKWcxP7MUt986d0AH2Vd3bZqe730=; b=nArfJWM4xAUENjUkNukXkfV04vFCKCq4G0FJmfPrnZ7BiNVbTlELlywFLgzZYk5dwV XY+NX7iFchLwB1GpueEaTNhYNti+3VEOmIS9zj8enl2NB+RLFAX/DKbDrf9XvPQstb4Y tOxor1Kig6RR+1Lno7r963ifOFobWbXpWshd3PwxOb6Xn+rqfC2RYMK2kZdQnHs+C5l2 XuOI3yrDlThjKFJ63pnoRoBDU9btW5Dp52kDBSbxjx2fMXYAODv4gnUm2ba1uJhKu8Tb G4+cweDboRL8AKtg3uDS4KEygHSHCAI+BYojgcG6AbPVXLlvMNYcL6HWj+XsiJlRxgGc Ef7A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s14-v6si3397795plp.604.2018.01.22.04.05.35; Mon, 22 Jan 2018 04:05:50 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751116AbeAVMFN (ORCPT + 99 others); Mon, 22 Jan 2018 07:05:13 -0500 Received: from coyote.holtmann.net ([212.227.132.17]:51796 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751004AbeAVMFL (ORCPT ); Mon, 22 Jan 2018 07:05:11 -0500 Received: from marcel-macpro.fritz.box (p4FF9F4A1.dip0.t-ipconnect.de [79.249.244.161]) by mail.holtmann.org (Postfix) with ESMTPSA id 0E066CEEB7; Mon, 22 Jan 2018 13:11:13 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Re: [PATCH] Bluetooth: 6lowpan: Fix disconnect bug in 6lowpan From: Marcel Holtmann In-Reply-To: <1516160848-471-1-git-send-email-yi2010.guo@samsung.com> Date: Mon, 22 Jan 2018 13:05:09 +0100 Cc: Bluez mailing list , Network Development , Linux Kernel Mailing List , "Gustavo F. Padovan" , Johan Hedberg , "David S. Miller" Content-Transfer-Encoding: 7bit Message-Id: <7811FEDD-2495-43ED-8745-F2E5235BE1E2@holtmann.org> References: <1516160848-471-1-git-send-email-yi2010.guo@samsung.com> To: Guo Yi X-Mailer: Apple Mail (2.3445.5.20) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Guo, > 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 > --- > net/bluetooth/6lowpan.c | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) this patch does not apply to bluetooth-next tree. Regards Marcel