diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-04-17 10:36:30 -0400 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2012-04-23 17:30:51 -0400 |
commit | 65de7e84fdc71a409f1d97aba8e44ece26628f51 (patch) | |
tree | c2db81db4b0660fd8c3d615b56e502921224f1c1 /drivers/net/wireless/iwlwifi/iwl-mac80211.c | |
parent | eb4887b6c6ddfe401b2668da9c1bf5f154522ace (diff) |
iwlwifi: clean up module parameters
For now at least, all module parameters should be
with the core functionality, so move them there,
while at it rename to iwlwifi_mod_params. Also
rename iwl-shared.h to iwl-modparams.h to reflect
the real contents.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-mac80211.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-mac80211.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-mac80211.c b/drivers/net/wireless/iwlwifi/iwl-mac80211.c index 4f4515696e55..9670554dc469 100644 --- a/drivers/net/wireless/iwlwifi/iwl-mac80211.c +++ b/drivers/net/wireless/iwlwifi/iwl-mac80211.c | |||
@@ -49,6 +49,7 @@ | |||
49 | #include "iwl-agn.h" | 49 | #include "iwl-agn.h" |
50 | #include "iwl-trans.h" | 50 | #include "iwl-trans.h" |
51 | #include "iwl-op-mode.h" | 51 | #include "iwl-op-mode.h" |
52 | #include "iwl-modparams.h" | ||
52 | 53 | ||
53 | /***************************************************************************** | 54 | /***************************************************************************** |
54 | * | 55 | * |
@@ -202,7 +203,7 @@ int iwlagn_mac_setup_register(struct iwl_priv *priv, | |||
202 | WIPHY_WOWLAN_DISCONNECT | | 203 | WIPHY_WOWLAN_DISCONNECT | |
203 | WIPHY_WOWLAN_EAP_IDENTITY_REQ | | 204 | WIPHY_WOWLAN_EAP_IDENTITY_REQ | |
204 | WIPHY_WOWLAN_RFKILL_RELEASE; | 205 | WIPHY_WOWLAN_RFKILL_RELEASE; |
205 | if (!iwlagn_mod_params.sw_crypto) | 206 | if (!iwlwifi_mod_params.sw_crypto) |
206 | hw->wiphy->wowlan.flags |= | 207 | hw->wiphy->wowlan.flags |= |
207 | WIPHY_WOWLAN_SUPPORTS_GTK_REKEY | | 208 | WIPHY_WOWLAN_SUPPORTS_GTK_REKEY | |
208 | WIPHY_WOWLAN_GTK_REKEY_FAILURE; | 209 | WIPHY_WOWLAN_GTK_REKEY_FAILURE; |
@@ -214,7 +215,7 @@ int iwlagn_mac_setup_register(struct iwl_priv *priv, | |||
214 | IWLAGN_WOWLAN_MAX_PATTERN_LEN; | 215 | IWLAGN_WOWLAN_MAX_PATTERN_LEN; |
215 | } | 216 | } |
216 | 217 | ||
217 | if (iwlagn_mod_params.power_save) | 218 | if (iwlwifi_mod_params.power_save) |
218 | hw->wiphy->flags |= WIPHY_FLAG_PS_ON_BY_DEFAULT; | 219 | hw->wiphy->flags |= WIPHY_FLAG_PS_ON_BY_DEFAULT; |
219 | else | 220 | else |
220 | hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT; | 221 | hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT; |
@@ -365,7 +366,7 @@ void iwlagn_mac_set_rekey_data(struct ieee80211_hw *hw, | |||
365 | { | 366 | { |
366 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 367 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
367 | 368 | ||
368 | if (iwlagn_mod_params.sw_crypto) | 369 | if (iwlwifi_mod_params.sw_crypto) |
369 | return; | 370 | return; |
370 | 371 | ||
371 | IWL_DEBUG_MAC80211(priv, "enter\n"); | 372 | IWL_DEBUG_MAC80211(priv, "enter\n"); |
@@ -531,7 +532,7 @@ int iwlagn_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, | |||
531 | 532 | ||
532 | IWL_DEBUG_MAC80211(priv, "enter\n"); | 533 | IWL_DEBUG_MAC80211(priv, "enter\n"); |
533 | 534 | ||
534 | if (iwlagn_mod_params.sw_crypto) { | 535 | if (iwlwifi_mod_params.sw_crypto) { |
535 | IWL_DEBUG_MAC80211(priv, "leave - hwcrypto disabled\n"); | 536 | IWL_DEBUG_MAC80211(priv, "leave - hwcrypto disabled\n"); |
536 | return -EOPNOTSUPP; | 537 | return -EOPNOTSUPP; |
537 | } | 538 | } |
@@ -642,7 +643,7 @@ int iwlagn_mac_ampdu_action(struct ieee80211_hw *hw, | |||
642 | 643 | ||
643 | switch (action) { | 644 | switch (action) { |
644 | case IEEE80211_AMPDU_RX_START: | 645 | case IEEE80211_AMPDU_RX_START: |
645 | if (iwlagn_mod_params.disable_11n & IWL_DISABLE_HT_RXAGG) | 646 | if (iwlwifi_mod_params.disable_11n & IWL_DISABLE_HT_RXAGG) |
646 | break; | 647 | break; |
647 | IWL_DEBUG_HT(priv, "start Rx\n"); | 648 | IWL_DEBUG_HT(priv, "start Rx\n"); |
648 | ret = iwl_sta_rx_agg_start(priv, sta, tid, *ssn); | 649 | ret = iwl_sta_rx_agg_start(priv, sta, tid, *ssn); |
@@ -654,7 +655,7 @@ int iwlagn_mac_ampdu_action(struct ieee80211_hw *hw, | |||
654 | case IEEE80211_AMPDU_TX_START: | 655 | case IEEE80211_AMPDU_TX_START: |
655 | if (!priv->trans->ops->tx_agg_setup) | 656 | if (!priv->trans->ops->tx_agg_setup) |
656 | break; | 657 | break; |
657 | if (iwlagn_mod_params.disable_11n & IWL_DISABLE_HT_TXAGG) | 658 | if (iwlwifi_mod_params.disable_11n & IWL_DISABLE_HT_TXAGG) |
658 | break; | 659 | break; |
659 | IWL_DEBUG_HT(priv, "start Tx\n"); | 660 | IWL_DEBUG_HT(priv, "start Tx\n"); |
660 | ret = iwlagn_tx_agg_start(priv, vif, sta, tid, ssn); | 661 | ret = iwlagn_tx_agg_start(priv, vif, sta, tid, ssn); |