net: wireless: rockchip_wlan: add rtl8188eu support
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rtl8188eu / include / osdep_service_linux.h
old mode 100755 (executable)
new mode 100644 (file)
index b45c848..a4926e6
        #include <asm/io.h>\r
 #endif\r
 \r
+#ifdef CONFIG_NET_RADIO\r
+       #define CONFIG_WIRELESS_EXT\r
+#endif\r
+\r
        /* Monitor mode */\r
        #include <net/ieee80211_radiotap.h>\r
-\r
+       #include <linux/ieee80211.h>\r
 #ifdef CONFIG_IOCTL_CFG80211   \r
 /*     #include <linux/ieee80211.h> */\r
        #include <net/cfg80211.h>\r
@@ -94,7 +98,7 @@
 \r
 #ifdef CONFIG_EFUSE_CONFIG_FILE\r
        #include <linux/fs.h>\r
-#endif //CONFIG_EFUSE_CONFIG_FILE\r
+#endif\r
 \r
 #ifdef CONFIG_USB_HCI\r
        #include <linux/usb.h>\r
 #endif\r
 #endif\r
 \r
+#ifdef CONFIG_BT_COEXIST_SOCKET_TRX\r
+       #include <net/sock.h>\r
+       #include <net/tcp.h>\r
+       #include <linux/udp.h>\r
+       #include <linux/in.h>\r
+       #include <linux/netlink.h>\r
+#endif //CONFIG_BT_COEXIST_SOCKET_TRX\r
+\r
 #ifdef CONFIG_USB_HCI\r
        typedef struct urb *  PURB;\r
 #if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,22))\r
@@ -270,11 +282,11 @@ __inline static void _set_timer(_timer *ptimer,u32 delay_time)
 __inline static void _cancel_timer(_timer *ptimer,u8 *bcancelled)\r
 {\r
        del_timer_sync(ptimer);         \r
-       *bcancelled=  _TRUE;//TRUE ==1; FALSE==0\r
+       *bcancelled = 1;\r
 }\r
 \r
 \r
-__inline static void _init_workitem(_workitem *pwork, void *pfunc, PVOID cntx)\r
+static inline void _init_workitem(_workitem *pwork, void *pfunc, void *cntx)\r
 {\r
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20))\r
        INIT_WORK(pwork, pfunc);\r
@@ -361,7 +373,7 @@ static inline void rtw_netif_stop_queue(struct net_device *pnetdev)
 #endif\r
 }\r
 \r
-static inline void rtw_merge_string(char *dst, int dst_len, char *src1, char *src2)\r
+static inline void rtw_merge_string(char *dst, int dst_len, const char *src1, const char *src2)\r
 {\r
        int     len = 0;\r
        len += snprintf(dst+len, dst_len - len, "%s", src1);\r