Комментарии (0)
Нет комментариев. Ваш будет первым!
../../../../../../kernel/huawei/msm8909/drivers/bluetooth/hci_smd.c: In function 'hci_smd_register_smd': ../../../../../../kernel/huawei/msm8909/drivers/bluetooth/hci_smd.c:493:6: error: 'struct hci_dev' has no member named 'destruct'
#!/bin/sh # Maximum number of attempts to enable hcismd to try to get # hci0 to come online. Writing to sysfs too early seems to # not work, so we loop. MAXTRIES=15 #setprop bluetooth.hciattach true setprop ro.qualcomm.bt.hci_transport smd setprop qcom.bt.dev_power_class 2 setprop qcom.bt.le_dev_pwr_class 2 i=1 while [ ! $i -gt $MAXTRIES ] ; do rfkill unblock all echo 1 > /sys/module/hci_smd/parameters/hcismd_set if [ -e /sys/class/bluetooth/hci0 ] ; then rfkill unblock all hciconfig hci0 up # found hci0, exit successfully echo 0 > /sys/module/hci_smd/parameters/hcismd_set bt_mac=$(/system/bin/hci_qcomm_init -e -p 2 -P 2 -d /dev/ttyHSL0 2>1 | grep -oP '([0-9a-f]{2}:){5}([0-9a-f]{2})') echo "BT MAC: $bt_mac" if [ ! -z "$bt_mac" ] ; then echo $bt_mac > /var/lib/bluetooth/board-address echo "BT MAC: $bt_mac" fi echo 1 > /sys/module/hci_smd/parameters/hcismd_set exit 0 fi sleep 1 if [ $i == $MAXTRIES ] ; then # must have gotten through all our retries, fail exit 1 fi $i++ done rfkill unblock all hciconfig hci0 up
chmod +x /usr/bin/droid/droid-hcismd-up.sh
[Unit] Description=Enable Bluetooth HCI over SMD After=droid-late-start.target Before=bluetooth.service Conflicts=shutdown.target actdead.target [Service] Type=oneshot ExecStart=/bin/sh /usr/bin/droid/droid-hcismd-up.sh RemainAfterExit=yes [Install] WantedBy=bluetooth.service
systemctl enable droid-hcismd-up
Нет комментариев. Ваш будет первым!
Ну и где доказательства про 18 запусков у маска в 2018 году? Или ты предпочтешь и тут...