wifi: add support for kernel v4.19

The netdevice api changed in v4.19. Adapt the driver to make it
compatible with kernel v4.19 and above.

Signed-off-by: Fabien Parent <fparent@baylibre.com>
diff --git a/os/linux/gl_init.c b/os/linux/gl_init.c
index 9b96bed..577b344 100644
--- a/os/linux/gl_init.c
+++ b/os/linux/gl_init.c
@@ -526,7 +526,13 @@
 }
 #endif
 
-#if KERNEL_VERSION(3, 14, 0) <= LINUX_VERSION_CODE
+#if KERNEL_VERSION(4, 19, 0) <= LINUX_VERSION_CODE
+u16 wlanSelectQueue(struct net_device *dev, struct sk_buff *skb,
+		struct net_device *nd, select_queue_fallback_t fallback)
+{
+	return mtk_wlan_ndev_select_queue(skb);
+}
+#elif KERNEL_VERSION(3, 14, 0) <= LINUX_VERSION_CODE
 u16 wlanSelectQueue(struct net_device *dev, struct sk_buff *skb,
 		    void *accel_priv, select_queue_fallback_t fallback)
 {
@@ -545,6 +551,7 @@
 }
 #endif
 
+
 /*----------------------------------------------------------------------------*/
 /*!
 * \brief Load NVRAM data and translate it into REG_INFO_T
diff --git a/os/linux/include/gl_os.h b/os/linux/include/gl_os.h
index 92c18b8..84a019c 100644
--- a/os/linux/include/gl_os.h
+++ b/os/linux/include/gl_os.h
@@ -986,7 +986,10 @@
 
 P_GLUE_INFO_T wlanGetGlueInfo(VOID);
 
-#if KERNEL_VERSION(3, 14, 0) <= LINUX_VERSION_CODE
+#if KERNEL_VERSION(4, 19, 0) <= LINUX_VERSION_CODE
+u16 wlanSelectQueue(struct net_device *dev, struct sk_buff *skb,
+		struct net_device *nd, select_queue_fallback_t fallback);
+#elif KERNEL_VERSION(3, 14, 0) <= LINUX_VERSION_CODE
 u16 wlanSelectQueue(struct net_device *dev, struct sk_buff *skb,
 		    void *accel_priv, select_queue_fallback_t fallback);
 #elif KERNEL_VERSION(3, 13, 0) <= LINUX_VERSION_CODE