aboutsummaryrefslogtreecommitdiff
path: root/at76_usb.h
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2007-04-13 02:57:42 -0400
committerGuido Guenther <agx@bogon.sigxcpu.org>2007-04-13 10:38:24 +0200
commit81f8fcba2548e5448459b7d382c1e43d3e167d7b (patch)
tree5b126b9daa2f83fe316b5b38787fa92398bf39ce /at76_usb.h
parent130ddd009771aba38570ea7aa89b9895b98fbb73 (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.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/at76_usb.h b/at76_usb.h
index e486bbf..47a7771 100644
--- a/at76_usb.h
+++ b/at76_usb.h
@@ -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