diff options
author | John Crispin <john@openwrt.org> | 2008-11-30 16:53:16 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2008-11-30 16:53:16 +0000 |
commit | 10aa4d9e42a87b842af6eb855d4678d37937a656 (patch) | |
tree | 70fa882f0879b17c6e06226b3a896ce2cb4266a6 /package/libertas/src/ioctl.h | |
parent | 4e61cbbf5e849c008b6c1fbab68219163f7b22b3 (diff) | |
download | upstream-10aa4d9e42a87b842af6eb855d4678d37937a656.tar.gz upstream-10aa4d9e42a87b842af6eb855d4678d37937a656.tar.bz2 upstream-10aa4d9e42a87b842af6eb855d4678d37937a656.zip |
update libertas driver
SVN-Revision: 13447
Diffstat (limited to 'package/libertas/src/ioctl.h')
-rw-r--r-- | package/libertas/src/ioctl.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/package/libertas/src/ioctl.h b/package/libertas/src/ioctl.h new file mode 100644 index 0000000000..e4f835cf4b --- /dev/null +++ b/package/libertas/src/ioctl.h @@ -0,0 +1,49 @@ +#define COSTS_LIST_SIZE 4 + +/* iwpriv places the subcmd number in the first uint32_t; + data buffer follows that */ +#define SUBCMD_OFFSET sizeof(uint32_t) +#define SUBCMD_DATA(x) *((int *)(x->u.name + SUBCMD_OFFSET)) + +/** Private ioctls and ioctls subcommands */ +#define LBS_SETNONE_GETNONE (SIOCIWFIRSTPRIV + 8) +#define LBS_SUBCMD_BT_RESET 13 +#define LBS_SUBCMD_FWT_RESET 14 + +#define LBS_SETNONE_GETONEINT (SIOCIWFIRSTPRIV + 15) +#define LBS_SUBCMD_GET_REGION 1 +#define LBS_SUBCMD_FWT_CLEANUP 15 +#define LBS_SUBCMD_FWT_TIME 16 +#define LBS_SUBCMD_MESH_GET_TTL 17 +#define LBS_SUBCMD_BT_GET_INVERT 18 +#define LBS_SUBCMD_MESH_GET_BCAST_RATE 19 +#define LBS_SUBCMD_MESH_GET_RREQ_DELAY 20 +#define LBS_SUBCMD_MESH_GET_ROUTE_EXP 21 + +#define LBS_SETONEINT_GETNONE (SIOCIWFIRSTPRIV + 24) +#define LBS_SUBCMD_SET_REGION 8 +#define LBS_SUBCMD_MESH_SET_TTL 18 +#define LBS_SUBCMD_BT_SET_INVERT 19 +#define LBS_SUBCMD_MESH_SET_BCAST_RATE 20 +#define LBS_SUBCMD_MESH_SET_RREQ_DELAY 21 +#define LBS_SUBCMD_MESH_SET_ROUTE_EXP 22 + +#define LBS_SET128CHAR_GET128CHAR (SIOCIWFIRSTPRIV + 25) +#define LBS_SUBCMD_BT_ADD 18 +#define LBS_SUBCMD_BT_DEL 19 +#define LBS_SUBCMD_BT_LIST 20 +#define LBS_SUBCMD_FWT_ADD 21 +#define LBS_SUBCMD_FWT_DEL 22 +#define LBS_SUBCMD_FWT_LOOKUP 23 +#define LBS_SUBCMD_FWT_LIST_NEIGHBOR 24 +#define LBS_SUBCMD_FWT_LIST 25 +#define LBS_SUBCMD_FWT_LIST_ROUTE 26 +#define LBS_SUBCMD_MESH_SET_LINK_COSTS 27 +#define LBS_SUBCMD_MESH_GET_LINK_COSTS 28 + +#define LBS_SET_GET_SIXTEEN_INT (SIOCIWFIRSTPRIV + 29) +#define LBS_LED_GPIO_CTRL 5 +#define LBS_BCN_CTRL 6 +#define LBS_LED_BEHAVIOR_CTRL 7 + +int lbs_do_ioctl(struct net_device *dev, struct ifreq *req, int i); |