From 6fa41acfa30f29b6da1011de35563a9e245f41eb Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Sun, 22 Jan 2017 12:17:09 +0100 Subject: [PATCH] msm8976-common: Add wcnss_filter * Needed for bluetooth. --- proprietary-files.txt | 1 + rootdir/etc/init.qcom.rc | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/proprietary-files.txt b/proprietary-files.txt index 6633fc9..334eb79 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -50,6 +50,7 @@ vendor/lib/soundfx/libqcvirt.so # Bluetooth bin/btnvtool bin/hci_qcomm_init +bin/wcnss_filter etc/firmware/btfw32.tlv etc/firmware/btnv32.bin vendor/lib64/libbtnv.so diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index c83828f..6ff8999 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -1508,6 +1508,30 @@ service config_bt_addr /system/bin/btnvtool -O group bluetooth radio oneshot +on property:wc_transport.start_hci=true + start start_hci_filter + +on property:wc_transport.start_hci=false + stop start_hci_filter + +service start_hci_filter /system/bin/wcnss_filter + class late_start + user bluetooth + group bluetooth qcom_diag + disabled + +on property:wc_transport.start_root=true + start hci_filter_root + +on property:wc_transport.start_root=false + stop hci_filter_root + +service hci_filter_root /system/bin/wcnss_filter + class late_start + user bluetooth + group bluetooth qcom_diag system + disabled + service config_bluetooth /system/bin/sh /system/etc/init.qcom.bt.sh "onboot" class core user root