Re: GAP and GATT always added to sdp records

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

 



Hi Austin,

On Tue, Feb 13, 2018 at 6:22 PM, Austin Riffle <ARiffle@xxxxxxxx> wrote:
> Hello
>
> I'm developing a Bluetooth solution using BlueZ 5.46 on kernel 4.12.0, and I'm using a TI Wilink chip for both BR/EDR and BLE. My plan is to initially release software with support for only BR/EDR, and then at a later point release software which supports BLE.
>
> I have not yet enabled BLE (knowingly), however, during testing I noticed that other devices are seeing my device advertise both GAP and GATT UUID's through SDP. I am starting bluetoothd as follows:
>
> /usr/libexec/bluetooth/bluetoothd --noplugin=*
>
> I also do have bredr only marked in main.conf.

That should have prevented any GATT functionality, so perhaps there is
bug handling this configuration.

> Tracing through the bluetoothd source, this is what I see:
>
> ...
> adapter_register

Looks like a bug indeed.

> btd_gatt_database_new
> register_core_services
> populate_gap_service/populate_gatt_service  **These add GAP_UUID and GATT_UUID to the SDP records
>
> If any of these steps fail, the adapter fails to register, and these steps are required to be called. I realize that not marking the flag "G_DBUS_FLAG_ENABLE_EXPERIMENTAL" prevents any advertising, but I would really like to avoid putting GATT/GAP into my SDP records as they are not supported in any meaningful way on my device.
>
> Does BlueZ really force all adapters to advertise these services? Or is there a "nice" way to stop these from being added?
>
> I'm guessing I could go around bluetoothd's back and use sdp_lib to remove them, but I'm not sure what unintended consequences that may have.
> This e-mail transmission, and any documents, files or previous e-mail messages attached to it, may contain confidential information. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, distribution, review, copy or use of any of the information contained in or attached to this message is STRICTLY PROHIBITED. If you have received this transmission in error, please immediately notify us by reply e-mail, and destroy the original transmission and its attachments without reading them or saving them to disk. Thank you.
>
> --
> 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



-- 
Luiz Augusto von Dentz
--
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