|
@@ -749,45 +749,6 @@ static int iwl4965_full_rxon_required(struct iwl_priv *priv)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-static int iwl4965_send_rxon_assoc(struct iwl_priv *priv)
|
|
|
-{
|
|
|
- int ret = 0;
|
|
|
- struct iwl4965_rxon_assoc_cmd rxon_assoc;
|
|
|
- const struct iwl4965_rxon_cmd *rxon1 = &priv->staging_rxon;
|
|
|
- const struct iwl4965_rxon_cmd *rxon2 = &priv->active_rxon;
|
|
|
-
|
|
|
- if ((rxon1->flags == rxon2->flags) &&
|
|
|
- (rxon1->filter_flags == rxon2->filter_flags) &&
|
|
|
- (rxon1->cck_basic_rates == rxon2->cck_basic_rates) &&
|
|
|
- (rxon1->ofdm_ht_single_stream_basic_rates ==
|
|
|
- rxon2->ofdm_ht_single_stream_basic_rates) &&
|
|
|
- (rxon1->ofdm_ht_dual_stream_basic_rates ==
|
|
|
- rxon2->ofdm_ht_dual_stream_basic_rates) &&
|
|
|
- (rxon1->rx_chain == rxon2->rx_chain) &&
|
|
|
- (rxon1->ofdm_basic_rates == rxon2->ofdm_basic_rates)) {
|
|
|
- IWL_DEBUG_INFO("Using current RXON_ASSOC. Not resending.\n");
|
|
|
- return 0;
|
|
|
- }
|
|
|
-
|
|
|
- rxon_assoc.flags = priv->staging_rxon.flags;
|
|
|
- rxon_assoc.filter_flags = priv->staging_rxon.filter_flags;
|
|
|
- rxon_assoc.ofdm_basic_rates = priv->staging_rxon.ofdm_basic_rates;
|
|
|
- rxon_assoc.cck_basic_rates = priv->staging_rxon.cck_basic_rates;
|
|
|
- rxon_assoc.reserved = 0;
|
|
|
- rxon_assoc.ofdm_ht_single_stream_basic_rates =
|
|
|
- priv->staging_rxon.ofdm_ht_single_stream_basic_rates;
|
|
|
- rxon_assoc.ofdm_ht_dual_stream_basic_rates =
|
|
|
- priv->staging_rxon.ofdm_ht_dual_stream_basic_rates;
|
|
|
- rxon_assoc.rx_chain_select_flags = priv->staging_rxon.rx_chain;
|
|
|
-
|
|
|
- ret = iwl_send_cmd_pdu_async(priv, REPLY_RXON_ASSOC,
|
|
|
- sizeof(rxon_assoc), &rxon_assoc, NULL);
|
|
|
- if (ret)
|
|
|
- return ret;
|
|
|
-
|
|
|
- return ret;
|
|
|
-}
|
|
|
-
|
|
|
/**
|
|
|
* iwl4965_commit_rxon - commit staging_rxon to hardware
|
|
|
*
|
|
@@ -819,7 +780,7 @@ static int iwl4965_commit_rxon(struct iwl_priv *priv)
|
|
|
* iwl4965_rxon_assoc_cmd which is used to reconfigure filter
|
|
|
* and other flags for the current radio configuration. */
|
|
|
if (!iwl4965_full_rxon_required(priv)) {
|
|
|
- rc = iwl4965_send_rxon_assoc(priv);
|
|
|
+ rc = iwl_send_rxon_assoc(priv);
|
|
|
if (rc) {
|
|
|
IWL_ERROR("Error setting RXON_ASSOC "
|
|
|
"configuration (%d).\n", rc);
|
|
@@ -6756,7 +6717,7 @@ static void iwl4965_bss_info_changed(struct ieee80211_hw *hw,
|
|
|
}
|
|
|
} else if (changes && iwl_is_associated(priv) && priv->assoc_id) {
|
|
|
IWL_DEBUG_MAC80211("Associated Changes %d\n", changes);
|
|
|
- iwl4965_send_rxon_assoc(priv);
|
|
|
+ iwl_send_rxon_assoc(priv);
|
|
|
}
|
|
|
|
|
|
}
|