aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c
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/iwlwifi/iwl-agn-rxon.c
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/iwlwifi/iwl-agn-rxon.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-rxon.c12
1 files changed, 12 insertions, 0 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 *