blob: 3d5196c9553aa6228cdade43ffd95364ad91a1c7 [file] [log] [blame]
Marcelo Tosatti876c9d32007-02-10 12:25:27 -02001/**
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 Tosatti876c9d32007-02-10 12:25:27 -020010/** wlan_ioctl_regrdwr */
11struct 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 Williams7dcf5282007-06-18 12:10:33 -040021#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 Tosatti876c9d32007-02-10 12:25:27 -020026extern struct iw_handler_def libertas_handler_def;
Luis Carlos Cobo Rusf5e05b62007-05-25 23:08:34 -040027extern struct iw_handler_def mesh_handler_def;
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020028int wlan_radio_ioctl(wlan_private * priv, u8 option);
29
30#endif /* _WLAN_WEXT_H_ */