diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-01-21 10:32:58 -0500 |
---|---|---|
committer | Reinette Chatre <reinette.chatre@intel.com> | 2010-03-09 19:04:15 -0500 |
commit | b4665df448b316fd5282f4947e27eaf92dc105bb (patch) | |
tree | 64bd1f5cf0021d49dcbf71680ac590cc3181f2fd /drivers | |
parent | d6bde7d9508f9ce9a5d57b1c0fa48f43fc5defa8 (diff) |
iwlwifi: remove dead code from iwl_mac_reset_tsf
iwl_mac_reset_tsf will only ever be called in
IBSS mode, so checking for other modes is not
useful and the code that depends on that will
not be executed.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index 166087d6f72c..1cfcc9fe9dc3 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -2597,8 +2597,6 @@ void iwl_mac_reset_tsf(struct ieee80211_hw *hw) | |||
2597 | 2597 | ||
2598 | priv->beacon_int = priv->vif->bss_conf.beacon_int; | 2598 | priv->beacon_int = priv->vif->bss_conf.beacon_int; |
2599 | priv->timestamp = 0; | 2599 | priv->timestamp = 0; |
2600 | if ((priv->iw_mode == NL80211_IFTYPE_STATION)) | ||
2601 | priv->beacon_int = 0; | ||
2602 | 2600 | ||
2603 | spin_unlock_irqrestore(&priv->lock, flags); | 2601 | spin_unlock_irqrestore(&priv->lock, flags); |
2604 | 2602 | ||
@@ -2611,17 +2609,9 @@ void iwl_mac_reset_tsf(struct ieee80211_hw *hw) | |||
2611 | /* we are restarting association process | 2609 | /* we are restarting association process |
2612 | * clear RXON_FILTER_ASSOC_MSK bit | 2610 | * clear RXON_FILTER_ASSOC_MSK bit |
2613 | */ | 2611 | */ |
2614 | if (priv->iw_mode != NL80211_IFTYPE_AP) { | 2612 | iwl_scan_cancel_timeout(priv, 100); |
2615 | iwl_scan_cancel_timeout(priv, 100); | 2613 | priv->staging_rxon.filter_flags &= ~RXON_FILTER_ASSOC_MSK; |
2616 | priv->staging_rxon.filter_flags &= ~RXON_FILTER_ASSOC_MSK; | 2614 | iwlcore_commit_rxon(priv); |
2617 | iwlcore_commit_rxon(priv); | ||
2618 | } | ||
2619 | |||
2620 | if (priv->iw_mode != NL80211_IFTYPE_ADHOC) { | ||
2621 | IWL_DEBUG_MAC80211(priv, "leave - not in IBSS\n"); | ||
2622 | mutex_unlock(&priv->mutex); | ||
2623 | return; | ||
2624 | } | ||
2625 | 2615 | ||
2626 | iwl_set_rate(priv); | 2616 | iwl_set_rate(priv); |
2627 | 2617 | ||