summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_wpireg.h
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2006-05-20 12:44:48 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2006-05-20 12:44:48 +0000
commitb2ac69817d0704895a8159fd55926cbdf5873120 (patch)
treee5a14133e7387b887d15eb85f93b119390060c9e /sys/dev/pci/if_wpireg.h
parent2fd0dcc8d7ec117585d90a20915ca9238a2f246c (diff)
- fix CCK mask for 802.11b/only
- add beacon command for future IBSS or HostAP mode support
Diffstat (limited to 'sys/dev/pci/if_wpireg.h')
-rw-r--r--sys/dev/pci/if_wpireg.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/sys/dev/pci/if_wpireg.h b/sys/dev/pci/if_wpireg.h
index fa341c0d6db..638ac34ff91 100644
--- a/sys/dev/pci/if_wpireg.h
+++ b/sys/dev/pci/if_wpireg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_wpireg.h,v 1.2 2006/05/20 11:47:29 damien Exp $ */
+/* $OpenBSD: if_wpireg.h,v 1.3 2006/05/20 12:44:47 damien Exp $ */
/*-
@@ -242,6 +242,7 @@ struct wpi_tx_cmd {
#define WPI_CMD_SET_LED 72
#define WPI_CMD_SET_POWER_MODE 119
#define WPI_CMD_SCAN 128
+#define WPI_CMD_SET_BEACON 145
#define WPI_CMD_BLUETOOTH 155
#define WPI_CMD_TXPOWER 176
@@ -364,6 +365,22 @@ struct wpi_cmd_data {
struct ieee80211_frame wh;
} __packed;
+/* structure for command WPI_CMD_SET_BEACON */
+struct wpi_cmd_beacon {
+ uint16_t len;
+ uint16_t reserved1;
+ uint32_t flags; /* same as wpi_cmd_data */
+ uint8_t rate;
+ uint8_t id;
+ uint8_t reserved2[30];
+ uint32_t lifetime;
+ uint32_t reserved3[2];
+ uint16_t tim;
+ uint8_t timsz;
+ uint8_t reserved4;
+ struct ieee80211_frame wh;
+} __packed;
+
/* structure for WPI_CMD_MRR_SETUP */
struct wpi_mrr_setup {
uint32_t which;