diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2017-10-18 15:47:40 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2017-10-18 15:47:40 +0000 |
commit | 79ba768e2827b45991cf8ba2dfb1487ddfaa92b0 (patch) | |
tree | d6c7c36de7d6893db4f2c33058408458dc2a3ac9 /sys/dev/ic/bwfmreg.h | |
parent | 078ccc4d89b142843b0259a376b4b5a46db70026 (diff) |
Read and extract the channel number from the chanspec to beautify the
scan results. Since the channel number is encoded on both IO types in
the same way, we don't need to implement per IO type helpers for now.
Diffstat (limited to 'sys/dev/ic/bwfmreg.h')
-rw-r--r-- | sys/dev/ic/bwfmreg.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/bwfmreg.h b/sys/dev/ic/bwfmreg.h index cad0a58c4a6..b963ce9a052 100644 --- a/sys/dev/ic/bwfmreg.h +++ b/sys/dev/ic/bwfmreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bwfmreg.h,v 1.6 2017/10/18 15:45:38 patrick Exp $ */ +/* $OpenBSD: bwfmreg.h,v 1.7 2017/10/18 15:47:39 patrick Exp $ */ /* * Copyright (c) 2010-2016 Broadcom Corporation * Copyright (c) 2016,2017 Patrick Wildt <patrick@blueri.se> @@ -156,6 +156,8 @@ #define BWFM_WSEC_AES (1 << 2) /* Channel Parameters */ +#define BWFM_CHANSPEC_CHAN_MASK 0xff +#define BWFM_CHANSPEC_CHAN_SHIFT 0 #define BWFM_BAND_AUTO 0 #define BWFM_BAND_5G 1 #define BWFM_BAND_2G 2 |