aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn.c
diff options
context:
space:
mode:
authorAbhijeet Kolekar <abhijeet.kolekar@intel.com>2009-04-08 14:26:52 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-04-22 16:54:43 -0400
commitbd564261d7dd3660f7a5ba308a867c6bb23de6a2 (patch)
tree8fdba368708c3b7068a80deba7ec7cdba62ee4d4 /drivers/net/wireless/iwlwifi/iwl-agn.c
parentaa89f31e708d469f5dd824c59c98e4856a2e3572 (diff)
iwl3945: use iwl_mac_reset_tsf from iwlwifi
3945 can now use iwl_mac_reset_tsf from iwlwifi. Signed-off-by: Abhijeet Kolekar <abhijeet.kolekar@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/iwl-agn.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c75
1 files changed, 0 insertions, 75 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index 3ebf80fbebab..9dda3d547d0d 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -2235,81 +2235,6 @@ static int iwl_mac_get_stats(struct ieee80211_hw *hw,
2235 return 0; 2235 return 0;
2236} 2236}
2237 2237
2238static void iwl_mac_reset_tsf(struct ieee80211_hw *hw)
2239{
2240 struct iwl_priv *priv = hw->priv;
2241 unsigned long flags;
2242
2243 mutex_lock(&priv->mutex);
2244 IWL_DEBUG_MAC80211(priv, "enter\n");
2245
2246 spin_lock_irqsave(&priv->lock, flags);
2247 memset(&priv->current_ht_config, 0, sizeof(struct iwl_ht_info));
2248 spin_unlock_irqrestore(&priv->lock, flags);
2249
2250 iwl_reset_qos(priv);
2251
2252 spin_lock_irqsave(&priv->lock, flags);
2253 priv->assoc_id = 0;
2254 priv->assoc_capability = 0;
2255 priv->assoc_station_added = 0;
2256
2257 /* new association get rid of ibss beacon skb */
2258 if (priv->ibss_beacon)
2259 dev_kfree_skb(priv->ibss_beacon);
2260
2261 priv->ibss_beacon = NULL;
2262
2263 priv->beacon_int = priv->hw->conf.beacon_int;
2264 priv->timestamp = 0;
2265 if ((priv->iw_mode == NL80211_IFTYPE_STATION))
2266 priv->beacon_int = 0;
2267
2268 spin_unlock_irqrestore(&priv->lock, flags);
2269
2270 if (!iwl_is_ready_rf(priv)) {
2271 IWL_DEBUG_MAC80211(priv, "leave - not ready\n");
2272 mutex_unlock(&priv->mutex);
2273 return;
2274 }
2275
2276 /* we are restarting association process
2277 * clear RXON_FILTER_ASSOC_MSK bit
2278 */
2279 if (priv->iw_mode != NL80211_IFTYPE_AP) {
2280 iwl_scan_cancel_timeout(priv, 100);
2281 priv->staging_rxon.filter_flags &= ~RXON_FILTER_ASSOC_MSK;
2282 iwlcore_commit_rxon(priv);
2283 }
2284
2285 iwl_power_update_mode(priv, 0);
2286
2287 /* Per mac80211.h: This is only used in IBSS mode... */
2288 if (priv->iw_mode != NL80211_IFTYPE_ADHOC) {
2289
2290 /* switch to CAM during association period.
2291 * the ucode will block any association/authentication
2292 * frome during assiciation period if it can not hear
2293 * the AP because of PM. the timer enable PM back is
2294 * association do not complete
2295 */
2296 if (priv->hw->conf.channel->flags & (IEEE80211_CHAN_PASSIVE_SCAN |
2297 IEEE80211_CHAN_RADAR))
2298 iwl_power_disable_management(priv, 3000);
2299
2300 IWL_DEBUG_MAC80211(priv, "leave - not in IBSS\n");
2301 mutex_unlock(&priv->mutex);
2302 return;
2303 }
2304
2305 iwl_set_rate(priv);
2306
2307 mutex_unlock(&priv->mutex);
2308
2309 IWL_DEBUG_MAC80211(priv, "leave\n");
2310}
2311
2312
2313/***************************************************************************** 2238/*****************************************************************************
2314 * 2239 *
2315 * sysfs attributes 2240 * sysfs attributes