diff options
author | Meenakshi Venkataraman <meenakshi.venkataraman@intel.com> | 2012-03-15 16:27:00 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-04-09 16:37:40 -0400 |
commit | 354a4530ab68039f5d009409dff708e848febfa5 (patch) | |
tree | b24ffe24f23b33a624a0e3365f25a12a3e62f3c3 /drivers/net/wireless | |
parent | dff96c1e63ab48700193a2ee6e114070363257b7 (diff) |
iwlwifi: move iwl_set_rxon_hwcrypto and mark it static
iwl_set_rxon_hwcrypto is used only in
iwl-agn-rxon.c. Move it there and mark it
static.
Signed-off-by: Meenakshi Venkataraman <meenakshi.venkataraman@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-rxon.c | 12 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 12 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.h | 2 |
3 files changed, 12 insertions, 14 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c b/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c index f6784b3a5ce3..757443d906b5 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c | |||
@@ -500,6 +500,18 @@ int iwlagn_set_pan_params(struct iwl_priv *priv) | |||
500 | return ret; | 500 | return ret; |
501 | } | 501 | } |
502 | 502 | ||
503 | static void iwl_set_rxon_hwcrypto(struct iwl_priv *priv, | ||
504 | struct iwl_rxon_context *ctx, int hw_decrypt) | ||
505 | { | ||
506 | struct iwl_rxon_cmd *rxon = &ctx->staging; | ||
507 | |||
508 | if (hw_decrypt) | ||
509 | rxon->filter_flags &= ~RXON_FILTER_DIS_DECRYPT_MSK; | ||
510 | else | ||
511 | rxon->filter_flags |= RXON_FILTER_DIS_DECRYPT_MSK; | ||
512 | |||
513 | } | ||
514 | |||
503 | /** | 515 | /** |
504 | * iwlagn_commit_rxon - commit staging_rxon to hardware | 516 | * iwlagn_commit_rxon - commit staging_rxon to hardware |
505 | * | 517 | * |
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index 796f4a119b0d..4290d4088ca1 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -88,18 +88,6 @@ bool iwl_is_ht40_tx_allowed(struct iwl_priv *priv, | |||
88 | ctx->ht.extension_chan_offset); | 88 | ctx->ht.extension_chan_offset); |
89 | } | 89 | } |
90 | 90 | ||
91 | void iwl_set_rxon_hwcrypto(struct iwl_priv *priv, struct iwl_rxon_context *ctx, | ||
92 | int hw_decrypt) | ||
93 | { | ||
94 | struct iwl_rxon_cmd *rxon = &ctx->staging; | ||
95 | |||
96 | if (hw_decrypt) | ||
97 | rxon->filter_flags &= ~RXON_FILTER_DIS_DECRYPT_MSK; | ||
98 | else | ||
99 | rxon->filter_flags |= RXON_FILTER_DIS_DECRYPT_MSK; | ||
100 | |||
101 | } | ||
102 | |||
103 | /* validate RXON structure is valid */ | 91 | /* validate RXON structure is valid */ |
104 | int iwl_check_rxon_cmd(struct iwl_priv *priv, struct iwl_rxon_context *ctx) | 92 | int iwl_check_rxon_cmd(struct iwl_priv *priv, struct iwl_rxon_context *ctx) |
105 | { | 93 | { |
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h index 7217be8ee3db..cdcf1396c93d 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.h +++ b/drivers/net/wireless/iwlwifi/iwl-core.h | |||
@@ -93,8 +93,6 @@ struct iwl_lib_ops { | |||
93 | * L i b * | 93 | * L i b * |
94 | ***************************/ | 94 | ***************************/ |
95 | 95 | ||
96 | void iwl_set_rxon_hwcrypto(struct iwl_priv *priv, struct iwl_rxon_context *ctx, | ||
97 | int hw_decrypt); | ||
98 | int iwl_check_rxon_cmd(struct iwl_priv *priv, struct iwl_rxon_context *ctx); | 96 | int iwl_check_rxon_cmd(struct iwl_priv *priv, struct iwl_rxon_context *ctx); |
99 | int iwl_full_rxon_required(struct iwl_priv *priv, struct iwl_rxon_context *ctx); | 97 | int iwl_full_rxon_required(struct iwl_priv *priv, struct iwl_rxon_context *ctx); |
100 | void iwl_set_rxon_channel(struct iwl_priv *priv, struct ieee80211_channel *ch, | 98 | void iwl_set_rxon_channel(struct iwl_priv *priv, struct ieee80211_channel *ch, |