|
@@ -532,8 +532,20 @@ int l2cap_connect_ind(struct hci_dev *hdev, bdaddr_t *bdaddr);
|
|
int l2cap_disconn_ind(struct hci_conn *hcon);
|
|
int l2cap_disconn_ind(struct hci_conn *hcon);
|
|
void l2cap_recv_acldata(struct hci_conn *hcon, struct sk_buff *skb, u16 flags);
|
|
void l2cap_recv_acldata(struct hci_conn *hcon, struct sk_buff *skb, u16 flags);
|
|
|
|
|
|
|
|
+#if IS_ENABLED(CONFIG_BT_BREDR)
|
|
int sco_connect_ind(struct hci_dev *hdev, bdaddr_t *bdaddr, __u8 *flags);
|
|
int sco_connect_ind(struct hci_dev *hdev, bdaddr_t *bdaddr, __u8 *flags);
|
|
void sco_recv_scodata(struct hci_conn *hcon, struct sk_buff *skb);
|
|
void sco_recv_scodata(struct hci_conn *hcon, struct sk_buff *skb);
|
|
|
|
+#else
|
|
|
|
+static inline int sco_connect_ind(struct hci_dev *hdev, bdaddr_t *bdaddr,
|
|
|
|
+ __u8 *flags)
|
|
|
|
+{
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+static inline void sco_recv_scodata(struct hci_conn *hcon, struct sk_buff *skb)
|
|
|
|
+{
|
|
|
|
+}
|
|
|
|
+#endif
|
|
|
|
|
|
/* ----- Inquiry cache ----- */
|
|
/* ----- Inquiry cache ----- */
|
|
#define INQUIRY_CACHE_AGE_MAX (HZ*30) /* 30 seconds */
|
|
#define INQUIRY_CACHE_AGE_MAX (HZ*30) /* 30 seconds */
|