summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_iwnreg.h
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2021-11-12 11:41:05 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2021-11-12 11:41:05 +0000
commitabcd999aa309769fb2bc9a886f8398f2abd95d0c (patch)
tree73559f2dcedebebe3895e19fede18a21eff0598f /sys/dev/pci/if_iwnreg.h
parent019d3d5811c714c2ad262e5504a9e3aef0988b3b (diff)
Add support for 40MHz channels to the iwn(4) driver.
Tested: 4965: jsg 5300: stsp, Jan Stary 6030: Fred Crowsons 6200: stsp 6205: stsp, Josh Grosse 6300: okan, afresh1
Diffstat (limited to 'sys/dev/pci/if_iwnreg.h')
-rw-r--r--sys/dev/pci/if_iwnreg.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/pci/if_iwnreg.h b/sys/dev/pci/if_iwnreg.h
index a6ed77338a0..110efd376fd 100644
--- a/sys/dev/pci/if_iwnreg.h
+++ b/sys/dev/pci/if_iwnreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iwnreg.h,v 1.58 2021/11/12 11:40:36 stsp Exp $ */
+/* $OpenBSD: if_iwnreg.h,v 1.59 2021/11/12 11:41:04 stsp Exp $ */
/*-
* Copyright (c) 2007, 2008
@@ -637,6 +637,8 @@ struct iwn_node_info {
uint32_t htflags;
#define IWN_AMDPU_SIZE_FACTOR(x) ((x) << 19)
#define IWN_AMDPU_SIZE_FACTOR_MASK ((0x3) << 19)
+#define IWN_40MHZ_ENABLE (1 << 21)
+#define IWN_MIMO_DISABLE (1 << 22)
#define IWN_AMDPU_DENSITY(x) ((x) << 23)
#define IWN_AMDPU_DENSITY_MASK ((0x7) << 23)
@@ -1537,6 +1539,8 @@ struct iwn_general_stats {
struct iwn_stats {
uint32_t flags;
+#define IWN_STATS_FLAGS_BAND_24G 0x02
+#define IWN_STATS_FLAGS_BAND_HT40 0x08
struct iwn_rx_stats rx;
struct iwn_tx_stats tx;
struct iwn_general_stats general;