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_ */
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to