aboutsummaryrefslogtreecommitdiff
path: root/at76_usb.h
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2007-06-16 03:38:26 -0400
committerGuido Guenther <agx@sigxcpu.org>2007-06-16 13:42:56 +0200
commit494b39d0c20ab65cd2269ad54b5d09ecc4a24468 (patch)
treef8020e116d297e1e40904339b17e66c4528e1fce /at76_usb.h
parent54fe78a862ccc05f0a2d4863deabe9fa03c0e9af (diff)
[PATCH] Implement "get" counterparts for iwpriv calls
Rename all iwpriv calls to start with "get" or "set" for consistency. Eliminate gap in the ioctl numbers. Rename "intl_roaming" to "intl_scan", because it's really affects scanning only. Signed-off-by: Pavel Roskin <proski@gnu.org>
Diffstat (limited to 'at76_usb.h')
-rw-r--r--at76_usb.h30
1 files changed, 18 insertions, 12 deletions
diff --git a/at76_usb.h b/at76_usb.h
index 9a8c327..532b2f8 100644
--- a/at76_usb.h
+++ b/at76_usb.h
@@ -28,18 +28,24 @@
#define DRIVER_VERSION "0.15dev"
/* our private ioctl's */
-/* set preamble length*/
-#define AT76_SET_SHORT_PREAMBLE (SIOCIWFIRSTPRIV + 0x0)
-/* set debug parameter */
-#define AT76_SET_DEBUG (SIOCIWFIRSTPRIV + 0x2)
-/* set power save mode (incl. the Atmel proprietary smart save mode */
-#define AT76_SET_POWERSAVE_MODE (SIOCIWFIRSTPRIV + 0x4)
-/* set min and max channel times for scan */
-#define AT76_SET_SCAN_TIMES (SIOCIWFIRSTPRIV + 0x6)
-/* set scan mode */
-#define AT76_SET_SCAN_MODE (SIOCIWFIRSTPRIV + 0x8)
-/* set international roaming */
-#define AT76_SET_INTL_ROAMING (SIOCIWFIRSTPRIV + 0x10)
+/* preamble length (0 - long, 1 - short) */
+#define AT76_SET_SHORT_PREAMBLE (SIOCIWFIRSTPRIV + 0)
+#define AT76_GET_SHORT_PREAMBLE (SIOCIWFIRSTPRIV + 1)
+/* which debug channels are enabled */
+#define AT76_SET_DEBUG (SIOCIWFIRSTPRIV + 2)
+#define AT76_GET_DEBUG (SIOCIWFIRSTPRIV + 3)
+/* power save mode (incl. the Atmel proprietary smart save mode) */
+#define AT76_SET_POWERSAVE_MODE (SIOCIWFIRSTPRIV + 4)
+#define AT76_GET_POWERSAVE_MODE (SIOCIWFIRSTPRIV + 5)
+/* min and max channel times for scan */
+#define AT76_SET_SCAN_TIMES (SIOCIWFIRSTPRIV + 6)
+#define AT76_GET_SCAN_TIMES (SIOCIWFIRSTPRIV + 7)
+/* scan mode (0 - active, 1 - passive) */
+#define AT76_SET_SCAN_MODE (SIOCIWFIRSTPRIV + 8)
+#define AT76_GET_SCAN_MODE (SIOCIWFIRSTPRIV + 9)
+/* international roaming (0 - disabled, 1 - enabled */
+#define AT76_SET_INTL_ROAMING (SIOCIWFIRSTPRIV + 10)
+#define AT76_GET_INTL_ROAMING (SIOCIWFIRSTPRIV + 11)
#define DEVICE_VENDOR_REQUEST_OUT 0x40
#define DEVICE_VENDOR_REQUEST_IN 0xc0