From ac2fa19f3564c99f7106b86f72ed18b622ae2986 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 17:31:40 +0100 Subject: [PATCH] disable random mac address in NetworkManager configuration to fix driver unsupported set-hw-addr [release 20161026git-3mamba;Thu Mar 02 2017] --- rtl8723bs.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/rtl8723bs.spec b/rtl8723bs.spec index 66c8f03..df4f7c3 100644 --- a/rtl8723bs.spec +++ b/rtl8723bs.spec @@ -1,6 +1,6 @@ Name: rtl8723bs Version: 20161026git -Release: 2mamba +Release: 3mamba Summary: Realtek SDIO Wi-Fi driver Group: System/Kernel and Hardware Vendor: openmamba @@ -59,6 +59,12 @@ REMAKE_INITRD=no AUTOINSTALL=yes _EOF +install -d -m0755 %{buildroot}%{_sysconfdir}/NetworkManager/conf.d +cat > %{buildroot}%{_sysconfdir}/NetworkManager/conf.d/20-r8723bs-no-rand-mac-address.conf << _EOF +[device] +wifi.scan-rand-mac-address=no +_EOF + %check for d in /lib/modules/4.*/build; do kver=`echo $d|sed "s|/lib/modules/\(.*\)/build.*|\1|"` @@ -90,11 +96,15 @@ fi %files %defattr(-,root,root) +%{_sysconfdir}/NetworkManager/conf.d/20-r8723bs-no-rand-mac-address.conf %dir %{_prefix}/src/%{name}-%{version} %{_prefix}/src/%{name}-%{version}/* /lib/firmware/rtlwifi/rtl8723bs_*.bin %changelog +* Thu Mar 02 2017 Silvan Calarco 20161026git-3mamba +- disable random mac address in NetworkManager configuration to fix driver unsupported set-hw-addr + * Tue Jan 31 2017 Silvan Calarco 20161026git-2mamba - install firmware files in /lib/firwmare/rtlwifi