diff options
author | Pavel Roskin <proski@gnu.org> | 2007-04-13 02:57:42 -0400 |
---|---|---|
committer | Guido Guenther <agx@bogon.sigxcpu.org> | 2007-04-13 10:38:24 +0200 |
commit | 81f8fcba2548e5448459b7d382c1e43d3e167d7b (patch) | |
tree | 5b126b9daa2f83fe316b5b38787fa92398bf39ce /at76_usb.h | |
parent | 130ddd009771aba38570ea7aa89b9895b98fbb73 (diff) |
[PATCH] Use safer declaration for at76_priv_handlers
Don't rely on the order of fields. Specify indices explicitly. Use
shorter names for the handlers and for corresponding ioctl numbers.
Signed-off-by: Pavel Roskin <proski@gnu.org>
Diffstat (limited to 'at76_usb.h')
-rw-r--r-- | at76_usb.h | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -29,19 +29,19 @@ /* our private ioctl's */ /* set preamble length*/ -#define PRIV_IOCTL_SET_SHORT_PREAMBLE (SIOCIWFIRSTPRIV + 0x0) +#define AT76_SET_SHORT_PREAMBLE (SIOCIWFIRSTPRIV + 0x0) /* set debug parameter */ -#define PRIV_IOCTL_SET_DEBUG (SIOCIWFIRSTPRIV + 0x2) +#define AT76_SET_DEBUG (SIOCIWFIRSTPRIV + 0x2) /* set power save mode (incl. the Atmel proprietary smart save mode */ -#define PRIV_IOCTL_SET_POWERSAVE_MODE (SIOCIWFIRSTPRIV + 0x4) +#define AT76_SET_POWERSAVE_MODE (SIOCIWFIRSTPRIV + 0x4) /* set min and max channel times for scan */ -#define PRIV_IOCTL_SET_SCAN_TIMES (SIOCIWFIRSTPRIV + 0x6) +#define AT76_SET_SCAN_TIMES (SIOCIWFIRSTPRIV + 0x6) /* set scan mode */ -#define PRIV_IOCTL_SET_SCAN_MODE (SIOCIWFIRSTPRIV + 0x8) +#define AT76_SET_SCAN_MODE (SIOCIWFIRSTPRIV + 0x8) /* set international roaming */ -#define PRIV_IOCTL_SET_INTL_ROAMING (SIOCIWFIRSTPRIV + 0x10) +#define AT76_SET_INTL_ROAMING (SIOCIWFIRSTPRIV + 0x10) /* set monitor mode */ -#define PRIV_IOCTL_SET_MONITOR_MODE (SIOCIWFIRSTPRIV + 0x12) +#define AT76_SET_MONITOR_MODE (SIOCIWFIRSTPRIV + 0x12) #define DEVICE_VENDOR_REQUEST_OUT 0x40 #define DEVICE_VENDOR_REQUEST_IN 0xc0 |