Add support for 4.4 kernel.
Change-Id: I96bc799e7b2a63b1b704abeeeabfcad22bb19c5b
diff --git a/btmtk_main.c b/btmtk_main.c
index 4198425..d7316f2 100644
--- a/btmtk_main.c
+++ b/btmtk_main.c
@@ -146,7 +146,12 @@
struct btmtk_thread *thread = data;
struct btmtk_private *priv = thread->priv;
struct btmtk_adapter *adapter = NULL;
+
+#if KERNEL_VERSION(4, 13, 0) > LINUX_VERSION_CODE
+ wait_queue_t wait;
+#else
wait_queue_entry_t wait;
+#endif
struct sk_buff *skb;
int ret = 0;
int i = 0;
diff --git a/btmtk_sdio.c b/btmtk_sdio.c
index 3f7f9ae..f483ee4 100644
--- a/btmtk_sdio.c
+++ b/btmtk_sdio.c
@@ -3126,7 +3126,12 @@
if (id->class == SDIO_CLASS_BT_AMP)
hdev->dev_type = HCI_AMP;
else
+
+#if KERNEL_VERSION(4, 8, 0) > LINUX_VERSION_CODE
+ hdev->dev_type = HCI_BREDR;
+#else
hdev->dev_type = HCI_PRIMARY;
+#endif
SET_HCIDEV_DEV(hdev, &func->dev);