bt: add usb bt for rk8822be
authorxiaoyao <xiaoyao@rock-chips.com>
Wed, 8 Mar 2017 03:00:24 +0000 (11:00 +0800)
committerxiaoyao <xiaoyao@rock-chips.com>
Wed, 8 Mar 2017 03:01:58 +0000 (11:01 +0800)
Change-Id: I1b0249652e8eab990d9b4d70d3615e7346609f1f
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
rtkbt/code/bt/main/bte_conf.c

index 5fe18ac78d51ab027886f98e5471be0aa63e824f..704fd4cc4f490dd0553325980f54c32aa6588b5c 100755 (executable)
@@ -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));