summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2013-03-11 06:01:00 +0000
committeradrian <adrian@FreeBSD.org>2013-03-11 06:01:00 +0000
commit5331e34f3d464b8bc0d4972553f2ebde201e02a7 (patch)
tree30666343b17b555dd2b5f86ce1a134d1898aad3b
parent31e4d716185582b4048e864f4051ada1478111cb (diff)
downloadFreeBSD-src-5331e34f3d464b8bc0d4972553f2ebde201e02a7.zip
FreeBSD-src-5331e34f3d464b8bc0d4972553f2ebde201e02a7.tar.gz
Bump the EVM array size up to fit the AR9380 EVM entries.
-rw-r--r--sys/dev/ath/if_athioctl.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/ath/if_athioctl.h b/sys/dev/ath/if_athioctl.h
index f7b8600..05562ac 100644
--- a/sys/dev/ath/if_athioctl.h
+++ b/sys/dev/ath/if_athioctl.h
@@ -273,6 +273,12 @@ struct ath_rateioctl {
#define ATH_RADIOTAP_MAX_CHAINS 4
/*
+ * AR9380 and later chips are 3x3, which requires
+ * 5 EVM DWORDs in HT40 mode.
+ */
+#define ATH_RADIOTAP_MAX_EVM 5
+
+/*
* The vendor radiotap header data needs to be:
*
* + Aligned to a 4 byte address
@@ -291,7 +297,7 @@ struct ath_radiotap_vendor_hdr { /* 30 bytes */
uint8_t vh_rx_chainmask; /* 1 */
/* At this point it should be 4 byte aligned */
- uint32_t evm[ATH_RADIOTAP_MAX_CHAINS]; /* 4 * 4 = 16 */
+ uint32_t evm[ATH_RADIOTAP_MAX_EVM]; /* 5 * 4 = 20 */
uint8_t rssi_ctl[ATH_RADIOTAP_MAX_CHAINS]; /* 4 */
uint8_t rssi_ext[ATH_RADIOTAP_MAX_CHAINS]; /* 4 */
OpenPOWER on IntegriCloud