Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 1 | /** |
| 2 | * This file contains definition for IOCTL call. |
| 3 | */ |
| 4 | #ifndef _WLAN_WEXT_H_ |
| 5 | #define _WLAN_WEXT_H_ |
| 6 | |
| 7 | #define SUBCMD_OFFSET 4 |
| 8 | #define SUBCMD_DATA(x) *((int *)(x->u.name + SUBCMD_OFFSET)) |
| 9 | |
| 10 | /** PRIVATE CMD ID */ |
| 11 | #define WLANIOCTL SIOCIWFIRSTPRIV |
| 12 | |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 13 | #define WLAN_SETNONE_GETNONE (WLANIOCTL + 8) |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 14 | #define WLAN_SUBCMD_BT_RESET 13 |
| 15 | #define WLAN_SUBCMD_FWT_RESET 14 |
| 16 | |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 17 | #define WLAN_SETNONE_GETONEINT (WLANIOCTL + 15) |
| 18 | #define WLANGETREGION 1 |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 19 | |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 20 | #define WLAN_SUBCMD_FWT_CLEANUP 15 |
| 21 | #define WLAN_SUBCMD_FWT_TIME 16 |
| 22 | #define WLAN_SUBCMD_MESH_GET_TTL 17 |
Luis Carlos Cobo | 90e8eaf | 2007-05-25 13:53:26 -0400 | [diff] [blame] | 23 | #define WLAN_SUBCMD_BT_GET_INVERT 18 |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 24 | |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 25 | #define WLAN_SETONEINT_GETNONE (WLANIOCTL + 24) |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 26 | #define WLANSETREGION 8 |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 27 | #define WLAN_SUBCMD_MESH_SET_TTL 18 |
Luis Carlos Cobo | 90e8eaf | 2007-05-25 13:53:26 -0400 | [diff] [blame] | 28 | #define WLAN_SUBCMD_BT_SET_INVERT 19 |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 29 | |
| 30 | #define WLAN_SET128CHAR_GET128CHAR (WLANIOCTL + 25) |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 31 | #define WLAN_SUBCMD_BT_ADD 18 |
| 32 | #define WLAN_SUBCMD_BT_DEL 19 |
| 33 | #define WLAN_SUBCMD_BT_LIST 20 |
Luis Carlos Cobo | 90e8eaf | 2007-05-25 13:53:26 -0400 | [diff] [blame] | 34 | #define WLAN_SUBCMD_FWT_ADD 21 |
| 35 | #define WLAN_SUBCMD_FWT_DEL 22 |
| 36 | #define WLAN_SUBCMD_FWT_LOOKUP 23 |
| 37 | #define WLAN_SUBCMD_FWT_LIST_NEIGHBOR 24 |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 38 | #define WLAN_SUBCMD_FWT_LIST 25 |
Luis Carlos Cobo | 90e8eaf | 2007-05-25 13:53:26 -0400 | [diff] [blame] | 39 | #define WLAN_SUBCMD_FWT_LIST_ROUTE 26 |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 40 | |
| 41 | #define WLAN_SET_GET_SIXTEEN_INT (WLANIOCTL + 29) |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 42 | #define WLAN_LED_GPIO_CTRL 5 |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 43 | |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 44 | #define WLAN_LINKMODE_802_3 0 |
| 45 | #define WLAN_LINKMODE_802_11 2 |
| 46 | #define WLAN_RADIOMODE_NONE 0 |
| 47 | #define WLAN_RADIOMODE_RADIOTAP 2 |
| 48 | |
| 49 | /** wlan_ioctl_regrdwr */ |
| 50 | struct wlan_ioctl_regrdwr { |
| 51 | /** Which register to access */ |
| 52 | u16 whichreg; |
| 53 | /** Read or Write */ |
| 54 | u16 action; |
| 55 | u32 offset; |
| 56 | u16 NOB; |
| 57 | u32 value; |
| 58 | }; |
| 59 | |
| 60 | extern struct iw_handler_def libertas_handler_def; |
Luis Carlos Cobo Rus | f5e05b6 | 2007-05-25 23:08:34 -0400 | [diff] [blame^] | 61 | extern struct iw_handler_def mesh_handler_def; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 62 | int libertas_do_ioctl(struct net_device *dev, struct ifreq *req, int i); |
| 63 | int wlan_radio_ioctl(wlan_private * priv, u8 option); |
| 64 | |
| 65 | #endif /* _WLAN_WEXT_H_ */ |