This patch adds the --type option to btgatt-server which allows the source bdaddr type to be specified. If the option is not provided, the source type defaults to BDADDR_LE_PUBLIC.
This also fixes a bug in that manifests itself in later kernels that prevents an LE connection to be accepted when '0' is given for the source address type, where '0' corresponds to BDADDR_BREDR.
55c9081 tools/btgatt-server: Add option for src addr type
tools/btgatt-server.c | 23 +++++++++++++++++++----
1 file changed, 19 insertions(+), 4 deletions(-)
Upstream: git.kernel.org