diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-01-22 14:46:37 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-01-22 14:46:37 +0000 |
commit | 4880cc6dc69fb2623a919f50238f6fa0d9e21bf5 (patch) | |
tree | 0a75dd1f63d01539d378f517855a9204d955c763 /package/nvram/src/include/wlutils.h | |
parent | b1dfc3a3ef53fb699aa660d7af1cc6bed284295c (diff) | |
download | master-187ad058-4880cc6dc69fb2623a919f50238f6fa0d9e21bf5.tar.gz master-187ad058-4880cc6dc69fb2623a919f50238f6fa0d9e21bf5.tar.bz2 master-187ad058-4880cc6dc69fb2623a919f50238f6fa0d9e21bf5.zip |
remove lots of useless junk from the nvram package
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6177 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/nvram/src/include/wlutils.h')
-rw-r--r-- | package/nvram/src/include/wlutils.h | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/package/nvram/src/include/wlutils.h b/package/nvram/src/include/wlutils.h index 07e2536ca3..36eb3af3f5 100644 --- a/package/nvram/src/include/wlutils.h +++ b/package/nvram/src/include/wlutils.h @@ -16,7 +16,30 @@ #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. |