summaryrefslogtreecommitdiff
path: root/src/eir.h
Commit message (Collapse)AuthorAgeFilesLines
* core: Check if device has RSILuiz Augusto von Dentz2023-03-101-0/+2
| | | | | This checks if device is advertising an RSI and if so disregards if it is not discoverable since other members can be.
* src: Add SPDX License IdentifierTedd Ho-Jeong An2020-09-211-14/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds SPDX License Identifier and removes the license text. ------------------------------------- License COUNT ------------------------------------- LGPL-2.1-or-later : 62 GPL-2.0-or-later : 51 BSD-2-Clause : 2 License: LGPL-2.1-or-later src/adv_monitor.c src/adv_monitor.h src/shared/mainloop-glib.c src/shared/btp.c src/shared/tester.c src/shared/btsnoop.c src/shared/gatt-helpers.h src/shared/log.h src/shared/util.h src/shared/mainloop-ell.c src/shared/hci-crypto.c src/shared/mainloop.c src/shared/hfp.h src/shared/mainloop-notify.c src/shared/io-mainloop.c src/shared/btsnoop.h src/shared/uhid.h src/shared/util.c src/shared/ringbuf.c src/shared/btp.h src/shared/shell.h src/shared/io-glib.c src/shared/queue.h src/shared/gatt-server.h src/shared/crypto.c src/shared/crypto.h src/shared/io-ell.c src/shared/timeout-glib.c src/shared/mgmt.c src/shared/gatt-db.c src/shared/mainloop-notify.h src/shared/hfp.c src/shared/timeout-ell.c src/shared/shell.c src/shared/hci.c src/shared/log.c src/shared/ringbuf.h src/shared/gatt-helpers.c src/shared/queue.c src/shared/tty.h src/shared/timeout-mainloop.c src/shared/tester.h src/shared/gap.h src/shared/mgmt.h src/shared/gatt-db.h src/shared/uhid.c src/shared/mainloop.h src/shared/timeout.h src/shared/att-types.h src/shared/pcap.c src/shared/gap.c src/shared/att.c src/shared/pcap.h src/shared/hci.h src/shared/gatt-client.h src/shared/io.h src/shared/gatt-client.c src/shared/ad.c src/shared/att.h src/shared/gatt-server.c src/shared/hci-crypto.h src/shared/ad.h License: GPL-2.0-or-later src/attrib-server.h src/advertising.h src/textfile.c src/attrib-server.c src/uinput.h src/log.h src/eir.h src/sdpd.h src/sdpd-request.c src/service.h src/sdpd-database.c src/adapter.h src/plugin.h src/uuid-helper.h src/plugin.c src/main.c src/sdp-xml.c src/error.h src/oui.c src/device.c src/agent.h src/sdp-client.c src/oui.h src/device.h src/gatt-database.c src/error.c src/backtrace.c src/sdpd-server.c src/adapter.c src/log.c src/agent.c src/backtrace.h src/sdp-xml.h src/hcid.h src/dbus-common.h src/uuid-helper.c src/storage.c src/profile.c src/advertising.c src/storage.h src/dbus-common.c src/profile.h src/sdpd-service.c src/eir.c src/sdp-client.h src/gatt-database.h src/gatt-client.h src/rfkill.c src/gatt-client.c src/service.c src/textfile.h License: BSD-2-Clause src/shared/ecc.h src/shared/ecc.c
* device: Add implementation of AdvertisingDataLuiz Augusto von Dentz2018-05-021-0/+8
| | | | | | | | This adds the implementation of AdvertisingData property: [CHG] Device 00:1B:DC:07:31:88 AdvertisingData Key: 0x26 [CHG] Device 00:1B:DC:07:31:88 AdvertisingData Value: 01 01 00 ...
* core/eir: Add support for parsing service dataLuiz Augusto von Dentz2015-04-141-0/+8
|
* shared/ad: implement bt_ad_generateMichael Janssen2015-04-071-0/+12
| | | | | Implements the function to provide a raw version of the advertising data packet for passing to the kernel.
* core: Add Manufacturer Specific Data EIR fieldAlfonso Acosta2014-10-251-0/+10
| | | | Add data structure and parsing support.
* core: Move EIR flags definitions to eir.hSzymon Janc2014-03-241-0/+9
|
* eir: Use unsigned int for flags in struct eir_dataSzymon Janc2014-03-221-1/+1
| | | | | | | | | | | This adds assumption that if flags field is not present in EIR all flags are unset: "The Flags data type shall be included when any of the Flag bits are non-zero, otherwise the Flags data type may be omitted." This also fix reporting non-discoverable LE devices as limited discoverable due to no explicit check for flags == -1 as empty flags.
* eir: Add support for parsing DeviceID infoSzymon Janc2014-01-181-0/+4
|
* eir: Prefer bool over gbooleanJohan Hedberg2014-01-171-1/+1
|
* core: Remove useless eir parsing function return valueAndrei Emeltchenko2013-12-101-1/+1
| | | | | | | Currently eir_parse always return 0 but it is checked throughout the code (in android/bluetooth code as well in src/adapteri, etc) for return value (err < 0) which never happens. Make function eir_parse return void. This fixes warnings from static analyzer tools.
* core: Parse the TX power level from EIR dataMarcel Holtmann2013-01-271-0/+1
|
* core: Make hash & randomizer const in EIR APIJohan Hedberg2013-01-061-1/+1
|
* core: Fix missing const qualifier in EIR parsing APIJohan Hedberg2013-01-061-1/+1
|
* core: Remove unused eir functionsJohan Hedberg2012-12-141-6/+0
|
* adapter: Constify pointer returned by adapter_get_addressSzymon Janc2012-10-051-1/+1
|
* eir: Add support for creating proper OOB EIRSzymon Janc2012-10-031-1/+1
| | | | Address and total length field are mandatory part of OOB EIR.
* eir: Remove struct uuid_infoSzymon Janc2012-10-031-6/+1
| | | | | | Remove struct uuid_info and convert functions to use sdp_record_t list instead. This will allow to easily use services list from struct btd_adapter to create EIR.
* eir: Return number of bytes written by eir_create_oobSzymon Janc2012-10-031-1/+1
| | | | In OOB EIR is not zero padded.
* eir: Remove support for creating EIR with tx_power fieldsSzymon Janc2012-10-031-1/+1
| | | | This field is not used for OOB EIR.
* eir: Rename eir_create to eir_create_oobSzymon Janc2012-10-031-1/+1
| | | | | | | With mgmt interface EIR is created by kernel. Renaming this function makes it clear what is a purpose of it in userspace. It also contains support for EIR data types that shall be transmitted only over OOB channel.
* eir: Add support for creating EIR with CoD fieldSzymon Janc2012-10-031-1/+1
| | | | This will be used to create EIR to be send over OOB channel.
* eir: Add support creating EIR with hash and randomizer fieldsSzymon Janc2012-10-031-3/+5
| | | | This will be used to create EIR to be send over OOB channel.
* eir: Add eir_parse_oob functionSzymon Janc2012-10-031-0/+2
| | | | | This will parse EIR received over OOB. Such EIR contains mandatory and optional part.
* eir: Store class in struct eir_data as uint32_tSzymon Janc2012-10-031-1/+1
| | | | | This simplify code as class is stored on storage as uint32_t and had to be converted to it in few places.
* eir: Add support for parsing SSP hash and randomizerSzymon Janc2012-10-031-0/+4
| | | | This will be used over OOB mechanism.
* eir: Read GAP appearance from advertising dataBruna Moreira2012-03-301-0/+2
| | | | This was introduced on Core Specification Supplement (CSS) v1.
* Add support for setting VID source in DeviceID from config fileSzymon Janc2012-03-281-1/+1
| | | | | | This allows to set if VID source is Bluetooth SIG or USB. Assigner is provided as string {bluetooth,usb} and fallback to usb if none is set in config.
* eir: Add eir_length() functionJohan Hedberg2012-01-181-0/+1
|
* eir: Add eir_append_data functionJohan Hedberg2012-01-171-0/+3
|
* eir: Rename eir_has_complete_name to eir_has_data_typeJohan Hedberg2012-01-171-1/+1
|
* eir: Move EIR data type defines to eir.hJohan Hedberg2012-01-171-0/+13
|
* eir: Add Class Of Device parsingJohan Hedberg2012-01-171-0/+1
|
* eir: Add function to check for complete nameJohan Hedberg2011-12-301-0/+2
|
* Add EIR length parameter to eir_parse()Frédéric Danis2011-10-211-1/+1
| | | | LE uses shorter EIR (31 bytes) than HCI (240 bytes)
* Drop variable EIR lengthBruna Moreira2011-05-181-1/+1
| | | | | | | The functions eir_parse() and adapter_update_found_devices() now assume that the EIR buffer has always 240 octets. For advertising reports, the advertising data is stored on a buffer with 240 bytes, padded with zeroes.
* Replace EIR_DATA_LENGTH with HCI_MAX_EIR_LENGTHBruna Moreira2011-05-181-2/+0
| | | | Both defines have the same value (240) and meaning.
* Fix memory leak of EIR dataClaudio Takahasi2011-05-181-0/+1
|
* Move EIR related functions to a new fileClaudio Takahasi2011-05-171-0/+42