diff options
author | Mohamed Abbas <mohamed.abbas@intel.com> | 2009-04-08 14:39:29 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-22 16:54:44 -0400 |
commit | 3a6502927f763f05069d1b84af3a05b38eb1a818 (patch) | |
tree | 2f48db73d3d1974325109018e5c9e410d7eb8ac9 /drivers/net | |
parent | ddfcf999274838a8dfb0ccf8e69fc1e50eea3341 (diff) |
iwlagn: Sync rxon active with changes
We need to sync rxon_active with changes after we commit rxon_assoc,
without rxon_active will still have the old data that cause
iwl_send_rxon_assoc to fail with no change in rxon command.
Signed-off-by: Mohamed Abbas <mohamed.abbas@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')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index c523cc339eaf..8f121fa3f325 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -2238,6 +2238,7 @@ void iwl_bss_info_changed(struct ieee80211_hw *hw, | |||
2238 | u32 changes) | 2238 | u32 changes) |
2239 | { | 2239 | { |
2240 | struct iwl_priv *priv = hw->priv; | 2240 | struct iwl_priv *priv = hw->priv; |
2241 | int ret; | ||
2241 | 2242 | ||
2242 | IWL_DEBUG_MAC80211(priv, "changes = 0x%X\n", changes); | 2243 | IWL_DEBUG_MAC80211(priv, "changes = 0x%X\n", changes); |
2243 | 2244 | ||
@@ -2292,7 +2293,12 @@ void iwl_bss_info_changed(struct ieee80211_hw *hw, | |||
2292 | } | 2293 | } |
2293 | } else if (changes && iwl_is_associated(priv) && priv->assoc_id) { | 2294 | } else if (changes && iwl_is_associated(priv) && priv->assoc_id) { |
2294 | IWL_DEBUG_MAC80211(priv, "Associated Changes %d\n", changes); | 2295 | IWL_DEBUG_MAC80211(priv, "Associated Changes %d\n", changes); |
2295 | iwl_send_rxon_assoc(priv); | 2296 | ret = iwl_send_rxon_assoc(priv); |
2297 | if (!ret) | ||
2298 | /* Sync active_rxon with latest change. */ | ||
2299 | memcpy((void *)&priv->active_rxon, | ||
2300 | &priv->staging_rxon, | ||
2301 | sizeof(struct iwl_rxon_cmd)); | ||
2296 | } | 2302 | } |
2297 | 2303 | ||
2298 | } | 2304 | } |