aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl3945-base.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/iwl3945-base.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/iwl3945-base.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl3945-base.c60
1 files changed, 1 insertions, 59 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index 07883b264b7e..ed497551a860 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -3494,64 +3494,6 @@ static int iwl3945_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
3494 return ret; 3494 return ret;
3495} 3495}
3496 3496
3497static void iwl3945_mac_reset_tsf(struct ieee80211_hw *hw)
3498{
3499 struct iwl_priv *priv = hw->priv;
3500 unsigned long flags;
3501
3502 mutex_lock(&priv->mutex);
3503 IWL_DEBUG_MAC80211(priv, "enter\n");
3504
3505 iwl_reset_qos(priv);
3506
3507 spin_lock_irqsave(&priv->lock, flags);
3508 priv->assoc_id = 0;
3509 priv->assoc_capability = 0;
3510
3511 /* new association get rid of ibss beacon skb */
3512 if (priv->ibss_beacon)
3513 dev_kfree_skb(priv->ibss_beacon);
3514
3515 priv->ibss_beacon = NULL;
3516
3517 priv->beacon_int = priv->hw->conf.beacon_int;
3518 priv->timestamp = 0;
3519 if ((priv->iw_mode == NL80211_IFTYPE_STATION))
3520 priv->beacon_int = 0;
3521
3522 spin_unlock_irqrestore(&priv->lock, flags);
3523
3524 if (!iwl_is_ready_rf(priv)) {
3525 IWL_DEBUG_MAC80211(priv, "leave - not ready\n");
3526 mutex_unlock(&priv->mutex);
3527 return;
3528 }
3529
3530 /* we are restarting association process
3531 * clear RXON_FILTER_ASSOC_MSK bit
3532 */
3533 if (priv->iw_mode != NL80211_IFTYPE_AP) {
3534 iwl_scan_cancel_timeout(priv, 100);
3535 priv->staging_rxon.filter_flags &= ~RXON_FILTER_ASSOC_MSK;
3536 iwlcore_commit_rxon(priv);
3537 }
3538
3539 /* Per mac80211.h: This is only used in IBSS mode... */
3540 if (priv->iw_mode != NL80211_IFTYPE_ADHOC) {
3541
3542 IWL_DEBUG_MAC80211(priv, "leave - not in IBSS\n");
3543 mutex_unlock(&priv->mutex);
3544 return;
3545 }
3546
3547 iwl_set_rate(priv);
3548
3549 mutex_unlock(&priv->mutex);
3550
3551 IWL_DEBUG_MAC80211(priv, "leave\n");
3552
3553}
3554
3555/***************************************************************************** 3497/*****************************************************************************
3556 * 3498 *
3557 * sysfs attributes 3499 * sysfs attributes
@@ -4083,7 +4025,7 @@ static struct ieee80211_ops iwl3945_hw_ops = {
4083 .set_key = iwl3945_mac_set_key, 4025 .set_key = iwl3945_mac_set_key,
4084 .get_tx_stats = iwl_mac_get_tx_stats, 4026 .get_tx_stats = iwl_mac_get_tx_stats,
4085 .conf_tx = iwl_mac_conf_tx, 4027 .conf_tx = iwl_mac_conf_tx,
4086 .reset_tsf = iwl3945_mac_reset_tsf, 4028 .reset_tsf = iwl_mac_reset_tsf,
4087 .bss_info_changed = iwl_bss_info_changed, 4029 .bss_info_changed = iwl_bss_info_changed,
4088 .hw_scan = iwl_mac_hw_scan 4030 .hw_scan = iwl_mac_hw_scan
4089}; 4031};