From: xiaoyao Date: Wed, 8 Mar 2017 03:00:24 +0000 (+0800) Subject: bt: add usb bt for rk8822be X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3cf39c0a256020d9ec77d1eb19e6d7ad780ca55b;p=GitHub%2FLineageOS%2FG12%2Fandroid_hardware_realtek.git bt: add usb bt for rk8822be Change-Id: I1b0249652e8eab990d9b4d70d3615e7346609f1f Signed-off-by: xiaoyao --- diff --git a/rtkbt/code/bt/main/bte_conf.c b/rtkbt/code/bt/main/bte_conf.c index 5fe18ac..704fd4c 100755 --- a/rtkbt/code/bt/main/bte_conf.c +++ b/rtkbt/code/bt/main/bte_conf.c @@ -52,7 +52,7 @@ void bte_load_rtkbt_conf(const char *path) strlcpy(bt_hci_device_node, config_get_string(config, CONFIG_DEFAULT_SECTION, "BtDeviceNode","/dev/rtk_btusb"), sizeof(bt_hci_device_node)); #else check_wifi_chip_type_string(type); - if (strstr(type, "AU")!=NULL || strstr(type, "BU")!=NULL) { + if (strstr(type, "AU")!=NULL || strstr(type, "BU")!=NULL || strstr(type, "RTL8822BE") != NULL) { strlcpy(bt_hci_device_node, "/dev/rtk_btusb", sizeof(bt_hci_device_node)); } else if (!strncmp(type, "RTL", 3)) { strlcpy(bt_hci_device_node, "/dev/ttyS0", sizeof(bt_hci_device_node));