]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
iwlwifi: add option to test MFP
authorDavid Spinadel <david.spinadel@intel.com>
Wed, 7 Mar 2012 17:52:31 +0000 (09:52 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 8 Mar 2012 18:59:53 +0000 (13:59 -0500)
Add a Kconfig symbol to enable MFP for testing even
if the firmware file doesn't advertise it.

Signed-off-by: David Spinadel <david.spinadel@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/Kconfig
drivers/net/wireless/iwlwifi/iwl-mac80211.c

index 5afd06ef0d8b86ea0113dbb580dfd4ee88ff6d27..2fe62730dddd158b66ac80dceb8b20f9150fa99d 100644 (file)
@@ -127,3 +127,12 @@ config IWLWIFI_P2P
          support when it is loaded.
 
          Say Y only if you want to experiment with P2P.
+
+config IWLWIFI_EXPERIMENTAL_MFP
+       bool "support MFP (802.11w) even if uCode doesn't advertise"
+       depends on IWLWIFI
+       help
+         This option enables experimental MFP (802.11W) support
+         even if the microcode doesn't advertise it.
+
+         Say Y only if you want to experiment with MFP.
index 91a42c3261aad7fc22580b83137407fb1a844399..dcf39f84f239bdb82afa68cce6a999892cbcac27 100644 (file)
@@ -163,7 +163,10 @@ int iwlagn_mac_setup_register(struct iwl_priv *priv,
                hw->flags |= IEEE80211_HW_SUPPORTS_DYNAMIC_SMPS |
                             IEEE80211_HW_SUPPORTS_STATIC_SMPS;
 
+#ifndef CONFIG_IWLWIFI_EXPERIMENTAL_MFP
+       /* enable 11w if the uCode advertise */
        if (capa->flags & IWL_UCODE_TLV_FLAGS_MFP)
+#endif /* !CONFIG_IWLWIFI_EXPERIMENTAL_MFP */
                hw->flags |= IEEE80211_HW_MFP_CAPABLE;
 
        hw->sta_data_size = sizeof(struct iwl_station_priv);