diff options
author | Abhijeet Kolekar <abhijeet.kolekar@intel.com> | 2009-04-08 14:26:36 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-22 16:54:41 -0400 |
commit | 9944b938f23fdd1ce2f5da190f771f176bb51eef (patch) | |
tree | 3acb05a6b64fcf129bcb6fd6b3e443c218627831 /drivers/net/wireless/iwlwifi/iwl3945-base.c | |
parent | 5bbe233b9bafabc08a5404d54b9fa086e8390fc7 (diff) |
iwl3945: use iwl_mac_beacon_update
3945 can use iwl_mac_beacon_update.
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.c | 49 |
1 files changed, 2 insertions, 47 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index 6f44abc2dce0..857393a69016 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -2792,11 +2792,6 @@ static void iwl3945_init_alive_start(struct iwl_priv *priv) | |||
2792 | queue_work(priv->workqueue, &priv->restart); | 2792 | queue_work(priv->workqueue, &priv->restart); |
2793 | } | 2793 | } |
2794 | 2794 | ||
2795 | |||
2796 | /* temporary */ | ||
2797 | static int iwl3945_mac_beacon_update(struct ieee80211_hw *hw, | ||
2798 | struct sk_buff *skb); | ||
2799 | |||
2800 | /** | 2795 | /** |
2801 | * iwl3945_alive_start - called after REPLY_ALIVE notification received | 2796 | * iwl3945_alive_start - called after REPLY_ALIVE notification received |
2802 | * from protocol/runtime uCode (initialization uCode's | 2797 | * from protocol/runtime uCode (initialization uCode's |
@@ -2904,7 +2899,7 @@ static void iwl3945_alive_start(struct iwl_priv *priv) | |||
2904 | struct sk_buff *beacon = ieee80211_beacon_get(priv->hw, | 2899 | struct sk_buff *beacon = ieee80211_beacon_get(priv->hw, |
2905 | priv->vif); | 2900 | priv->vif); |
2906 | if (beacon) | 2901 | if (beacon) |
2907 | iwl3945_mac_beacon_update(priv->hw, beacon); | 2902 | iwl_mac_beacon_update(priv->hw, beacon); |
2908 | } | 2903 | } |
2909 | 2904 | ||
2910 | return; | 2905 | return; |
@@ -3837,7 +3832,7 @@ static int iwl3945_mac_config_interface(struct ieee80211_hw *hw, | |||
3837 | if (!beacon) | 3832 | if (!beacon) |
3838 | return -ENOMEM; | 3833 | return -ENOMEM; |
3839 | mutex_lock(&priv->mutex); | 3834 | mutex_lock(&priv->mutex); |
3840 | rc = iwl3945_mac_beacon_update(hw, beacon); | 3835 | rc = iwl_mac_beacon_update(hw, beacon); |
3841 | mutex_unlock(&priv->mutex); | 3836 | mutex_unlock(&priv->mutex); |
3842 | if (rc) | 3837 | if (rc) |
3843 | return rc; | 3838 | return rc; |
@@ -4089,46 +4084,6 @@ static void iwl3945_mac_reset_tsf(struct ieee80211_hw *hw) | |||
4089 | 4084 | ||
4090 | } | 4085 | } |
4091 | 4086 | ||
4092 | static int iwl3945_mac_beacon_update(struct ieee80211_hw *hw, struct sk_buff *skb) | ||
4093 | { | ||
4094 | struct iwl_priv *priv = hw->priv; | ||
4095 | unsigned long flags; | ||
4096 | __le64 timestamp; | ||
4097 | |||
4098 | IWL_DEBUG_MAC80211(priv, "enter\n"); | ||
4099 | |||
4100 | if (!iwl_is_ready_rf(priv)) { | ||
4101 | IWL_DEBUG_MAC80211(priv, "leave - RF not ready\n"); | ||
4102 | return -EIO; | ||
4103 | } | ||
4104 | |||
4105 | if (priv->iw_mode != NL80211_IFTYPE_ADHOC) { | ||
4106 | IWL_DEBUG_MAC80211(priv, "leave - not IBSS\n"); | ||
4107 | return -EIO; | ||
4108 | } | ||
4109 | |||
4110 | spin_lock_irqsave(&priv->lock, flags); | ||
4111 | |||
4112 | if (priv->ibss_beacon) | ||
4113 | dev_kfree_skb(priv->ibss_beacon); | ||
4114 | |||
4115 | priv->ibss_beacon = skb; | ||
4116 | |||
4117 | priv->assoc_id = 0; | ||
4118 | timestamp = ((struct ieee80211_mgmt *)skb->data)->u.beacon.timestamp; | ||
4119 | priv->timestamp = le64_to_cpu(timestamp); | ||
4120 | |||
4121 | IWL_DEBUG_MAC80211(priv, "leave\n"); | ||
4122 | spin_unlock_irqrestore(&priv->lock, flags); | ||
4123 | |||
4124 | iwl_reset_qos(priv); | ||
4125 | |||
4126 | priv->cfg->ops->lib->post_associate(priv); | ||
4127 | |||
4128 | |||
4129 | return 0; | ||
4130 | } | ||
4131 | |||
4132 | /***************************************************************************** | 4087 | /***************************************************************************** |
4133 | * | 4088 | * |
4134 | * sysfs attributes | 4089 | * sysfs attributes |