David Frey
feddc8249f
Remove obsolete Debian notes from HACKING
...
The HACKING document says that Debian's automake version doesn't satisfy
the automake >= 1.10 requirement, but this is no longer true. The
automake version in Debian 8 (oldstable) is 1.14 and the version in
Debian 9 (stable) is 1.15.
2018-03-06 09:47:47 +02:00
Szymon Janc
6d8260cf6c
device: Fix bearer selection with single mode controller
...
If remote device is dual mode and advertises without "BR/EDR flag
not supported" set than device is marked as supporting BR/EDR
even if controller is doing LE only. This results in bluetoothd
trying to connect over BR/EDR since this is prefered transport
if none is connected.
Fix this by checking if adapter supports specified technology
before doing heuristic transport selection.
2018-03-06 09:45:32 +02:00
Grzegorz Kolodziejczyk
ea072a6320
tools/btpclient: Add connect device command
...
This patch adds support for connect device command.
2018-03-05 09:39:17 +01:00
Grzegorz Kolodziejczyk
caf7d2aa78
tools/btpclient: Add identity resolve event
...
This patch adds identity resolve event handler.
2018-03-05 09:23:48 +01:00
Grzegorz Kolodziejczyk
73ff4f4427
tools/btpclient: Add solicit uuid16 service list support for ad
...
This patch adds support to get/set solicit uuid16 service list in
advertising data.
2018-03-05 09:23:48 +01:00
Grzegorz Kolodziejczyk
2aee489392
tools/btpclient: Check if dev is connected in device found ev routine
...
Device may be connected while device found event is generated thus thus
btp should generate additional device connected event also.
2018-03-05 09:23:48 +01:00
Grzegorz Kolodziejczyk
1cf57a43e7
tools/btpclient: Add passkey confirm event
...
This patch adds support for send passkey confirm event when requested.
2018-03-05 09:23:06 +01:00
Grzegorz Kolodziejczyk
704b2973d3
tools/btpclient: Add btp disconnect handler
...
This patch adds btp disconnect handler to btp client.
2018-03-05 09:21:57 +01:00
Grzegorz Kolodziejczyk
9273cf2ca6
tools/btpclient: Remove btp unsupported auth request call
...
BTP don't support authorization request event.
2018-03-05 09:21:57 +01:00
Grzegorz Kolodziejczyk
0f14575d82
tools/btpclient: Add support for including tx-power to ad
...
This patch allows to set tx-power in advertising data.
2018-03-05 09:21:57 +01:00
Grzegorz Kolodziejczyk
846cd115be
tools/btpclient: Fix setting supported includes includes
...
Included values should be string type instead of address of pointer to
string.
2018-03-05 09:21:57 +01:00
Luiz Augusto von Dentz
ae589a34fa
tools/bluetooth-player: Fix lines going beyond 80 columns
2018-03-01 12:25:20 +02:00
Luiz Augusto von Dentz
6e55985565
tools/obexctl: mesh: Fix lines going beyond 80 columns
2018-03-01 12:23:30 +02:00
Luiz Augusto von Dentz
480ff6961d
mesh: Fix lines going beyond 80 columns
2018-03-01 12:21:04 +02:00
Luiz Augusto von Dentz
41465ce57c
client: Fix lines going beyond 80 columns
2018-03-01 11:23:09 +02:00
ERAMOTO Masaya
093d42d33e
dbus-common: Remove unused functions
2018-03-01 11:19:28 +02:00
ERAMOTO Masaya
b81f6b3ce2
unit/test-gdbus-client: Use g_dbus_dict_append_entry()
2018-03-01 10:49:05 +02:00
ERAMOTO Masaya
477575bc88
tools/bluetooth-player: Use g_dbus_dict_append_entry()
2018-03-01 10:49:05 +02:00
ERAMOTO Masaya
b169f28bb2
tools/obexctl: Use g_dbus_dict_append_entry()
2018-03-01 10:49:05 +02:00
ERAMOTO Masaya
3b4008d00c
mesh: Use g_dbus_dict_append_{entry,array}()
2018-03-01 10:49:05 +02:00
ERAMOTO Masaya
237365998f
client: Use g_dbus_dict_append_*()
2018-03-01 10:49:05 +02:00
ERAMOTO Masaya
53f064d5c4
obexd: Remove unused source/header files for dbus
...
Due to using g_dbus_emit_property_changed() and g_dbus_get_properties(),
obex_dbus_signal_property_changed() is unused since commit 96063756
("obex-client: Rename org.bluez.obex.Transfer to Transfer1"), and
OBC_PROPERTIES_ARRAY_SIGNATURE macro is unused since commit 3eadc034
("obex-client: Make use of g_dbus_get_properties to get transfer properties").
2018-03-01 10:49:05 +02:00
ERAMOTO Masaya
2bb5392474
obexd: Use g_dbus_dict_append_entry()
2018-03-01 10:49:05 +02:00
ERAMOTO Masaya
abcffedf07
gdbus: Introduce functions appending to dbus message
2018-03-01 10:49:05 +02:00
Luiz Augusto von Dentz
6523d168a7
tools/btmgmt: Port to use bt_shell
...
This replaces the direct usage of readline with bt_shell.
2018-02-28 16:39:52 +02:00
Luiz Augusto von Dentz
c214c5e567
shared/shell: Fix parsing of mandatory arguments
...
In certain cases the arguments may no start with the mandatory commands
such as when the command handler expects getopt arguments first.
2018-02-28 16:17:13 +02:00
Luiz Augusto von Dentz
1c3282e1e0
shared/shell: Add bt_shell_usage
...
bt_shell_usage can be used to print the usage of the current command
in execution.
2018-02-28 16:17:13 +02:00
Luiz Augusto von Dentz
5d24fe74da
mesh/meshctl: Quit when done with command
...
This ensures that the commands don't stay hanging since bt_shell no
longer quits immediatelly after executing a command.
2018-02-28 16:17:13 +02:00
Luiz Augusto von Dentz
b01d6c2739
tools/obexctl: Quit when done with command
...
This ensures that the commands don't stay hanging since bt_shell no
longer quits immediatelly after executing a command.
2018-02-28 16:17:13 +02:00
Luiz Augusto von Dentz
487acb2a97
tools/bluetooth-player: Quit when done with command
...
This ensures that the commands don't stay hanging since bt_shell no
longer quits immediatelly after executing a command.
2018-02-28 16:17:13 +02:00
Luiz Augusto von Dentz
936ad5ef7b
client: Quit when done with command
...
This ensures that the commands don't stay hanging since bt_shell no
longer quits immediatelly after executing a command.
2018-02-28 16:17:13 +02:00
Luiz Augusto von Dentz
ac04719e41
shared/shell: Allow executing submenu commands
...
This makes it possible to execute submenu commands directly from the
main menu by using the format <submenu>.<command>:
[bluetooth]# advertise.uuids 0x1820
[bluetooth]# advertise.name blah
[bluetooth]# advertise on
Advertising object registered
UUID: Internet Protocol Support(0x1820)
Tx Power: off
LocalName: blah
Apperance: off
2018-02-28 16:17:13 +02:00
Luiz Augusto von Dentz
0c2900e54e
shared/shell: Disable readline while in noninteractive mode
...
User shall not be able to interact with the shell while in
noninteractive mode.
2018-02-28 16:17:13 +02:00
Luiz Augusto von Dentz
deae158e2b
shared/shell: Disable bt_shell_prompt_input in noninteractive mode
...
Only the input given as argument shall be processed, all the rest shall
be ignored.
2018-02-28 16:17:13 +02:00
Luiz Augusto von Dentz
f718b35b1b
shared/shell: Fix not handling sort options
...
getopt_long index is only valid for long options.
2018-02-28 16:17:13 +02:00
Luiz Augusto von Dentz
9cafbbb181
shared/shell: Do not quit immediatelly on noninteractive mode
...
The command handler shall be able to tell when it is done by calling
bt_shell_noninteractive_quit.
2018-02-28 16:17:13 +02:00
Luiz Augusto von Dentz
f40565d5a9
shared/shell: Fix timeout parameter
...
Fix help message and add proper optstr modifier so both -t/--timeout
work properly.
2018-02-28 16:17:13 +02:00
Luiz Augusto von Dentz
799a9eb388
shared/shell: Fix not reseting optind
...
Not reseting optind may crash the tool if getopt and variants are
called a second time.
2018-02-28 16:17:13 +02:00
Luiz Augusto von Dentz
23b257aa47
shared/shell: Add bt_shell_{noninteractive_}quit
...
The functions can be used to tell the shell to stop running.
2018-02-28 16:17:13 +02:00
Luiz Augusto von Dentz
457a4f7d52
shared/mainloop-glib: Fix calling g_main_loop_quit with NULL
...
This produces warnings such as:
(process:5122): GLib-CRITICAL **: g_main_loop_quit: assertion 'loop != NULL' failed
2018-02-28 16:17:13 +02:00
Luiz Augusto von Dentz
27d5e62420
sharead/mainloop-glib: Fix mainloop_exit*
...
These function shall cause the mainloop to quit.
2018-02-28 16:17:13 +02:00
Szymon Janc
31f0c4e9c1
shared/btp: Fix return type in btp_send
...
This function returns bool.
2018-02-26 13:54:03 +01:00
Szymon Janc
06eb3d8045
shared/btp: Allow to call btp_send without valid btp
...
This allows to unconditionally call btp_send from code that generates
events eg when mapping those from D-Bus events.
2018-02-26 13:54:03 +01:00
Steve Brown
48a2c3db1c
mesh: node: Correct minor errors
...
Correct length computation in node_parse_composition()
Correct return value in node_set_model()
An existing node is not an error
2018-02-25 20:32:14 +02:00
Steve Brown
444af714a2
mesh: prov-db: Correct json database parsing
...
"composition": {
"cid": "0002",
"pid": "0010",
"vid": "0001",
"crpl": "000a",
"features": {
"relay": false,
"proxy": true,
"friend": false,
"lowPower": false
},
"elements": [
{
"elementIndex": 0,
"location": "0001",
"models": ["0000", "0001", "1001"]
}
]
},
2018-02-25 20:32:12 +02:00
Luiz Augusto von Dentz
703229adb7
shared/shell: Use mainloop wrappers instead of GLIB directly
...
This will allow the shell to be used by the likes of btmgmt.
2018-02-22 11:52:16 +02:00
Luiz Augusto von Dentz
4653ff97a3
shared/util: Add strdelimit and strsuffix
2018-02-22 11:52:16 +02:00
Luiz Augusto von Dentz
a287cb4229
shared/mainloop: Add GLIB wrapper
...
This adds wrappers function to interface with GLIB mainloop so
applications can use mainloop functions no matter what is the underline
implementation.
Note: Most functions are not actually implemented on purpose since both
io and timeout functions already exists for GLIB covering the same
functionality.
2018-02-22 11:52:16 +02:00
Luiz Augusto von Dentz
fd656b1ce3
client: Don't auto register agent on non-interactive mode
...
There is no use to register an agent when on non-interactive mode.
2018-02-22 11:52:16 +02:00
Luiz Augusto von Dentz
21e4ed93e3
shared/shell: Set NON_INTERACTIVE env
...
This sets NON_INTERACTIVE environment variable which applications can
then use to query under what mode they are running.
2018-02-22 11:52:15 +02:00