mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 03:09:08 +08:00
d2494642aa
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org> (cherry picked from commit 90a7dced2a1e6f065f7f6c23fe2a8565db10a34f)
32 lines
877 B
Diff
32 lines
877 B
Diff
Fix wireless.h to use linux kernel header files
|
|
including uapi version of wireless.h
|
|
|
|
--- a/include/linux/wireless.h
|
|
+++ b/include/linux/wireless.h
|
|
@@ -18,16 +18,17 @@
|
|
|
|
/***************************** INCLUDES *****************************/
|
|
|
|
-#if 0
|
|
+#if 1
|
|
#include <linux/types.h> /* for __u* and __s* typedefs */
|
|
#include <linux/socket.h> /* for "struct sockaddr" et al */
|
|
#include <linux/if.h> /* for IFNAMSIZ and co... */
|
|
+ #include <linux/wireless.h>
|
|
+ #include <uapi/linux/wireless.h>
|
|
#else
|
|
#define __user
|
|
/* typedef uint16_t __u16; */
|
|
#include <sys/socket.h> /* for "struct sockaddr" et al */
|
|
#include <net/if.h> /* for IFNAMSIZ and co... */
|
|
-#endif
|
|
|
|
/****************************** TYPES ******************************/
|
|
#ifdef CONFIG_COMPAT
|
|
@@ -84,4 +85,5 @@ struct iwreq {
|
|
union iwreq_data u;
|
|
};
|
|
|
|
+#endif
|
|
#endif /* _LINUX_WIRELESS_H */
|