| e8f51b98 |
client: Print AD Data and Discoverable once registered
This prints both Data and Discoverable if advertise command succeeds:
[bluetooth]# advertise.data 0x26 0x01 0x00
[bluetooth]# advertise.discoverable on
[bluetooth]# advertise on
Advertising object registered
Data Type: 0x26
01 00 ..
Tx Power: off
Name: off
Apperance: off
Discoverable: on |
Luiz Augusto von Dentz |
7 years ago |
1 file, +7, -0 |
| 4f68e5f1 |
client: Add advertise.discoverable command
This adds advertise.discoverable command which can be used to set it
own instance:
[bluetooth]# advertise.discoverable on
[bluetooth]# advertise on
@ MGMT Command: Add Advertising (0x003e) plen 14
Instance: 1
Flags: 0x00000001
Switch into Connectable mode
Duration: 0
Timeout: 0
Advertising data length: 3
Flags: 0x02
LE General Discoverable Mode
Scan response length: 0
< HCI Command: LE Set Advertising Data (0x08|0x0008) plen 32
Length: 3
Flags: 0x02
LE General Discoverable Mode |
Luiz Augusto von Dentz |
7 years ago |
3 files, +53, -0 |
| eca59ac2 |
advertising: Add implementation of Discoverable property
This parses the contents of Discoverable property and add it to AD data
directly using bt_ad_add_flags. |
Luiz Augusto von Dentz |
7 years ago |
1 file, +65, -1 |
| c8933482 |
shared/ad: Add function to manipulate flags
This adds basically functionality to manipulate AD flags. |
Luiz Augusto von Dentz |
7 years ago |
2 files, +80, -32 |
| 39d43368 |
doc/advertising-api: Add Discoverable property
This adds Discoverable which the application can use in case it want
to set the General Discoverable flag per instance.
Note: This would allow for example an application to advertise as
discoverable even if the adapter is not discoverable which may be
required by dual-mode as it may not require BR/EDR to be discoverable. |
Luiz Augusto von Dentz |
7 years ago |
1 file, +8, -0 |
| a0e2499f |
tools: Fix compiler warning from wrong array size |
Marcel Holtmann |
7 years ago |
6 files, +8, -8 |
| 8e6b1440 |
core: Fix compiler warning from wrong array size |
Marcel Holtmann |
7 years ago |
2 files, +3, -3 |
| efa3d68d |
input: Fix compiler warning from wrong array size |
Marcel Holtmann |
7 years ago |
1 file, +2, -1 |
| 3af4b234 |
lib: Fix compiler warning from wrong array size |
Marcel Holtmann |
7 years ago |
1 file, +1, -1 |
| fd5c262e |
monitor: Fix compiler warning from wrong array size |
Marcel Holtmann |
7 years ago |
2 files, +2, -2 |
| a6d2b43e |
core: Fix compiler warning from casting functions |
Marcel Holtmann |
7 years ago |
3 files, +18, -6 |
| 857fa1f6 |
health: Fix compiler warning from casting functions |
Marcel Holtmann |
7 years ago |
1 file, +12, -2 |
| 67a2c40e |
gobex: Fix compiler warning from casting functions |
Marcel Holtmann |
7 years ago |
2 files, +12, -2 |
| 01333078 |
client: Fix use of g_free
g_free shall only be used with pointer allocated with g_* functions. |
Luiz Augusto von Dentz |
7 years ago |
1 file, +1, -1 |
| 8cfef5aa |
client: Fix use of g_free
g_free shall only be used with pointer allocated with g_* functions. |
Luiz Augusto von Dentz |
7 years ago |
1 file, +1, -1 |
| 8f970c44 |
client/gatt : Add support for Included Service
included service support implemented at service registration |
Avichal Agarwal |
7 years ago |
3 files, +177, -2 |
| 454fdfb5 |
Fix possible invalid memory access
Uninitialized data is read from local variable 'addr' |
Nagaraj D R |
7 years ago |
1 file, +20, -15 |
| 2ecd317c |
Fix Memory leak
Memory associated with 'adv_data' will be leaked in case of
'generate_scan_rsp' failure |
Nagaraj D R |
7 years ago |
1 file, +1, -0 |
| d2277dfa |
client: Define maximum attribute value length as initial value
Initial registered attribute value is set as maximal attribute length. |
Grzegorz Kolodziejczyk |
7 years ago |
1 file, +45, -9 |
| 48dd3a49 |
client: Add missing duplicated string free
This patch free duplicated strings in read, write attribute callbacks. |
Grzegorz Kolodziejczyk |
7 years ago |
1 file, +2, -0 |
| 5852a75d |
build: Fix requiring ell
Make sure libshared-ell is only build if ell is available. |
Luiz Augusto von Dentz |
7 years ago |
2 files, +7, -4 |
| e1129bcf |
tools/gatt-service: Add reference implementation for Included Service
Created two new primary services which will act as includes services for
first primary service |
Avichal Agarwal |
7 years ago |
1 file, +92, -2 |
| 499ad5dc |
shared/io-ell: Add support for ELL based IO handling |
Inga Stotland |
7 years ago |
2 files, +160, -1 |
| c9d310cd |
src/profile: Updates HFP version to 1.7
Add changes to update HFP version to 0x0107 for HFP_HS_UUID and
HFP_AG_UUID. Ofono get this version from bluez and enable HFP 1.7
specific commands. |
Ankit Navik |
7 years ago |
1 file, +2, -2 |
| e758ebb6 |
src/device.c : Fix BREDR-ATT MTU issue
For BREDR-ATT, according to spec, ATT MTU is same has
L2CAP configured MTU on which ATT is running and there won't be
ATT MTU exchange procedure. So, set the MTU to L2CAP MTU for
BREDR-ATT and for LE-ATT adjust the ATT MTU based on
EXCHANGE_MTU request and response. |
Nagaraj D R |
7 years ago |
1 file, +3, -1 |
| 4c73cc65 |
test/example-advertisement: add python3 support
This adds support for python3 to the existing script. The script will
now work with either python2 or python3. |
Hunt, Preston |
7 years ago |
1 file, +15, -9 |
| 87f4b56b |
obexd: Fix memory leak when loading plugins
On failure to open plugin directory, memory allocated to 'patterns'
and 'excludes' is not being freed, and the following memory leak is
logged:
Direct leak of 28 byte(s) in 1 object(s) allocated from:
#0 0xb6aa1c49 in malloc (/usr/lib/liblsan.so+0x9c49)
#1 0xb6976e89 in g_malloc (/lib/libglib-2.0.so.0+0x3ae89)
#2 0xb69886f1 in g_strsplit_set (/lib/libglib-2.0.so.0+0x4c6f1)
#3 0xb6f82f3b in plugin_init (/usr/libexec/bluetooth/obexd+0x20f3b)
#4 0xb6f70dc9 in main (/usr/libexec/bluetooth/obexd+0xedc9) |
Sahil Pai |
7 years ago |
1 file, +4, -1 |
| 4e926f8e |
test/example-advertisement: Add Data property
This adds Data property using TDS AD type:
@ MGMT Command: Add Advertising (0x003e) plen 59
Instance: 1
Flags: 0x00000001
Switch into Connectable mode
Duration: 0
Timeout: 0
Advertising data length: 29
16-bit Service UUIDs (complete): 2 entries
Heart Rate (0x180d)
Battery Service (0x180f)
Company: internal use (65535)
Data: 0001020304
Service Data (UUID 0x9999): 0001020304
Transport Discovery Data
Organization: Bluetooth SIG (0x01)
Flags: 0x01
Role: 0x01
Seeker Only
Transport Data Incomplete: False (0x00)
Transport State: 0x00
Off
Length: 0
Data:
Scan response length: 19
Name (complete): TestAdvertisement |
Luiz Augusto von Dentz |
7 years ago |
1 file, +11, -0 |
| 884fe6c8 |
client: Make info command print Advertising{Flags,Data} |
Luiz Augusto von Dentz |
7 years ago |
1 file, +2, -0 |
| 72c9b97f |
client: Add support for setting advertising Data property
This adds data command to advertise menu which can be used to set
an arbitrary/profile specific advertising type and data:
[bluetooth]# data 0x26 0x01 0x01 0x00 |
Luiz Augusto von Dentz |
7 years ago |
3 files, +130, -43 |
| bd7ab763 |
monitor: Add support for Transport Discovery AD
This adds support for decoding Transport Discovery Data:
@ MGMT Command: Add Advertising (0x003e) plen 16
Instance: 1
Flags: 0x00000001
Switch into Connectable mode
Duration: 0
Timeout: 0
Advertising data length: 5
Transport Discovery Data
Organization: Bluetooth SIG (0x01)
Flags: 0x01
Role: 0x01
Seeker Only
Transport Data Incomplete: False (0x00)
Transport State: 0x00
Off
Length: 0
Data:
Scan response length: 0 |
Luiz Augusto von Dentz |
7 years ago |
1 file, +55, -0 |
| 35814bb6 |
advertising: Add Data implementation
This adds the support for Data property. |
Luiz Augusto von Dentz |
7 years ago |
1 file, +59, -0 |
| 03e8f45a |
doc/advertising-api: Add Data property
Data property can be used to add advertising data with arbitrary/profile
specific type. |
Luiz Augusto von Dentz |
7 years ago |
1 file, +17, -0 |
| b38c7f57 |
device: Add implementation of AdvertisingData
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 ... |
Luiz Augusto von Dentz |
7 years ago |
5 files, +106, -1 |
| c0e1721c |
doc/device-api: Add AdvertisingData property
This adds AdvertisingData which exposes data being advertised which is
may be useful for profiles not handled by bluetoothd. |
Luiz Augusto von Dentz |
7 years ago |
1 file, +16, -0 |
| 1e5033bf |
shared/ad: Add support for arbritary type
This adds APIs to include data of arbritary type as long as it is not
of a type which blacklisted due to being handled already or it is
considered to safe to be set by an application. |
Luiz Augusto von Dentz |
7 years ago |
2 files, +278, -13 |
| 9d0a7984 |
shared/ecc: Allow pre-composed Private Keys
Add function ecc_make_public_key() which takes a const private_key
and generates a validated public_key to complete the pair.
Non-ephemeral key sets are required to support Bluetooth Mesh. |
Brian Gix |
7 years ago |
2 files, +43, -16 |
| 7f9dcb3c |
client: Add support for optional gatt write offset parameter
This patch extends missing optional gatt write offset parameter. |
Grzegorz Kolodziejczyk |
7 years ago |
3 files, +29, -11 |
| 5d50dc02 |
client: Add support for optional gatt read offset parameter
This patch extends missing optional gatt read offset parameter. |
Grzegorz Kolodziejczyk |
7 years ago |
3 files, +16, -8 |
| 1dd33d58 |
client: Fix writing attribute values
Attribute values is not copied with dbus_message_iter_get_fixed_array,
so gatt write callback needs to replace old value with reallocation and
copy. |
Grzegorz Kolodziejczyk |
7 years ago |
1 file, +15, -1 |
| 4a37e7d8 |
tools/hcitool: Change connection handle condition for lecup
According to BLUETOOTH SPECIFICATION Version 5.0 | Vol 2, Part E
7.8.18 LE Connection Update Command, connection handle range is
0x0000-0x0EFF. |
Grzegorz Kolodziejczyk |
7 years ago |
1 file, +1, -1 |
| 98a77944 |
emulator/b1ee: Enable to specify host and port
Removes the DEFAULT_SERVER macro because the default host seems to be
unofficial since 2017. |
ERAMOTO Masaya |
7 years ago |
1 file, +95, -5 |
| 24f3162e |
build: Make bt_shell conditional to readline
bt_shell APIs shall only be build if readline is present on the system
since it currently depend on it. |
Luiz Augusto von Dentz |
7 years ago |
1 file, +5, -1 |
| 07384fa4 |
tools: Add initial code for btmon-logger
This is intended for use for automated logging or unatrended systems.
It doesn't contain any packet decoding functionality which results
in much smaller binary. |
Szymon Janc |
7 years ago |
10 files, +507, -5 |
| 37a30b54 |
adapter: Fix accessing NULL adv_manager
adv_manager might be NULL also if BR/EDR only mdoe is set in main.conf
or if btd_adv_manager_new failed so checking for LE in supported
settings is not enough. This also makes btd_adv_manager_refresh
consistent with other adv_manager API regarding passing NULL manager
as function parameter. |
Szymon Janc |
7 years ago |
2 files, +4, -2 |
| a085d8c8 |
shared/shell: Fix checking for variable size argument
strsuffix returns 0 if the suffix matches. |
Luiz Augusto von Dentz |
7 years ago |
1 file, +2, -2 |
| ee2520cb |
shared/util: Fix return of strsuffix
strsuffix shall return an int just like str* functions. |
Luiz Augusto von Dentz |
7 years ago |
1 file, +4, -4 |
| 14feab22 |
shared/shell: Fix artifacts related to prompt
Both bt_shell_prompt_input and bt_shell_input could cause the prompt to
be printed incorrectly, so they now rely on bt_shell_printf which
properly check if input and prompt shall be saved/restored. |
Luiz Augusto von Dentz |
7 years ago |
1 file, +8, -8 |
| f1b8cdef |
shared/queue: Handle NULL as direct match on queue_remove_if
As with queue_find when function is set to NULL use direct_match as
callback. |
Luiz Augusto von Dentz |
7 years ago |
1 file, +4, -1 |
| 1b18e128 |
Mesh: Add Config Beacon to Configuration Model
This patch adds two commands (set and get) to menu config and handles the
incomming status message. |
Robert LubaĆ |
7 years ago |
1 file, +43, -0 |