diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-02-17 04:43:41 -0500 |
---|---|---|
committer | Reinette Chatre <reinette.chatre@intel.com> | 2010-03-09 19:05:55 -0500 |
commit | 76c9cc18fd2c8cfa5a7f66d5496d469db00eaf54 (patch) | |
tree | 850ac1ad7e4a9c91e70436c3356df34ca243a9cf /drivers | |
parent | 67d613aed70194387edb1f8bf990f9cf197d3717 (diff) |
iwlwifi: remove alive start adhoc restart
This code will never trigger, because when
we call this during interface start, neither
priv->vif nor priv->iw_mode conditions will
be true, and when it happens during reset
then priv->vif is also NULL. Also, in both
cases the same code will be executed as part
of iwl_bss_info_changed(), which contains a
copy of this code.
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-agn.c | 9 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 8 |
2 files changed, 0 insertions, 17 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index fbbe99859662..b07c013e273b 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -2144,15 +2144,6 @@ static void iwl_alive_start(struct iwl_priv *priv) | |||
2144 | 2144 | ||
2145 | iwl_power_update_mode(priv, true); | 2145 | iwl_power_update_mode(priv, true); |
2146 | 2146 | ||
2147 | /* reassociate for ADHOC mode */ | ||
2148 | if (priv->vif && (priv->iw_mode == NL80211_IFTYPE_ADHOC)) { | ||
2149 | struct sk_buff *beacon = ieee80211_beacon_get(priv->hw, | ||
2150 | priv->vif); | ||
2151 | if (beacon) | ||
2152 | iwl_mac_beacon_update(priv->hw, beacon); | ||
2153 | } | ||
2154 | |||
2155 | |||
2156 | if (test_and_clear_bit(STATUS_MODE_PENDING, &priv->status)) | 2147 | if (test_and_clear_bit(STATUS_MODE_PENDING, &priv->status)) |
2157 | iwl_set_mode(priv, priv->iw_mode); | 2148 | iwl_set_mode(priv, priv->iw_mode); |
2158 | 2149 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index 9cc15f96d208..bdd5fc74bce4 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -2537,14 +2537,6 @@ static void iwl3945_alive_start(struct iwl_priv *priv) | |||
2537 | set_bit(STATUS_READY, &priv->status); | 2537 | set_bit(STATUS_READY, &priv->status); |
2538 | wake_up_interruptible(&priv->wait_command_queue); | 2538 | wake_up_interruptible(&priv->wait_command_queue); |
2539 | 2539 | ||
2540 | /* reassociate for ADHOC mode */ | ||
2541 | if (priv->vif && (priv->iw_mode == NL80211_IFTYPE_ADHOC)) { | ||
2542 | struct sk_buff *beacon = ieee80211_beacon_get(priv->hw, | ||
2543 | priv->vif); | ||
2544 | if (beacon) | ||
2545 | iwl_mac_beacon_update(priv->hw, beacon); | ||
2546 | } | ||
2547 | |||
2548 | if (test_and_clear_bit(STATUS_MODE_PENDING, &priv->status)) | 2540 | if (test_and_clear_bit(STATUS_MODE_PENDING, &priv->status)) |
2549 | iwl_set_mode(priv, priv->iw_mode); | 2541 | iwl_set_mode(priv, priv->iw_mode); |
2550 | 2542 | ||