aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorMeenakshi Venkataraman <meenakshi.venkataraman@intel.com>2012-03-15 16:27:00 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-04-09 16:37:40 -0400
commit354a4530ab68039f5d009409dff708e848febfa5 (patch)
treeb24ffe24f23b33a624a0e3365f25a12a3e62f3c3 /drivers/net/wireless
parentdff96c1e63ab48700193a2ee6e114070363257b7 (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.c12
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-core.c12
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-core.h2
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
503static 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
91void 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 */
104int iwl_check_rxon_cmd(struct iwl_priv *priv, struct iwl_rxon_context *ctx) 92int 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
96void iwl_set_rxon_hwcrypto(struct iwl_priv *priv, struct iwl_rxon_context *ctx,
97 int hw_decrypt);
98int iwl_check_rxon_cmd(struct iwl_priv *priv, struct iwl_rxon_context *ctx); 96int iwl_check_rxon_cmd(struct iwl_priv *priv, struct iwl_rxon_context *ctx);
99int iwl_full_rxon_required(struct iwl_priv *priv, struct iwl_rxon_context *ctx); 97int iwl_full_rxon_required(struct iwl_priv *priv, struct iwl_rxon_context *ctx);
100void iwl_set_rxon_channel(struct iwl_priv *priv, struct ieee80211_channel *ch, 98void iwl_set_rxon_channel(struct iwl_priv *priv, struct ieee80211_channel *ch,