get rid of $Id$ - it has never helped us and it has broken too many patches ;)
[openwrt-10.03/.git] / package / nvram / src / include / wlutils.h
index 07e2536ca3c473b4a4caa1f412831b164a7750ac..8a155e85f1e4b929818f4c88577fb38221909c0e 100644 (file)
@@ -9,14 +9,36 @@
  * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
  * FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
  *
- * $Id$
  */
 
 #ifndef _wlutils_h_
 #define _wlutils_h_
 
 #include <typedefs.h>
-#include <wlioctl.h>
+
+/* check this magic number */
+#define WLC_IOCTL_MAGIC                0x14e46c77
+
+/* maximum length buffer required */
+#define WLC_IOCTL_SMLEN         256
+
+#define WLC_IOCTL_VERSION      1
+
+#define WLC_GET_MAGIC                          0
+#define WLC_GET_VERSION                                1
+#define WLC_GET_VAR                            262     /* get value of named variable */
+#define WLC_SET_VAR                            263     /* set named variable to value */
+
+/* Linux network driver ioctl encoding */
+typedef struct wl_ioctl {
+       uint cmd;       /* common ioctl definition */
+       void *buf;      /* pointer to user buffer */
+       uint len;       /* length of user buffer */
+       bool set;       /* get or set request (optional) */
+       uint used;      /* bytes read or written (optional) */
+       uint needed;    /* bytes needed (optional) */
+} wl_ioctl_t;
+
 
 /*
  * Pass a wlioctl request to the specified interface.