summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/btqca.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/bluetooth/btqca.h')
-rw-r--r--drivers/bluetooth/btqca.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/bluetooth/btqca.h b/drivers/bluetooth/btqca.h
index 6fdc25d7bba7..4c4fe2b5b7b7 100644
--- a/drivers/bluetooth/btqca.h
+++ b/drivers/bluetooth/btqca.h
@@ -132,7 +132,8 @@ enum qca_btsoc_type {
132 QCA_INVALID = -1, 132 QCA_INVALID = -1,
133 QCA_AR3002, 133 QCA_AR3002,
134 QCA_ROME, 134 QCA_ROME,
135 QCA_WCN3990 135 QCA_WCN3990,
136 QCA_WCN3998,
136}; 137};
137 138
138#if IS_ENABLED(CONFIG_BT_QCA) 139#if IS_ENABLED(CONFIG_BT_QCA)
@@ -142,6 +143,10 @@ int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate,
142 enum qca_btsoc_type soc_type, u32 soc_ver); 143 enum qca_btsoc_type soc_type, u32 soc_ver);
143int qca_read_soc_version(struct hci_dev *hdev, u32 *soc_version); 144int qca_read_soc_version(struct hci_dev *hdev, u32 *soc_version);
144int qca_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr); 145int qca_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr);
146static inline bool qca_is_wcn399x(enum qca_btsoc_type soc_type)
147{
148 return soc_type == QCA_WCN3990 || soc_type == QCA_WCN3998;
149}
145#else 150#else
146 151
147static inline int qca_set_bdaddr_rome(struct hci_dev *hdev, const bdaddr_t *bdaddr) 152static inline int qca_set_bdaddr_rome(struct hci_dev *hdev, const bdaddr_t *bdaddr)
@@ -165,4 +170,8 @@ static inline int qca_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr)
165 return -EOPNOTSUPP; 170 return -EOPNOTSUPP;
166} 171}
167 172
173static inline bool qca_is_wcn399x(enum qca_btsoc_type soc_type)
174{
175 return false;
176}
168#endif 177#endif