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 | |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 10 | /** wlan_ioctl_regrdwr */ |
| 11 | struct wlan_ioctl_regrdwr { |
| 12 | /** Which register to access */ |
| 13 | u16 whichreg; |
| 14 | /** Read or Write */ |
| 15 | u16 action; |
| 16 | u32 offset; |
| 17 | u16 NOB; |
| 18 | u32 value; |
| 19 | }; |
| 20 | |
Dan Williams | 7dcf528 | 2007-06-18 12:10:33 -0400 | [diff] [blame^] | 21 | #define WLAN_LINKMODE_802_3 0 |
| 22 | #define WLAN_LINKMODE_802_11 2 |
| 23 | #define WLAN_RADIOMODE_NONE 0 |
| 24 | #define WLAN_RADIOMODE_RADIOTAP 2 |
| 25 | |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 26 | extern struct iw_handler_def libertas_handler_def; |
Luis Carlos Cobo Rus | f5e05b6 | 2007-05-25 23:08:34 -0400 | [diff] [blame] | 27 | extern struct iw_handler_def mesh_handler_def; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 28 | int wlan_radio_ioctl(wlan_private * priv, u8 option); |
| 29 | |
| 30 | #endif /* _WLAN_WEXT_H_ */ |