From: wangmengyang Date: Tue, 24 Oct 2017 06:44:53 +0000 (+0800) Subject: component/bt: disable the use of ROLE_SWITCH feature for classic BT as workaround X-Git-Tag: v3.1-dev~120^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=837678e4f3ad5fb23e608cef0f390c98478fea41;p=esp-idf component/bt: disable the use of ROLE_SWITCH feature for classic BT as workaround --- diff --git a/components/bt/bluedroid/stack/include/hcidefs.h b/components/bt/bluedroid/stack/include/hcidefs.h index faf04fd9f2..87dec34a0f 100644 --- a/components/bt/bluedroid/stack/include/hcidefs.h +++ b/components/bt/bluedroid/stack/include/hcidefs.h @@ -1469,7 +1469,8 @@ typedef struct { #define HCI_FEATURE_SWITCH_MASK 0x20 #define HCI_FEATURE_SWITCH_OFF 0 -#define HCI_SWITCH_SUPPORTED(x) ((x)[HCI_FEATURE_SWITCH_OFF] & HCI_FEATURE_SWITCH_MASK) +// temporarily disable ROLE_SWITCH since there is an issue to be fixed +#define HCI_SWITCH_SUPPORTED(x) (0 & ((x)[HCI_FEATURE_SWITCH_OFF] & HCI_FEATURE_SWITCH_MASK)) #define HCI_FEATURE_HOLD_MODE_MASK 0x40 #define HCI_FEATURE_HOLD_MODE_OFF 0