From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Disabling passive scanning for LE connections From: Marcel Holtmann In-Reply-To: Date: Tue, 24 May 2016 09:43:14 +0200 Cc: linux-bluetooth@vger.kernel.org Message-Id: <9E73AB7B-C5FB-42D5-ABD0-5B501E82AB8C@holtmann.org> References: To: mike mike Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Mike, > I was not aware of the HCI User Channel. It looks like it may be the > way I have to eventually go. The code currently uses L2CAP sockets > for BLE GATT data and it looks like this would mean I need to write my > own replacement. I have not looked into writing and L2CAP socket > replacement, but assume this will be a major task. Any other > suggestions or recommendations on where to start for the L2CAP socket > replacement? I think there are some examples in the code. However LE L2CAP (especially for GATT) is dead simple. It used a fixed channel and the only thing you need to deal with is the basic fragmentation. Regards Marcel