Add the btmgmt util to the packaged files

I have been debugging a regression where Bluetooth has stopped working on
some broadcom Wifi/BT chipsets. This is caused by the BT parts of these
chips not having a unique MAC programmed into them. Instead they all use
the same factory-default address. This used to work as long as only one
device with this factory-default address was in the room. But a while ago the
kernel learned to recognize the factory-default address and now it (rightly)
refuses to use this. Instead it expects userspace to configure a valid MAC
address.

Both checking if their are any adapters in the unconfigured state (these
are invisible in e.g. bluetoothctl) and setting their MAC address to make
them work requires the btmgmt util, so lets package it.

Note this is not a complete fix for this issue, but having btmgmt
available will at least allow users to work around the problem.

I've filed an upstream bluez issue for getting a workaround for this
in place inside bluez: https://github.com/bluez/bluez/issues/107
This commit is contained in:
Hans de Goede 2021-03-14 11:12:58 +00:00 committed by Peter Robinson
parent 3a853a2f14
commit e5a6d99cfa

View File

@ -169,6 +169,11 @@ install -m0755 attrib/gatttool $RPM_BUILD_ROOT%{_bindir}
# Red Hat Bugzilla bug #1699680
install -m0755 tools/avinfo $RPM_BUILD_ROOT%{_bindir}
# btmgmt is not installed by "make install", but it is useful for debugging
# some issues and to set the MAC address on HCIs which don't have their
# MAC address configured
install -m0755 tools/btmgmt $RPM_BUILD_ROOT%{_bindir}
# Remove libtool archive
find $RPM_BUILD_ROOT -name '*.la' -delete
@ -233,6 +238,7 @@ install emulator/btvirt ${RPM_BUILD_ROOT}/%{_libexecdir}/bluetooth/
%{_bindir}/bluemoon
%{_bindir}/bluetoothctl
%{_bindir}/btattach
%{_bindir}/btmgmt
%{_bindir}/btmon
%{_bindir}/hex2hcd
%{_bindir}/l2ping
@ -311,6 +317,7 @@ install emulator/btvirt ${RPM_BUILD_ROOT}/%{_libexecdir}/bluetooth/
* Sun Mar 14 2021 Hans de Goede <hdegoede@redhat.com> - 5.56-3
- Drop obsolete udev rule + systemd service to call btattach on BT-HCIs
connected via UART from userspace, this is all handled in the kernel now
- Add the btmgmt util to the packaged files
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.56-2
- Rebuilt for updated systemd-rpm-macros