2 * This file contains definition for IOCTL call.
7 #define SUBCMD_OFFSET 4
8 #define SUBCMD_DATA(x) *((int *)(x->u.name + SUBCMD_OFFSET))
11 #define WLANIOCTL SIOCIWFIRSTPRIV
13 #define WLAN_SETNONE_GETNONE (WLANIOCTL + 8)
14 #define WLAN_SUBCMD_BT_RESET 13
15 #define WLAN_SUBCMD_FWT_RESET 14
17 #define WLAN_SETNONE_GETONEINT (WLANIOCTL + 15)
18 #define WLANGETREGION 1
20 #define WLAN_SUBCMD_FWT_CLEANUP 15
21 #define WLAN_SUBCMD_FWT_TIME 16
22 #define WLAN_SUBCMD_MESH_GET_TTL 17
24 #define WLAN_SETONEINT_GETNONE (WLANIOCTL + 24)
25 #define WLANSETREGION 8
26 #define WLAN_SUBCMD_MESH_SET_TTL 18
28 #define WLAN_SET128CHAR_GET128CHAR (WLANIOCTL + 25)
29 #define WLAN_SUBCMD_BT_ADD 18
30 #define WLAN_SUBCMD_BT_DEL 19
31 #define WLAN_SUBCMD_BT_LIST 20
32 #define WLAN_SUBCMD_FWT_ADD 21
33 #define WLAN_SUBCMD_FWT_DEL 22
34 #define WLAN_SUBCMD_FWT_LOOKUP 23
35 #define WLAN_SUBCMD_FWT_LIST_NEIGHBOR 24
36 #define WLAN_SUBCMD_FWT_LIST 25
37 #define WLAN_SUBCMD_FWT_LIST_ROUTE 26
39 #define WLAN_SET_GET_SIXTEEN_INT (WLANIOCTL + 29)
40 #define WLAN_LED_GPIO_CTRL 5
42 #define WLAN_LINKMODE_802_3 0
43 #define WLAN_LINKMODE_802_11 2
44 #define WLAN_RADIOMODE_NONE 0
45 #define WLAN_RADIOMODE_RADIOTAP 2
47 /** wlan_ioctl_regrdwr */
48 struct wlan_ioctl_regrdwr {
49 /** Which register to access */
58 extern struct iw_handler_def libertas_handler_def;
59 int libertas_do_ioctl(struct net_device *dev, struct ifreq *req, int i);
60 int wlan_radio_ioctl(wlan_private * priv, u8 option);
62 #endif /* _WLAN_WEXT_H_ */