diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-04-15 19:01:43 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-04-16 16:00:00 -0400 |
commit | 7e8c519ecbd44cbe017f1749eb1f0f87d86d6ea2 (patch) | |
tree | d38d4391d34e817fa958d132a627bff706bf4b9b /drivers/net/wireless/iwlwifi/iwl4965-base.c | |
parent | 3c424c281a9887733ab936477c327cdb2a7ae367 (diff) |
iwlwifi: move rxon associated command to hcmd
This patch run rxon associated command from hcmd handler
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl4965-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl4965-base.c | 43 |
1 files changed, 2 insertions, 41 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c index 249af4156c13..745b462103bd 100644 --- a/drivers/net/wireless/iwlwifi/iwl4965-base.c +++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c | |||
@@ -749,45 +749,6 @@ static int iwl4965_full_rxon_required(struct iwl_priv *priv) | |||
749 | return 0; | 749 | return 0; |
750 | } | 750 | } |
751 | 751 | ||
752 | static int iwl4965_send_rxon_assoc(struct iwl_priv *priv) | ||
753 | { | ||
754 | int ret = 0; | ||
755 | struct iwl4965_rxon_assoc_cmd rxon_assoc; | ||
756 | const struct iwl4965_rxon_cmd *rxon1 = &priv->staging_rxon; | ||
757 | const struct iwl4965_rxon_cmd *rxon2 = &priv->active_rxon; | ||
758 | |||
759 | if ((rxon1->flags == rxon2->flags) && | ||
760 | (rxon1->filter_flags == rxon2->filter_flags) && | ||
761 | (rxon1->cck_basic_rates == rxon2->cck_basic_rates) && | ||
762 | (rxon1->ofdm_ht_single_stream_basic_rates == | ||
763 | rxon2->ofdm_ht_single_stream_basic_rates) && | ||
764 | (rxon1->ofdm_ht_dual_stream_basic_rates == | ||
765 | rxon2->ofdm_ht_dual_stream_basic_rates) && | ||
766 | (rxon1->rx_chain == rxon2->rx_chain) && | ||
767 | (rxon1->ofdm_basic_rates == rxon2->ofdm_basic_rates)) { | ||
768 | IWL_DEBUG_INFO("Using current RXON_ASSOC. Not resending.\n"); | ||
769 | return 0; | ||
770 | } | ||
771 | |||
772 | rxon_assoc.flags = priv->staging_rxon.flags; | ||
773 | rxon_assoc.filter_flags = priv->staging_rxon.filter_flags; | ||
774 | rxon_assoc.ofdm_basic_rates = priv->staging_rxon.ofdm_basic_rates; | ||
775 | rxon_assoc.cck_basic_rates = priv->staging_rxon.cck_basic_rates; | ||
776 | rxon_assoc.reserved = 0; | ||
777 | rxon_assoc.ofdm_ht_single_stream_basic_rates = | ||
778 | priv->staging_rxon.ofdm_ht_single_stream_basic_rates; | ||
779 | rxon_assoc.ofdm_ht_dual_stream_basic_rates = | ||
780 | priv->staging_rxon.ofdm_ht_dual_stream_basic_rates; | ||
781 | rxon_assoc.rx_chain_select_flags = priv->staging_rxon.rx_chain; | ||
782 | |||
783 | ret = iwl_send_cmd_pdu_async(priv, REPLY_RXON_ASSOC, | ||
784 | sizeof(rxon_assoc), &rxon_assoc, NULL); | ||
785 | if (ret) | ||
786 | return ret; | ||
787 | |||
788 | return ret; | ||
789 | } | ||
790 | |||
791 | /** | 752 | /** |
792 | * iwl4965_commit_rxon - commit staging_rxon to hardware | 753 | * iwl4965_commit_rxon - commit staging_rxon to hardware |
793 | * | 754 | * |
@@ -819,7 +780,7 @@ static int iwl4965_commit_rxon(struct iwl_priv *priv) | |||
819 | * iwl4965_rxon_assoc_cmd which is used to reconfigure filter | 780 | * iwl4965_rxon_assoc_cmd which is used to reconfigure filter |
820 | * and other flags for the current radio configuration. */ | 781 | * and other flags for the current radio configuration. */ |
821 | if (!iwl4965_full_rxon_required(priv)) { | 782 | if (!iwl4965_full_rxon_required(priv)) { |
822 | rc = iwl4965_send_rxon_assoc(priv); | 783 | rc = iwl_send_rxon_assoc(priv); |
823 | if (rc) { | 784 | if (rc) { |
824 | IWL_ERROR("Error setting RXON_ASSOC " | 785 | IWL_ERROR("Error setting RXON_ASSOC " |
825 | "configuration (%d).\n", rc); | 786 | "configuration (%d).\n", rc); |
@@ -6756,7 +6717,7 @@ static void iwl4965_bss_info_changed(struct ieee80211_hw *hw, | |||
6756 | } | 6717 | } |
6757 | } else if (changes && iwl_is_associated(priv) && priv->assoc_id) { | 6718 | } else if (changes && iwl_is_associated(priv) && priv->assoc_id) { |
6758 | IWL_DEBUG_MAC80211("Associated Changes %d\n", changes); | 6719 | IWL_DEBUG_MAC80211("Associated Changes %d\n", changes); |
6759 | iwl4965_send_rxon_assoc(priv); | 6720 | iwl_send_rxon_assoc(priv); |
6760 | } | 6721 | } |
6761 | 6722 | ||
6762 | } | 6723 | } |