Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Aug 2012 03:37:01 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r239606 - head/sys/dev/ath/ath_hal
Message-ID:  <201208230337.q7N3b1DK049140@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Thu Aug 23 03:37:01 2012
New Revision: 239606
URL: http://svn.freebsd.org/changeset/base/239606

Log:
  Add a placeholder and typedefs for MFP (management frame protection.)
  
  Obtained from:	Qualcomm Atheros

Modified:
  head/sys/dev/ath/ath_hal/ah.h

Modified: head/sys/dev/ath/ath_hal/ah.h
==============================================================================
--- head/sys/dev/ath/ath_hal/ah.h	Thu Aug 23 03:25:09 2012	(r239605)
+++ head/sys/dev/ath/ath_hal/ah.h	Thu Aug 23 03:37:01 2012	(r239606)
@@ -830,6 +830,16 @@ typedef enum {
 } HAL_DFS_DOMAIN;
 
 /*
+ * MFP decryption options for initializing the MAC.
+ */
+
+typedef enum {
+	HAL_MFP_QOSDATA = 0,	/* Decrypt MFP frames like QoS data frames. All chips before Merlin. */
+	HAL_MFP_PASSTHRU,	/* Don't decrypt MFP frames at all. Passthrough */
+	HAL_MFP_HW_CRYPTO	/* hardware decryption enabled. Merlin can do it. */
+} HAL_MFP_OPT_T;
+
+/*
  * Flag for setting QUIET period
  */
 typedef enum {
@@ -1404,4 +1414,14 @@ int __ahdecl ath_hal_getcca(struct ath_h
 HAL_BOOL __ahdecl ath_hal_EepromDataRead(struct ath_hal *ah,
 		u_int off, uint16_t *data);
 
+/*
+ * For now, simply pass through MFP frames.
+ */
+static inline u_int32_t
+ath_hal_get_mfp_qos(struct ath_hal *ah)
+{
+	//return AH_PRIVATE(ah)->ah_mfp_qos;
+	return HAL_MFP_QOSDATA;
+}
+
 #endif /* _ATH_AH_H_ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208230337.q7N3b1DK049140>